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.
Содержание BASIC Stamp 2e
Страница 1: ...BASIC Stamp Programming Manual Version 2 0c...
Страница 30: ...Introduction to the BASIC Stamps Page 28 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 34: ...Quick Start Guide Page 32 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 90: ...BUTTON BASIC Stamp Command Reference Page 88 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 118: ...END BASIC Stamp Command Reference Page 116 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 128: ...FREQOUT BASIC Stamp Command Reference Page 126 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 196: ...NAP BASIC Stamp Command Reference Page 194 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 206: ...OWIN BASIC Stamp Command Reference Page 204 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 214: ...OWOUT BASIC Stamp Command Reference Page 212 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 216: ...PAUSE BASIC Stamp Command Reference Page 214 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 226: ...POLLMODE BASIC Stamp Command Reference Page 224 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 232: ...POLLOUT BASIC Stamp Command Reference Page 230 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 236: ...POLLRUN BASIC Stamp Command Reference Page 234 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 240: ...POLLWAIT BASIC Stamp Command Reference Page 238 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 262: ...RCTIME BASIC Stamp Command Reference Page 260 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 274: ...RUN BASIC Stamp Command Reference Page 272 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 310: ...SEROUT BASIC Stamp Command Reference Page 308 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 324: ...STOP BASIC Stamp Command Reference Page 322 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 340: ...ASCII Chart Page 338 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 342: ...Reserved Words Page 340 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 346: ...Conversion Formatters Page 344 BASIC Stamp Programming Manual 2 0b www parallaxinc com...