Hi,
I've been 'round the houses' looking at old programs and posts, where names have been changed CPOL CPHA is now CKP AND CKE AND SSPCON is now SSPCON1. (I think?)
anyway, I've found some issues with the SPI timing.
I changed SSPSTAT.CKE from '0' to '1' and now the PIC READs the DATA.
As can be seen in the attachment, there is still an issue, but I'll re-check the settings.
C
I've been 'round the houses' looking at old programs and posts, where names have been changed CPOL CPHA is now CKP AND CKE AND SSPCON is now SSPCON1. (I think?)
anyway, I've found some issues with the SPI timing.
I changed SSPSTAT.CKE from '0' to '1' and now the PIC READs the DATA.
As can be seen in the attachment, there is still an issue, but I'll re-check the settings.
C
Attachments
-
318.6 KB Views: 4