Re: [Flashforth-devel] I2c using PIC MSSP
Brought to you by:
oh2aun
From: Mikael N. <mik...@pp...> - 2014-02-27 05:37:15
|
When quickly checking the datasheet I saw no requirement for the slave to respond for sspif to be set. In the datasheet sspif is cleared after writing to sspbuf. In the current code sspif is cleared before writing to sspbuf. You could try this. : sspbuf! ( c -- ) \ sspbuf! takes 90 us @ 100 KHz sspbuf c! [ pir1 sspif a, bcf, ] [ begin, ] [ pir1 sspif a, btfss, ] [ again, ] ; Mikael |