Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

I2C protocol, Error Detection

Status
Not open for further replies.

Khiri Alasiri

Newbie level 4
Newbie level 4
Joined
Jul 5, 2013
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
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
Untitled.png

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top