Parallax BASIC Stamp 2e Programming Manual page 211

Table of Contents

Advertisement

Figure 5.22: OWOUT Reset and
Presence Pulse.
Table 5.52: OWOUT ROM Function
Commands.
5: BASIC Stamp Command Reference – OWOUT
+5 (vdd)
0 (vss)
This reset pulse is controlled by the lowest two bits of the Mode argument
in the OWOUT command. It can be made to appear before the ROM
Function Command (ex: Mode = 1), after the Transaction/Data portion (ex:
Mode = 2), before and after the entire transaction (ex: Mode = 3) or not at all
(ex: Mode = 0). See the section on Mode, above, for more information.
Following the Initialization part is the ROM Function Command. The
ROM Function Command is used to address the desired 1-wire device.
Table 5.52 shows common ROM Function Commands. If only a single
1-wire device is connected, the Match ROM command can be used to
address it. If more than one 1-wire device is attached, the BASIC Stamp
will ultimately have to address them individually using the Match ROM
command.
Command
Value (in Hex)
Read ROM
Match ROM
Skip ROM
Search ROM
BASIC Stamp Programming Manual 2.0c • www.parallaxinc.com • Page 209
Resting State
µ
15 - 60 s
BASIC Stamp's
Reset Pulse
µ
Apx. 564 s
driven by BASIC Stamp
driven by 1-wire device
Reads the 64-bit ID of the 1-wire device. This command
$33
can only be used if there is a single 1-wire device on the
line.
This command, followed by a 64-bit ID, allows the BASIC
$55
Stamp to address a specific 1-wire device.
Address a 1-wire device without its 64-bit ID. This
$CC
command can only be used if there is a single 1-wire
device on the line.
Reads the 64-bit IDs of all the 1-wire devices on the line. A
$F0
process of elimination is used to distinguish each unique
device.
Device's
Presence
Pulse
µ
60 - 240 s
Action

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BASIC Stamp 2e and is the answer not in the manual?

Table of Contents