Page 158 - Making PIC Microcontroller Instruments and Controllers
P. 158
I5O USING I.IQUID CBIISTAI DISPLAYS: AI{ EXTEI{DED II{FORIIIAIION BESOUBCE
1A waltfof 4.1 msec
2 t high 0 low 0011xxxx Toggle H to L
2A wail lor 100 $sec
3 t high olow 0011xxxx Toggle H to L
3A wait ior 1 msec
4 t high olow Oo1l1oxx Toggle H to L
5 t hlgh olow 00000001 Toggle H to L
0 low 00000110 Toggle H io L
Thcse lnstructiors are commands father than data, so the RS 0cgister select) ljnc
nust be hcld high while we initialize- See Table 9.5.
The six lincs olcode in Table 9.5 uc explained
nr delajl !s follows:
" 2 " =
i n a b i L d o n ' t c a r e
0 0 1 1 0 0 0 0 r code to initiaLize lhe LcD (this is enLered
; 3 t i n e s , 1 s t t r m e )
; load for a comand funcrron
; w a i t a t l e a s t 4 . 1 n s
0 0 1 1 0 0 0 0 code !o iniLialize the LCD
load for a comand function
vait a! leasL 100us
0 0 1 1 0 0 0 0 code to initialize the LcD
Load for a comand function
liait at least l nillisecond
0 1 1 0 0 0 p , 8 o ' o ! - - . d o
0
1
0
1 = 8 b i t d a t a i r a n s t e r
1 = 2 l i n e s o f d i s p L a y
0 =5x7 display
road for a connand function