I'm writing some code for this device also. I'm wondering why the shift of 5 places to the right when in the data sheet it looks like only 3 shifts right should put the Temperatures lsb in the correct location.
At least that's how my initial coding is. I'll try it tonight.
I also use MSBPOST=2 :
Get6675_Raw:
LOW NCS:PAUSEUS 1
Shiftin SO, SCK, MSBPOST, [raw1\16] ' Read 16 bit temperature register
raw1 = raw1>>3
HIGH NCS
RETURN
Brian




Bookmarks