- This topic has 1 reply, 2 voices, and was last updated 12 years, 3 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › not able to receive data in TWI
presently i am working on TWI in atmega16 i understood well how to transmitte and receive the data b/w two devices using twi. my code is working is proteus by when i tried it on hardware i either send or receive few bytes(random)… and stops after some time… and some times it work well.. can you tell me what can be the possible error… i checked every connection on hardware… and my cod is working in proteus…
they are working in proteus means your code is correct the only thing is you are not able to maek the syncronization b/w your master and slave…
1. increase the level of algo you using use some better also…
2. use error check ( the status of TWSR) during ack signal…