Hello Again Here is some code that should do a proper conversion swapf LSB,w ;move fractions to upper nibble andlw 0Fh ;and get rid of them movwf Temp swapf MSB,w ;move S bits to lower nibble andlw 70H ;and get rid of them iorwf Temp,w ;put the MSB and LSB together movwf BIN > > > Hi > > If I read the data sheet right the LSB is sent first then the MSB. > > I haven't written the code but I would think you need to SWAP the nibbles > in the LSB then AND the result with 0F hex. Then SWAP the nibbles in the > MSB then AND with 07hex. Then OR the LSB with the MSB to get the > temperature in binary. > > Good Luck > > Dave -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist