Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4924

Need help in TWI read routine ATmega32

$
0
0
Hi,
I have written code to read using AVR TWI interface. I am interfacing it to DS1307 later. But it is not working. To know execution at specific points I have put LEDs they are interfaced to PORTA.
The problem is instruction after Repeated Start are not working properly. I have checked status code after repeated start it should be 0x10, but it is 0x28 that is displayed on PORTB. I am testing it in Proteus with DS1307. I am reading location from 0x01 to 0x06 of DS1307.

Device ATmega32
IDE...

Need help in TWI read routine ATmega32

Viewing all articles
Browse latest Browse all 4924

Trending Articles