27220 Parallax Inc, 27220 Datasheet - Page 211

BOOK STAMPWORKS

27220

Manufacturer Part Number
27220
Description
BOOK STAMPWORKS
Manufacturer
Parallax Inc
Datasheet

Specifications of 27220

Accessory Type
Booklet
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
StampWorks
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Not applicable / Not applicable
Set_ID:
Show_Temp:
Show_Temp_C:
Show_Temp_F:
Read_DS1620:
eeAddr = ID
DO
LOOP UNTIL (param = CR)
RETURN
eeAddr = ID
DO
LOOP UNTIL (param = CR)
RETURN
GOSUB Read_DS1620
tempIn = tempIn & $1FF
SEROUT TX\RTS, Baud, ["DS1620 = ", DEC tempIn, CR]
RETURN
GOSUB Read_DS1620
param = tC.BIT15 * 2 + "+"
SEROUT TX\RTS, Baud, ["TempC = ",
RETURN
GOSUB Read_DS1620
param = tF.BIT15 * 2 + "+"
SEROUT TX\RTS, Baud, ["TempF = ",
RETURN
HIGH Reset
SHIFTOUT DQ, Clock, LSBFIRST, [RdTmp]
SHIFTIN DQ, Clock, LSBPRE, [tempIn\9]
LOW Reset
READ eeAddr, param
SEROUT TX\RTS, Baud, [param]
eeAddr = eeAddr + 1
SERIN RX\CTS, Baud, [param]
WRITE eeAddr, param
eeAddr = eeAddr + 1
param,
DEC (ABS tC / 10), ".", ' whole degrees
DEC1 (ABS tC), CR]
param,
DEC (ABS tF / 10), ".", ' whole degrees
DEC1 (ABS tF), CR]
' point to first character
' read a character
' print it
' point to next
' point to ID location
' get character from PC
' write to EE
' point to next location
' CR = end of new ID
' display raw counts
' read temperature
' return to 9 bits
' create sign char
' label
' display sign
' fractional degrees
' create sign char
' label
' display sign
' fractional degrees
' alert the DS1620
' give command to read temp
' read it in
' release the DS1620

Related parts for 27220