This is a most commonly used liquid crystal. 1602 can display 2 lines of 16 characters, 8-bit data bus D0-D7, and the RS, R / W, EN three control ports, the working voltage of 5V, and contrast adjustment and backlight with the characters.
Pin 1: VSS is to
Pin 2: VDD 5V positive power supply connection
Pin 3: V0 LCD contrast adjustment for the client, then the contrast is the weakest power, grounding the highest contrast ratio when the contrast is too high will have a 'ghosting', when used with a 10K potentiometer to adjust the contrast, or directly through a resistor to ground.
Pin 4: RS for the register selection, the selection of data register high, low, select the instruction register.
Pin 5: RW is read-write signal, when high read, low write. When the RS and RW can be written together for the low level command or display the address, when RS is high, low RW can be read busy signal, when RS is low for the high RW can write data.
Pin 6: E side to side to make, when E Duanyou high jump into a low, the LCD module execute the command.
7 to 14 pin: D0 ~ D7 for the 8-bit bidirectional data line.
15 feet: Backlight cathode
16 feet: Backlight anode
Character LCD module 1602 occurs within the memory (CGROM) has stored 160 different graphic dot matrix characters, as shown below, these characters are: Arabic numerals, the case of letters, common symbols, and Japanese Kana, etc. Each character has a fixed code, such as the uppercase letters 'A' code is 01000001B (41H), display module in the address 41H dot matrix character and graphic display, we can see the letters 'A '
Instruction 1: Clear Display, Script 01H, the cursor position is reset to address 00H
Instruction 2: Reset the cursor, the cursor back to the address 00H
Instruction 3: Cursor and display mode settings I / D: move the cursor direction, high right, low left S: Does all the text on the screen left or right. High indicates active-low is not valid
Instruction 4: Display switch. D: control the overall display on and off, said the opening show high, low expressed concern about the display C: control the cursor on and off, high expressed cursor, low means no cursor B: control of the cursor is flashing, high flash, low flicker
Instruction 5: Cursor or display shift S / C: high, move the text to display, move the cursor low
Instruction 6: function setting command DL: high, 4-bit bus, 8-bit bus low N: low to single display, high, two-line display F: low to display 5x7 dot matrix characters, high, the matrix display 5x10 characters (some modules are DL: high time for the 8-bit bus, low 4-bit bus)
Instruction 7: Set character generator RAM address
Instruction 8: DDRAM address set
Directive 9: busy signals and cursor address read BF: the busy flag, high indicates busy, the module can not receive commands or data, if that is not busy is low.
Directive 10: Write Data
Command 11: Read Data