LCDCMD - BASIC Stamp Command Reference
Page 160
•
BASIC Stamp Programming Manual 2.0b
•
www.parallaxinc.com
The above code will send the Scroll Left command (represented by the
number 24) to the LCD whose enable pin is connected to I/O pin 1. This
will cause the LCD display to scroll, or shift, the entire display one
character to the left.
You may have noticed that the Pin argument in the example above was 1.
The LCDCMD command actually uses more than just this I/O pin,
however. The LCDCMD command requires seven I/O pins. This is
because the standard LCD displays have a parallel interface, rather than a
serial one. The Pin argument can be the numbers 0, 1, 8 or 9 and will
result in the use of the I/O pins shown in Table 5.26.
Figure
5.12
shows
the required wiring for the above command to work.
Note that we could have used 0 for the Pin argument and moved the
LCD's Enable pin (pin 6) to I/O pin 0. Similarly, using 9 for the Pin
argument would have required us to wire the LCD's pins to I/O pins 9
through 15, rather than I/O pins 1 through 7.
When the LCD is first powered-up, it will be in an unknown state and
must be properly configured before sending commands like the one
1 2 3 4 5 6 7 8 9
11 12 13 14
Vss
P3
Vdd
10 k
Ω
P2
P1
P4
P5
P6
P7
NOTE: Potentiometer between
LCD pin 3 and ground is for
optional contrast control.
Connect LCD pin 3 directly to
ground for maximum contrast.
RS
R/W
E
DB4
DB5
DB6
DB7
Figure 5.12: Example LCD Circuit.
Shown with all connections
necessary for the LCDCMD, LCDIN
and LCDOUT commands.
W
IRING THE
BASIC S
TAMP TO AN
LCD.
I
NITIALIZING THE
LCD;
THE MOST
IMPORTANT STEP
!
Содержание 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...