Hi All,
I'm having a problem with a project based on the PIC18F8722 that I would appreciate some help with.
I'm using the SPI to interface to some other components in Master mode, but something extremely odd is happening. I set the port up fine, transmit the first byte, fine, transmit second byte, fine, transmit the third byte...the device only clocks out 7 bits!
I can see on the scope that there are only 7 clock pulses for the last byte, and my code then goes into a never-ending loop waiting for BF to be set, which of course doesn't happen because the transmission is not completed (nor is IF triggered, for the same reason).
I can't even imagine how this is possible, let alone what might cause it. Any suggestions?
Regards,
dK
I'm having a problem with a project based on the PIC18F8722 that I would appreciate some help with.
I'm using the SPI to interface to some other components in Master mode, but something extremely odd is happening. I set the port up fine, transmit the first byte, fine, transmit second byte, fine, transmit the third byte...the device only clocks out 7 bits!
I can see on the scope that there are only 7 clock pulses for the last byte, and my code then goes into a never-ending loop waiting for BF to be set, which of course doesn't happen because the transmission is not completed (nor is IF triggered, for the same reason).
I can't even imagine how this is possible, let alone what might cause it. Any suggestions?
Regards,
dK