Crystal Clear Technology LCD Overview
| Pin No |
Symbol |
Description |
1 |
VSS |
Ground terminal of module |
2 |
VDD |
Supply terminal of module |
3 |
VO |
Power supply for Liquid Crystal Drive |
4 |
RS |
Register Select:
RS = 0 …. Instruction Register
RS = 1 …. Data Register |
5 |
R/W |
Read/Write:
High = Read
Low = Write |
6 |
E |
Enable |
7-14 |
D0 to D7 |
Bi-directional Data Bus. Data Transfer is performed
once, thru D0 to D7, in the case of interface data
length is 8-bits. |
15 |
(BL -) |
LED power supply terminals |
16 |
(BL +) |
LED power supply terminals |
As defined in the following structure, the pin connection from PIC16F877A to the LCD pin is as follows:
B0 to E - enable
B1 to rs
B2 to rw
B4 to D4 (Data pin)
B5 to D5 (Data pin)
B6 to D6 (Data pin)
B7 to D7 (Data pin)
LCD Command :
lcd_init() Must be called before any other function.
lcd_putc(c) Will display c on the next position of the LCD.
The following have special meaning:
\f Clear display
\n Go to start of second line
\b Move back one position
lcd_gotoxy(x,y) Set write position on LCD (upper left is 1,1)
lcd_getc(x,y) Returns character at position x,y on LCD
C Code Example :
#include <16F877.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#include <lcd.c>
void main()
{
lcd_init();
lcd_putc("\fWelcome to PIC16F877A tutorial...\n");
}
Articles :
Microcontroller
What is a Microcontroller?
Microcontroller Specification
Programming PIC16F877A
Playing with a C Programming and PIC16F877A
Creating a Digital Clock using PIC16F877A, LCD and DS1337 Clock IC from Dallas
How to Load Hex File into PIC16F877A
Lightning Surge Testing
Bit Error Rate Testing
Insertion Loss Testing
Light Emitting Diode
DC Power Jack
Voltage Regulator and Diode
Transistor and Operational Amplifier
Trimmer Pot, Relay and PCB
Understanding PIC16F877A
Product Development Using PIC16F877A
More Product Development Using PIC16F877A
PIC16F877A Input Output Overview
Interfacing PIC16F877A With LCD
VoIP Basic
VoIP Phone
Using VoIP Through Normal PSTN Telephone
What is Codec?