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.

[Moved] Reading from another MCU and writing and copying information C++

Status
Not open for further replies.

sheffladreece

Newbie level 3
Joined
Mar 10, 2015
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
36
C++

What I would like to do is make two MCUs (atmega328p) connected via Rx and Tx terminals read each others internal memory and copy the data to its own.

Example:

On MCU 1- Indentity = 123
On MCU 2- Indentity = 456

What I am aiming to achieve is for MCU 1 to read MCU 2s indentity of (456) and copy the code into its own memory. Having the ability to recall that MCU 2s identity = 456 even when the two are not connected.

How would this be coded using C++??
 
Last edited:

MCU1 sends Identity data to MCU2. MCU2 reads it and saves it in its internal eeprom. MCU restarts and reads eeprom and loads the MCU1's Identity data to a variable and this will be available when MCU2 is running. After MCU2 reads and saves MCU1's data then MCU2 can send its data to MCU1.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top