Hi all,
wanted to come back earlier with my experiences, but had too much work.
But :
I use Al's i2cslave in an 18F6722 I in an interrupthandler, in Al's code i made a little correction:
while STAT_BF = 1
i = SSP1BUF ' Dummy Read inserted => clears BF Flag
wend ' loop while buffer is full
This seems to be neccessary for this PIC's, the original code from Al results in
staying in this loop for ever.
I read back eight variables and write two variables with no problems.
The master and the slave have both the " DEFINE I2C_HOLD 1" at start up.
Regards,
Ralf
Bookmarks