27297 Parallax Inc, 27297 Datasheet - Page 176

KIT STAMPWORKS WITH BS2-IC

27297

Manufacturer Part Number
27297
Description
KIT STAMPWORKS WITH BS2-IC
Manufacturer
Parallax Inc
Datasheet

Specifications of 27297

Lead Free Status
Contains lead
Product
Microcontroller Accessories
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
27297SQ
Manufacturer:
NS
Quantity:
4
Taking It Further
The DS1620 has thermostat outputs that can be used to control other devices.
These outputs are typically used in stand-alone mode, but will also work
autonomously when the DS1620 is connected to the BASIC Stamp or another host.
Connect two LEDs to the DS1620 THi and TLo outputs as shown below:
With the LEDs connected, add the following code after the DS1620 initialization:
Behind the Scenes
The THi output will go high when the current temperature is at or above the value
stored in the high-temperature register.
current temperature is at or below the low-temperature register.
Set_Alarms:
HIGH Reset
tC = (THi - 32 */ $008E) * 2
SHIFTOUT DQ, Clock, LSBFIRST, [WrHi, tC\9]
LOW Reset
PAUSE 10
HIGH Reset
tC = (TLo - 32 * 5 / 9) * 2
SHIFTOUT DQ, Clock, LSBFIRST, [WrLo, tC\9]
LOW Reset
PAUSE 10
The TLo output will go high when the
' convert to 0.5 C
' write high temp
' write low temp

Related parts for 27297