On the scope you can see the SCK1 clocks and you can see the SDI data at the input pin. When I read SSP1BUF there is nothing in the buffer register.
- Code: Select all
TRISC = 0b01110000; // SDO no output, SDI input, SCK output
SSP1CON1 = 0b00100000; // Enable SSP & SCK normally low
SSP1STAT = 0b00000000; // CKE = clock polarity 0->1
My scope doesn't have the ability to post screen dumps but the clocks are occurring during a solid high data input and the buffer reads 0x00. So this isn't a case of incorrect clock/data polarity.
Any ideas?