Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

PIC18F8722: SPI Only Transmits 7 bits of an 8 bit byte!

$
0
0
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...

PIC18F8722: SPI Only Transmits 7 bits of an 8 bit byte!

Viewing all articles
Browse latest Browse all 4923

Trending Articles