PIC16F72 with I2C 'C'- program error plze give me suggestion

Ian Rogers

Joined Dec 12, 2012
1,136
Nope... I2C is far more complicated than that... You have to wait for the NACK before sending something else.

RW in the SSPSTAT register is the ACK flag.

I have been trying to get this crap version of I2C working... This chip is pin compatible with the pic16f874a, just use this!! It's a whole lot easier.


***Edit***
Ahhhh!!! No wonder.. This chip has slave only mode....

You'll have to use a software I2C...

I have written several for the pic's
https://www.electro-tech-online.com/attachments/tutorial6-zip.58016/
 
Last edited:
Top