Hi
I'm trying to write a putString function so I can write a string to the SPI port on the PIC16F877A.
The problem I'm having is that the first char is being sent fine, but the rest are not being placed into the SSPBUF.
I'm not sure how to check when the SSPBUF is empty, so i can push out another character to it. When using the I2C, you can check the 'BF' register, but this is not available for TX mode on SPI. Looked through the PIC datasheet, and tried several things but still no luck. Any ideas what register I need to check before flushing another char at it?
Cheers
Rich
I'm trying to write a putString function so I can write a string to the SPI port on the PIC16F877A.
The problem I'm having is that the first char is being sent fine, but the rest are not being placed into the SSPBUF.
I'm not sure how to check when the SSPBUF is empty, so i can push out another character to it. When using the I2C, you can check the 'BF' register, but this is not available for TX mode on SPI. Looked through the PIC datasheet, and tried several things but still no luck. Any ideas what register I need to check before flushing another char at it?
Cheers
Rich