Anyplace the wire material changes you need a reference temperature and calcs. A couple exceptions here and there though.
Anyplace the wire material changes you need a reference temperature and calcs. A couple exceptions here and there though.
Dave
Always wear safety glasses while programming.
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
OK so I tried the code. Now I see you guys are right with the 5 bit shift.
The device is capable of 12bits or 0.25 deg resolution if shifted only 3 times.
Brian
Bookmarks