Usage: | Small-sized LCM, Monitor LCM |
---|---|
Digital LCD Module Type: | / |
Touch Screen Type: | / |
Still deciding? Get samples of US$ 1.2/Piece
Request Sample
|
Suppliers with verified business licenses
Audited by an independent third-party inspection agency
SKU | 1114-Blue |
Place of Origin | China |
Color | Blue |
MOQ | 5 |
Delivery time | 7days |
Support customization | yes |
Standard 16X2 LCD character module (Backlight / blue screen)
1602 using a standard 16-pin interface, wherein:
Pin 1: VSS to power
Pin 2: VDD connected to 5V positive power supply
Pin 3: V0 LCD display contrast adjustment terminal, connected to the positive power supply weakest contrast, grounded power contrast, the contrast is too high will produce "ghosting", when used by a 10K potentiometer to adjust the contrast
Pin 4: RS for register selection, the selection of high data registers, instruction register is low.
Pin 5: R / W for read and write signal line, high read, low write operation. When the RS and RW is low can be written instructions or display the address can be read, when RS is low RW is high busy signal, data can be written when RS is high RW is low.
Pin 6: E end to enable end, When E Duanyou high jump becomes low, the LCD module execute the command.
7 to 14 feet: D0 to D7 for 8-bit bidirectional data line.
15 feet: Backlight positive power supply
16 feet: backlight negative power supply
1602 character LCD module internal memory (CGROM) has stored 160 dot matrix character graphics, such as shown in Table 1, these characters are: Arabic numerals, the case of the letters of the alphabet, commonly used symbols, and Japanese kana , we can see the letters "A, each character has a fixed code, for example, the uppercase letters of the alphabet" A "code is 01000001B (41H), dot matrix character pattern in the address 41H in the display module to display . "
ORG 0000H following procedures to display the letter "A" in the first character position of the second row of the LCD module:
RS EQU P3.7; determine the specific hardware connection
RW EQU P3.6; determine the specific hardware connection
E EQU P3.5; determine the specific hardware connection
MOV P1, # 00000001B; clear the screen and reset the cursor
ACALL ENABLE; write command subroutine call
MOV P1, # 00111000B; Set Display Mode: 8 2 lines 5x7 dot matrix
ACALL ENABLE; write command subroutine call
MOV P1, # 00001111B; display on, cursor on, allows the cursor to blink
ACALL ENABLE; write command subroutine call
MOV P1, # 00000110B; text does not move the cursor automatically to the right
ACALL ENABLE; write command subroutine call
MOV P1, # 0C0H; written to the display start address (the first position of the second row)
ACALL ENABLE; write command subroutine call
MOV P1, # 01000001B; letters A code
SETB RS; RS = 1
CLR RW; RW = 0; ready to write data
CLR E; E = 0; command is executed
ACALL DELAY; determine whether LCD module is busy?
SETB E; E = 1; showing completion procedures Parking
ENABLE:
CLR RS; write control command subroutine
CLR RW
CLR E
ACALL DELAY
SETB E
RET
DELAY:
MOV P1, # FFH; determine whether the liquid crystal display busy subroutine
CLR RS
SETB RW
CLR E
NOP
SETB E
JB P1.7 DELAY; P1.7 is high to indicate a busy loop waiting for
RET
END
Program at the beginning of the function of the LCD module initialization settings, have agreed on the display format. Note that the character the cursor is automatically shifted to the right, without human intervention, each time you enter the command first call to determine whether the LCD module busy subroutine DELAY, and then enter the displayed location address 0C0H last input of characters to display A code 41H .