28022 Parallax Inc, 28022 Datasheet - Page 6

KIT DS2760 THERMOCOUPLE

28022

Manufacturer Part Number
28022
Description
KIT DS2760 THERMOCOUPLE
Manufacturer
Parallax Inc
Datasheet

Specifications of 28022

Lead Free Status
Contains lead
Accessory Type
Thermocouple Kit
For Use With/related Products
BASIC Stamp® Modules
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
' -----[ Subroutines ]-----------------------------------------------------
' Reads device input voltage (Vin pin)
' -- mV in millivolts (max reading is 4.75 volts)
Read_Vin:
' Reads current register to get TC voltage
' -- each raw bit = 15.625 uV
' -- tCuV in microvolts
Read_TC_Volts:
6
LOOP
END
OWOUT OW, %0001, [SkipNet, RdReg, $0C]
OWIN
IF (vIn.BIT15) THEN
ELSE
ENDIF
RETURN
OWOUT OW, %0001, [SkipNet, RdReg, $0E]
OWIN
ELSE
ENDIF
LOOKUP type, [1023, 1023, 400], tblHi
GOSUB TC_Lookup
tempF = tempC * 9 / 5 + 32
IF (error = 0) THEN
ELSE
ENDIF
PAUSE 1000
vIn = 0
vIn = vIn >> 5 */ $4E1
' TC above cold junction
cjComp = cjComp + tCuV
DEBUG CRSRXY, 0, 7,
DEBUG CRSRXY, 0, 8,
DEBUG CRSRXY, 0, 7,
DEBUG CRSRXY, 0, 8,
OW, %0010, [vIn.BYTE1, vIn.BYTE0]
OW, %0010, [tCuV.BYTE1, tCuV.BYTE0]
"Temp °C..... ", SDEC tempC, CLREOL
"Temp °F..... ", SDEC tempF, CLREOL
"Temp °C..... Out of Range", CLREOL
"Temp °F..... Out of Range", CLREOL
Parallax, Inc. • DS2760 Thermocouple Kit (#28022) • 01/2004
' set high end of search
' reverse lookup of table
' x 1.8 + 32
' check sign
' disallow negative
' x 4.88 millivolts
' read current register

Related parts for 28022