I'm trying to write a I2C bootloader for my pic 16f876 project.
The original bootloader that i want to adapt is for the UART port
(and work without interrupt).
I've a lot of problem working with I2C without interrupt handler (by
reading only SSPSTAT and SSPBUF registers).
In particular my problem is that when i receive correctly the address
(correctly acknowleged), when I read SSPBUF address, the BF flag stay
high, so I cannot process next data byte. (Manuals say that when
SSPBUF is read BF flag go low).
Anyone have suggestions (or better a sample of I2C slave working good
without interrupt ?)
Thanks a lot.