Quote Originally Posted by Darrel Taylor View Post
> It seems the more I try to understand the less I do.
And the more I try to explain the less I get across.

Look, I hate to say it this way but, ...

I find it hard to believe that someone who doesn't know how the USART works, would understand and be able to use the MSSP module. It's much more difficult. Perhaps you've cut&pasted someone else's code that does use it.

But I can't seem to get that kind of information out of you.

Please slow down and look at 1 thing at a time. And in this case, answer 1 question.

Are you using the MSSP module?
Keep in mind the there are NO PBP statements that use it.
You would have to be manually manipulating registers.
<br>

I didn't cutnpaste code.
I've read the datasheet of the SPI serial memory (25aa1024, the info about the 16 bits SPI dac and the info about SPI in the PIC datasheet. It is very difficult but at least, from what I've read, using SPI is not that difficult, there are a few instructions.
Pull CD low, send WREN command to enable the writes, put CS High. Put CS low, check status register to see if the Write In Progress bit is cleared, put CS HIGH. Then put CS low, send the WRITE command followed by the 24 bits address and then the bytes to write and finish by putting the chip select pin high again.
You write to SSPBUF to transfer to the shiftin buffer and you read the data from the buffer and use it if relevant.
It does not seem so complicated once the setting to registers related to SPI have been properly set. I know there is no PBM commands to use SPI. But there are fot the USART. And using the usart seems more complicated to me.
Anyway, I have to learn. I read code from other people and try to figure it out.