- This topic has 1 reply, 2 voices, and was last updated 6 years, 1 month 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 › I2C protocol ACK problem
hi friends,i am using eeprom 24c64 and atmega32 avrstudio.
after 7-bit address and r/w 1-bit ,master is acknowledging (ack 0x18) , but data 8-bit and 1-bit for ack (0x28) is not getting ,if you give NACK (0x30) i am getting .
my doubt is after data i.e. 8-bit and 1-bit ack ,master has to ack or is it okay master gives NACK also.
if you give (mt_data_Nack) it is returning 0 if you give (mt_data_ack) it returning 1.why?
Hi
There is no such predefined status "MT_DATA_NACK". It is either MT_SLA_ACK (slave's address acknowledgement) or MT_SLA_DATA (data achnowledgement).