5: BASIC Stamp Command Reference - AUXIO
BASIC Stamp Programming Manual 2.0c
•
www.parallaxinc.com
•
Page 81
AUXIO
BS1 BS2 BS2e BS2sx
BS2p
AUXIO
Function
Switch from control of main I/O pins to auxiliary I/O pins (on the BS2p40
only).
Quick Facts
BS2p
I/O pin IDs
0 – 15 (just like main I/O, but after AUXIO command, all references affect
physical pins 21 – 36).
Special notes
Both the BS2p24 and the BS2p40 accept this command, however, only
the BS2p40 gives access to the auxiliary I/O pins.
Explanation
The BS2p is available in two module styles, 1) a 24-pin module (called the
BS2p24) that is pin compatible with the BS2, BS2e and BS2sx and 2) a 40-
pin module (called the BS2p40) that has an additional 16 I/O pins (for a
total of 32). The BS2p40's extra, or auxiliary, I/O pins can be accessed in
the same manner as the main I/O pins (by using the IDs 0 to 15) but only
after issuing an AUXIO or IOTERM command. The AUXIO command
causes the BASIC Stamp to affect the auxiliary I/O pins instead of the
main I/O pins in all further code until the MAINIO command is reached,
or the BASIC Stamp is reset or power-cycled.
The following example illustrates this:
HIGH 0
AUXIO
LOW 0
The first line of the above example will set I/O pin 0 of the main I/O pins
(physical pin 5) high. Afterward, the AUXIO command tells the BASIC
Stamp that all commands following it should affect the auxiliary I/O pins.
The following LOW command will set I/O pin 0 of the auxiliary I/O pins
(physical pin 21) low.
Note that the main I/O and auxiliary I/O pins are independent of each
other; the states of the main I/O pins remain unchanged while the
program affects the auxiliary I/O pins, and vice versa.
Other commands that affect I/O group access are MAINIO and IOTERM.
Table 5.1: AUXIO Quick Facts.
p
2
A
SIMPLE
AUXIO
EXAMPLE
.
M
AIN
I/O
AND AUXILIARY
I/O
PINS ARE
INDEPENDENT AND UNAFFECTED BY
CHANGES IN THE OPPOSITE GROUP
.
Содержание BASIC Stamp 1
Страница 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...