Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Full duplex communication using TWI

Status
Not open for further replies.
I have successfully carried out TWI full duplex communication between one MASTER and one SLAVE using Atmega 128. Now I want my one MASTER to communicate with many other SLAVES.
I my programme I have changed slave addresses using 'for' loop and then sent START condition so that my MASTER will communicate with different SLAVES.
The SLAVE programme has been kept as it is as it was for one MASTER , one SLAVE communication.The only change that I made is I changed address register of different SLAVES with their respective addresses.
So what do you think could be the problem?
I think that problem could be in SLAVE programme itself because if I send any one address at a time from MASTER then the SLAVE communicates.
I also attach my programme files.
 

Attachments

  • slave2.c
    3 KB · Views: 183
  • master.c
    4.5 KB · Views: 196
Last edited:
Status
Not open for further replies.

Latest threads

Back
Top