Parallax, Inc. • BS2p “Plus Pack” (#45184) • 10/2001
Page 15
PP_LCD5x10.BSP
•
Connect LCD to the BS2p Demo Board X5
•
Install jumper X6
•
Adjust contrast pot for best display
•
Assemble pushbutton circuit on breadboard
' -----[ Title ]----------------------------------------------------------------
'
' BS2p Plus Pack
'
' File...... PP_LCD5x10.BSP
' Purpose... Basic LCD Demo -- Using 5x10 font and descended characters
' Author.... Parallax, Inc.
' E-mail.... [email protected]
' Started...
' Updated... 26 SEP 2001
' {$STAMP BS2p}
' -----[ Program Description ]--------------------------------------------------
'
' This program demostrates a method of intializing a 2x16 LCD so that it behaves
' like a single-line LCD that will display the 5x10 character set. The LCD
' character map includes properly descended characters, but they are not mapped
' in the normal ASCII set. A simple conversion routine can be used to replace
' "squishy" descended characters with proper ones.
'
' Stamp pin 15 is pulled up to Vdd (+5) through 10K. This pin is connected to
' Vss (ground) through a N.O. pushbutton switch. The pin will read 1 when the
' switch is open, 0 when pressed.
'
' To run this program on the BS2p Demo Board, assemble the the switch circuit on
' the breadboard, connect the LCD to X5 and install Jumper X6. Adjust contrast
' pot for best display.
'
' Refer to the Hitachi HD44780 documentation for details on LCD control.
' -----[ Revision History ]-----------------------------------------------------
'