Hi,
OK, it LOOKS like a dummy read of SSPBUF before writing the variable to it fixes the problem. The datasheet is fairly clear on this dummyread when expecting valid data - which I don't. And I still don't understand why it makes a difference where the actual value written to SSPBUF is comming from, ie. constant or variable.
/Henrik.
Bookmarks