www.donomark.com
 

  E-mail   | Index   |   
Nav
   
 

>Home page

>Generalmusic keyboards

 >Software


 >Electronics

 >Links

 
   
 
 
CUSTOM LCD DISPLAY CHARS WITH PIC BASIC COMPILER PRO
 
   

CUSTOM LCD DISPLAY CHARS WITH PIC BASIC COMPILER PRO


This program let you create new custom for LCD display.

Tested with 16F84 , 16F877 @4Mhz and 20x2 LCD Display
Download bas and hex files for 16F84

In the sofware link,you can download my Bitmap calculator program. It let you draw your chars with mouse and it calculates the right dec,hex and binary values.

'LCD new character Test for Pic Basic Compiler PRO
'Marco D'Onofrio

'Syntax:
'lcdout $FE,$40,$xx,$xx,$xx,$xx,$xx,$xx,$xx,$xx
' $40 is the first address for CGRAM
'Good values are 40,48,50,58,60,68,70,78
'In order to display new chars just type
'lcdout $xx
'xx is char number [00..07]

'Insert a lcdout $fe,1 instruction before using for first time lcdout statement in order to display new chars

pause 200
start:
lcdout "START"
pause 1000

'load new chars into LCD display
lcdout $FE,$40,$04,$e,$1f,$1f,$1f,$1f,$e,$4 'char 0
lcdout $FE,$48,$3,$4,$8,$10,$10,$8,$4,$3 'char 1
lcdout $FE,$50,$18,$4,$2,$1,$1,$2,$4,$28 'char 2
lcdout $FE,$58,$00,$00,$1f,$00,$00,$1f,$00,$00 'char 3
lcdout $FE,$60,$4,$e,$11,$11,$11,$11,$e,$4 'char 4
lcdout $FE,$68,$6,$f,$1f,$1f,$1f,$1f,$f,$6 'char 5
lcdout $FE,$70,$15,$4,$0,$4,$0,$4,$0,$15 'char 6
lcdout $FE,$78,$04,$04,$1f,$04,$04,$00,$1f,$00 'char 7

lcdout $fe,1 'Clear Display. It is necessary the first time

'display new chars

lcdout $00
pause 50
lcdout $01
pause 50
lcdout $02
pause 50
lcdout $03
pause 50
lcdout $04
pause 50
lcdout $05
pause 50
lcdout $06
pause 50
lcdout $07
pause 50

lcdout $fe,$c0
lcdout "Done!"
pause 2000
lcdout $fe,1
goto start:

ZETA BANNER EXCHANGE NETWORK
ZETA BANNER EXCHANGE NETWORK