Page 64 - Making PIC Microcontroller Instruments and Controllers
P. 64
54 COI{TBOLIIIIG THE OUTPUT AND FEADIIIIG THE INPUT
D-
ntl
E-
NE
NE i 1
E N
E N
EE
EE
NE
EE
E E
E E
N E
N E
EE
NE
o
schemalic d agram
lrlFiiiiiia:d:3lrl TheLcDdisplay wiring. (An easy lo-comprehend
r and lhe 2 x 20 dispay nrodule-)
showing just the llnes belween ihe micfocontrolle
"HELLOWORLD"
r'iP-ioCiittu!4]l Displavins and blinking in the LCD display
rc
For the LCD displal rcgistcN oD the LAB XL the DEFINE statemenls as follows:
CLE]AR clear Lhe nenory
DEFIIIE OSC 4 I
DEFINE LCD DREG PORTD ;
DEFINE IJCD RSREG PORTE ; select register
DEFITIE I,CD RSBIT O , These DEFINES
DEFINE IJCD EREG PORTE ; enable registe!
DEFTNE ItrCD EBIT 1 ;
DEFINE LCD RWREG PORTE ;