Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Project Help?! Storing Individual MCU IDs??

Status
Not open for further replies.

sheffladreece

Newbie level 3
Newbie level 3
Joined
Mar 10, 2015
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
36
First off, Hi all, new to this forum, have used other electronics forums previously but answers have dried up on other forums regarding my issue.

---------

Briefing:

I am an extreme novice having only today connected and utilised an LCD on my breadboard. I have been messing around with electronic projects for around a 1/2 month now, on and off and am picking up new stuff all the time.

I use Atmega328p microcontrollers, a USBtinyISP and code using C/C++ in programmers notepad.

-------------

So, now for the problem I am facing:

The operation that I would like the MCU to carry out is:

-Upon powering up, check if a TXD or RXD connection is made.

-If connection is made, check if the two MCUs have previously communicated. //This could be via a Unique ID of some-sort for each MCU that is stored within the memory of the MCUs??

-If they have previously communicated, carry out an IF statement/ operation.

Is this possible? How would you advise going about this operation?
 

When the MCU has communicated with another MCU then set a flag and write this to internal eeprom. On MCU restart, read the byte from eeprom and assign it to flag. If flag is set then carry out if() statements.

Arduino ?
 

You make that sound extremely simple, but I have no programming knowledge whatsoever and wouldnt know where to start with the aforementioned process you have outlined.

Could you possibly point me towards any literature or tutorials regarding the setup you mentioned above?

Not using an arduino no, im using a USBtinyISP directly linked to the atmega328p
 

You need a Compiler to write the program. Compilers might have library for eeprom read ad write. You just have to use them. If you want I can write a code for your MCU using mikroC PRO AVR Compiler. I need to know the crystal frequency.
 

I personally want to code the program myself so that I know the process from scratch as opposed to letting someone else code it for me... I thought "Programmers notepad" is a compiler?
 

I thought "Programmers notepad" is a compiler?

Haven't used it. Maybe it is just an text editor and compiler can be linked to it for compiling and hence you will be needing a compiler. Atmel Studio 6.2 is free. Is uses Microsoft Visual Studio 2010 IDE. It is a GCC compiler tool both C and C++ I think.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top