I2C protocol, Error Detection

Status
Not open for further replies.

Khiri Alasiri

Newbie level 4
Joined
Jul 5, 2013
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
46
Hello Dears

I have designed my Pic16f877a I2C to send many instructions. Also, to receive many bytes. I would like to know if I failed confirming receiving any of ACK, should I start the whole operation from the beginning, I mean should I start sending the instructions from the beginning.

Regards
 

Khiri,



Just send an I2C stop byte.

I don´t know what compiler you are using, and even if I2C handshake are you performing by compiler API or manual handling.
If this case, I could sugest you to pack data into a frame, with a CRC, in order to detect if where detected some errors.

+++
 

Thank you andre


I am trying to do like the above operation. But if I failed to detect one of the ACK, should I start the operation from the beginning?

I am trying to make my manual I2C code using MikroC.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…