BASIC stamp manual v2.2

LCDCMD – BASIC Stamp Command Reference
Page 250 BASIC Stamp Syntax and Reference Manual 2.2 www.parallax.com
instructions to the LCD. It is most commonly used to initialize the display
upon a power-up or reset condition.
The following is an example of the LCDCMD command:
LCDOUT 0, 24
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 0. 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 0.
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.43. Figure 5.14 shows
the required wiring for the above command to work.
Figure 5.14: Example LCD Circuit.
Shown with all connections
necessary for the LCDCMD, LCDIN
and LCDOUT commands.
A SIMPLE LCDCMD EXAMPLE.
W
IRING THE BASIC STAMP TO AN LCD.