Programming |  PIC's |  LAB-X 20 |  LCD Connections

PinSymbolLevelDescripition
1Vss0VGround
2Vdd5.0VSupply Voltage for Logic
3VO(variable)Operating voltage for LCD
4RSH/LH: DATA, L: Instruction code
5R/WH/LH: Read(MPU->Module) L: Write(MPU->Module)
6EH,H->LChip enable signal
7Data 0H/LData bit 0
8Data 1H/LData bit 1
9Data 2H/LData bit 2
10Data 3H/LData bit 3
11Data 4H/LData bit 4
12Data 5H/LData bit 5
13Data 6H/LData bit 6
14Data 7H/LData bit 7
15A-LED+
16K-LED-


LCD Character Locations

Location 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Address 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13
Address 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53

Function

The LCD display Module is built in a LSI controller, the controller has two 8-bit registers, an instruction register (IR) and a data register (DR). The IR stores instruction codes, such as display clear and cursor shift, and address information for display data RAM (DDRAM) and character generator (CGRAM). The IR can only be written from the MPU. The DR temporarily stores data to be written or read from DDRAM or CGRAM. When address information is written into the IR, then data is stored into the DR from DDRAM or CGRAM. By the register selector (RS) signal, these two registers can be selected.

RSR/WOperation
00IR write as an internal operation (display clear, etc.)
01Read busy flag (DB7) and address counter (DB0 to DB7)
10Write data to DDRAM or CGRAM (DR to DDRAM or CGRAM)
11Read data from DDRAM or CGRAM (DDRAM or CGRAM to DR)