SMILEY’S WORKSHOP ☺
Theory is all well and good, but to really learn this
stuff you have to get your hands on some tangible items
that blink, whirr, and sometimes detonate. As a service
for the readers of the Smiley’s Workshop articles, we
have simple and inexpensive projects kits available that
can help you make it real. You can find these kits (and
some darn good books) at the Nuts & Volts Webstore.
// set LCD DDR pins to 1 for output
LCD_D4_DDR |= (1<<LCD_D4_PIN);
LCD_D5_DDR |= (1<<LCD_D5_PIN);
LCD_D6_DDR |= (1<<LCD_D6_PIN);
LCD_D7_DDR |= LCD_D7_PIN);
LCD_E_DDR |= (1<<LCD_E_PIN);
LCD_RS_DDR |= (1<<LCD_RS_PIN);
Now the registers are set up so that we can control
the LCD. Of course, controlling an LCD of the HD44780
variety is moderately complex, but we’ll get to that later.
Lab Section: The LCD Navigator
Assemble the LCD Navigator Projects Kit
The LCD Navigator Projects Kit (shown in Figure 4)
is available from the Nuts & Volts webstore.
■ FIGURE 4. LCD Navigator parts kit.
■ FIGURE 5. LCDNAV schematic.
January 2012 55