Totally off the top of my head; maybe the dummy read clears a buffer?
And this buffer doesn't handle a constant and variable the same way (allocation of space, bit VS byte, etc).
Robert
EDIT: Looking over your code again and I just thought of something after seeing the PAUSE. Does the time it takes PBP to access the value stored in a variable interfere with the MSSP module?
Bear in mind that I have absolutely no clue what a MSSP module eats in wintertime.
EDIT SOME MORE: Forgot to ask, how are these variables defined?
SST_Status
SSPBUF (looks like a BYTE in MSSP section of 18f25k20 datasheet)
Bookmarks