Parallax, Inc. • BS2p “Plus Pack” (#45184) • 10/2001
Page 41
PP_DS1822.BSP
•
Connect LCD to the BS2p Demo Board X5
•
Install jumper X6
•
Adjust contrast pot for best display
•
Assemble DS1822 ciruit on breadboard
-- use on-board 4.7K resistor (R1) for pull-up
' -----[ Title ]----------------------------------------------------------------
'
' BS2p Plus Pack
'
' File...... PP_DS1822.BSP
' Purpose... Reads and displays information from a Dallas DS1822
' Author.... Parallax
' E-mail.... [email protected]
' Started...
' Updated... 26 SEP 2001
' {$STAMP BS2p}
' -----[ Program Description ]--------------------------------------------------
'
' This program demonstrates using the DS1822 in its simplest form for direct
' temperature measurement. With only one sensor, we can use Skip ROM and ignore
' the device serial number.
'
' Program output is via DEBUG.
' -----[ Revision History ]-----------------------------------------------------
'
' -----[ I/O Definitions ] ------------------------------------------------------
'
OWpin CON 15
' -----[ Constants ]------------------------------------------------------------
'