LCD Theory and Working Principles
LCD Theory and Working Principles
LCD
We are using 16x2 character LCD
16x2 LCD means max 16
characters per line can be
displayed and there are 2 lines
Single character is displayed in
5x7 pixel matrix
LCD SCHEMATIC
LCD SCHEMATIC
CONNECTIONS
CONNECTIONS
PIN DESCRIPTION
RS Reset
RW Rewrite
E Enable
D3 . D7 Data Line
Anode - +5V
Cathode - GND
#define LCD_DATA C
to D4-D7
#define LCD_RS C
#define LCD_RS_POS PC7
#define LCD_RW C
#define LCD_RW_POS PC6
FUNCTIONS OF HEADER
INITIALIZING LCD
InitLCD(LS_BLINK); //initialize
LCD
Above command will initialize the
LCD
FUNCTIONS OF HEADER
CLEAR LCD
LCDClear(); // To clear the display
Above command will CLEAR the
LCD
FUNCTIONS OF HEADER
DISPLAY TEXT ON LCD
LCDWriteStringXY(X,Y,Message");
FUNCTIONS OF HEADER
DISPLAY VARIABLE ON LCD
LCDWriteInt(X,Y,variable,field length);
FUNCTIONS OF HEADER
DISPLAY VARIABLE ON LCD
LCDWriteInt(X,Y,variable,field length);
THANKS