Maker Pro
Maker Pro

Project Help?!

sheffladreece

Jan 24, 2014
22
Joined
Jan 24, 2014
Messages
22
Operation that the MCU must do 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??

-If they have previously communicated, do this, else.

-----------------------
Does anyone possibly have any skeleton code available for these commands or possibly explain how to code this?

Thanks

Sheffladreece
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,760
Joined
Nov 17, 2011
Messages
13,760
Yo'll need to supply more detail:
  • which MCU?
  • who is your counterpart?
  • what is "else"?
 

sheffladreece

Jan 24, 2014
22
Joined
Jan 24, 2014
Messages
22
Both MCUs are ATmega328p... Im coding in C/ C++ on developers notepad, im using a USBtinyISP to communicate code to the MCUs.

Else is the second part of an IF statement. i.e IF statement is true (do this) false/ else (do this)
 
Top