OWIN - BASIC Stamp Command Reference
Page 198
•
BASIC Stamp Programming Manual 2.0b
•
www.parallaxinc.com
The Mode argument is used to control placement of reset pulses (and
detection of presence pulses) and to designate byte vs. bit input and
normal vs. high speed. Figure 5.17
shows the meaning of each of the 4
bits of Mode. Table 5.44 shows just some of the 16 possible values and
their effect.
The proper value for Mode depends on the 1-wire device and the portion
of the communication you're working on. Please consult the data sheet for
the device in question to determine the correct value for Mode. In many
cases, however, when using the OWIN command, Mode should be set for
either No Reset (to receive data from a transaction already started by a
OWOUT command) or a Back-End Reset (to terminate the session after
data is received). This may vary due to device and application
requirements, however.
When using the Bit (rather than Byte) mode of data transfer, all variables
in the InputData argument will only receive one bit. For example, the
following code could be used to receive two bits using this mode:
Mode
Effect
0
No Reset, Byte mode, Low speed
1
Reset before data, Byte mode, Low speed
2
Reset after data, Byte mode, Low speed
3
Reset before and after data, Byte mode, Low speed
4
No Reset, Bit mode, Low speed
5
Reset before data, Bit mode, Low speed
8
No Reset, Byte mode, High speed
9
Reset before data, Byte mode, High speed
Low/Hi Byte/Bit BERes
0
FERes
1
2
3
Front-End Reset
0=no reset
1=generate reset before data
Back-End Reset
0=no reset
1=generate reset after data
Low/High Speed
0=low
1=high
Byte/Bit Transfer
0=byte
1=bit
Table 5.44: OWIN Mode Values.
Figure 5.17: Mode Format.
Summary of Contents for BASIC Stamp 1
Page 1: ...BASIC Stamp Programming Manual Version 2 0c...
Page 34: ...Quick Start Guide Page 32 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 340: ...ASCII Chart Page 338 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 342: ...Reserved Words Page 340 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 346: ...Conversion Formatters Page 344 BASIC Stamp Programming Manual 2 0b www parallaxinc com...