BASIC stamp manual v2.2
OWOUT – BASIC Stamp Command Reference
Page 308 • BASIC Stamp Syntax and Reference Manual 2.2 • www.parallax.com
Refer to the 1-Wire device's data sheet for a list of the available Memory
Function Commands.
Finally, the Transaction/Data section is used to read or write data to the
1-Wire device. The OWOUT command will write data at this point in the
transaction. A write is accomplished by generating a low-pulse of a
varying width to indicate a 0 or a 1. This is called a "Write Slot" and must
be at least 60 µs wide. Figure 5.25 shows typical Write Slots performed by
the BASIC Stamp. See the OWIN command for information on Read Slots.
BASIC Stamp’s
Write “0” Slot
Apx. 72 s
µ
Recovery Period
Apx 8 s
µ
+5 (vdd)
0 (vss)
BASIC Stamp’s
Write “1” Slot
Apx. 72 s
µ
Apx 8 s
µ
driven by BASIC Stamp
time when 1-wire device samples line (apx 15 - 45 s)
µ
Figure 5.25: Example Write Slots.
The demo program uses a Dallas Semiconductor DS1820 Digital
Thermometer device connected as follows. Note that the 4.7 kΩ pull-up
resistor is required for proper operation.
Figure 5.26: DS1820 Circuit.
NOTE: The 4.7 kΩ resistor is
required for proper operation.