POLLMODE - BASIC Stamp Command Reference
Page 220
•
BASIC Stamp Programming Manual 2.0b
•
www.parallaxinc.com
1
After the polled-run action occurs, the mode switches to 1 (deactivated, saved)
2
After the polled-run action occurs, the mode switches to 2 (activated, outputs)
3
These modes do not override the previous mode. Also, the output state of
polled-outputs does not change as a result of these modes.
The polled-run modes, 3 and 4, are unique. As soon as the polled-run
action occurs, the mode switches to 1 (deactivated, saved) or 2 (activated,
outputs), respectively. This is so that the BASIC Stamp doesn't
continuously go to the start of the designated program slot while the
polled-inputs are in the desired poll state. Without this "one shot" feature,
your program would appear to lock-up as long as the polled-inputs are in
the designated state.
The clear configuration modes, 5, 6 and 7, are also unique. These modes
do not override the previous mode. For example, if polled-inputs,
polled-outputs and a polled-run configuration was set and the mode was
set to 4 (activated, outputs and run) and later the program issued a
POLLMODE 6 command, the polled-output configuration would be
cleared but the mode would switch back to 4… still allowing the run
action. This also means if, later still, the program issues a POLLOUT
command, this polled-output would take effect immediately (since the
mode is still 4). Also note that these modes do not change the output state
of previously defined polled-output pins.
The POLLMODE command determines what action, if any, will occur in
response to a polled-input event. This command works in conjunction
with the POLLIN, POLLOUT and POLLRUN commands. The following is
an example of the POLLMODE command:
Mode
Effect
0
Deactivate polling, clear polled-input and output configuration.
1
Deactivate polling, save polled-input and output configuration.
2
Activate polling with polled-output action (and polled-wait) only.
3
1
Activate polling with polled-run action only.
4
2
Activate polling with polled-output/polled-wait and polled-run actions.
5
3
Clear polled-input configuration.
6
3
Clear polled-output configuration.
7
3
Clear polled-input and output configuration.
8 – 15
Same at 0 – 7 except polled-output states are latched.
A
SIMPLE
POLLMODE
EXAMPLE
.
Table 5.56: POLLMODE Mode
Values.
Содержание 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...