28022 Parallax Inc, 28022 Datasheet - Page 4

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
' -----[ Constants ]-------------------------------------------------------
ReadNet
SkipNet
RdReg
' -----[ Variables ]-------------------------------------------------------
idx
type
char
vIn
tmpCJ
tCuV
sign
cjComp
tempC
tempF
tblLo
tblHi
eePntr
testVal
error
' -----[ EEPROM Data ]-----------------------------------------------------
' -----[ Initialization ]--------------------------------------------------
Stamp_Check:
Check_Device:
4
#IF ($stamp < BS2P) #THEN
#ENDIF
OWOUT OW, %0001, [ReadNet]
OWIN
GET idx, char
IF (char <> $30) THEN
ENDIF
#ERROR "This program requires BS2p or BS2pe"
DEBUG "No DS2760 found."
STOP
OW, %0010, [SPSTR 8]
CON
CON
CON
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
$33
$CC
$69
Nib
Nib
Byte
Word
Word
Word
Word
Word
Word
Word
Word
Word
Word
Word
Bit
Parallax, Inc. • DS2760 Thermocouple Kit (#28022) • 01/2004
' read OW net address
' skip OW net address
' read register
' loop counter
' device type
' display byte/char
' in millivolts
' device temp in C
' thermocouple millivolts
' TC sign bit
' temp compensation
' temp in Celsius
' temp in Fahrenheit
' table pointers
' test value from table
' 1 = out of range
' get serial number
' store in SPRAM
' read device type
' if not $30, wrong device
' stop program

Related parts for 28022