Parallax, Inc. • BS2p “Plus Pack” (#45184) • 10/2001
Page 53
PP_DS2890.BSP
•
Assemble DS2890 circuit on breadboard
-- use on-board 4.7K resistor (R1) for 1-Wire pull-up
' -----[ Title ]----------------------------------------------------------------
'
' BS2p Plus Pack
'
' File...... PP_DS2890.BSP
' Purpose... Demonstrates DS2980 digital pot by adjusting an RC circuit
' Author.... Parallax
' E-mail.... [email protected]
' Started...
' Updated... 26 SEP 2001
' {$STAMP BS2p}
' -----[ Program Description ]--------------------------------------------------
'
' This program demonstrates the DS2980 digital pot by placing it in an RC
' circuit that would typically be used with RCTIME. This program assumes only
' one device on the 1 -Wire bus and reads the ROM code for the connected
' device.
'
' Refer to PP_DS1822-2.BSP for an example of dealing with mul tiple 1-Wire
' devices on the same pin.
' -----[ Revision History ]-----------------------------------------------------
'
' -----[ I/O Definitions ] ------------------------------------------------------
'
OWpin CON 15 ' 1-Wire bus
RCpin CON 14 ' RCTIME pin