45184 Parallax Inc, 45184 Datasheet - Page 8

KIT BASIC STAMP 2P PLUS PACK

45184

Manufacturer Part Number
45184
Description
KIT BASIC STAMP 2P PLUS PACK
Manufacturer
Parallax Inc
Datasheet
PP_LCDFONT.BSP
' -----[ Title ]----------------------------------------------------------------
'
' BS2p Plus Pack
'
' File...... PP_LCDCFONT.BSP
' Purpose... Advanced LCD Demo - custom numeric font(s)
' Author.... Parallax, Inc.
' E-mail.... stamptech@parallaxinc.com
' Started...
' Updated... 26 SEP 2001
' {$STAMP BS2p}
' -----[ Program Description ]--------------------------------------------------
'
' This program demonstrates character definition replacement in order to create
' a custom font for numbers.
' are used to display the tens, ones and tenths value of a counter.
'
' The program analyzes the counter and updates the screen by downloading the
' appropriate character map for each digit.
'
' To run this program on the BS2p Demo Board, connect the LCD and install
' Jumper X6. Adjust contrast pot for best display.
'
' Refer to the Hitachi HD44780 documentation for details on LCD control.
' -----[ Revision History ]-----------------------------------------------------
'
' -----[ I/O Definitions ]------------------------------------------------------
'
LCDpin
' -----[ Constants ]------------------------------------------------------------
'
NoCmd
ClrLCD
CrsrHm
CrsrLf
CrsrRt
DispLf
DispRt
DDRam
CGRam
Line1
Line2
CLines
Space
Parallax, Inc. • BS2p “Plus Pack” (#45184) • 10/2001
Connect LCD to the BS2p Demo Board X5
Install jumper X6
Adjust contrast pot for best display
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
$01
$40
8
10
0
$00
$02
$10
$14
$18
$1C
$80
$80
$C0
This program creates three custom characters that
' Display Data RAM control
' Custom character RAM
' No command in LCDOUT
' clear the LCD
' move cursor right
' shift displayed chars right
' DDRAM address of line 1
' DDRAM address of line 2
' connect LCD to OutL
' move cursor to home position
' move cursor left
' shift displayed chars left
' lines per character
Page 8

Related parts for 45184