深圳市烨新达实业有限公司 YXD-12864B LCM 技术资料 第 1 页 共 8页 深圳市烨新达实业有限公司 YXD-12864B LCM 技术资料 Summary LCM YXD-12864B is a graphics dot matrix liquid crystal display module, which is composed of a line driver, a column driver and a 128 * 64 full lattice liquid crystal display, which can display the Chinese characters of 4 * 8 (16 * 16). Main technical parameters and performance: 1, power supply (VDD):+5V 2, display content: 128 (column) x 64 (line) 3, the whole screen lattice 4. Seven kinds of instructions. 5, the 8 bit data bus is used in parallel with the CPU interface to input the output and 8 control lines. 6, duty cycle (DUTY): 1/64 7, working temperature: -20, +70, storage temperature: -30 ~ +85 8, the working current of the module is about 3.4mA (5V), and the working current is about 520mA (5V). 一、 Dimensions 1.Dimensions 图 2.Outline dimension ITEM Module volume Visual field Row array number Point distance Point size 1 NOMINSL DIMEN 93×70×9.5(LED 14.2) 66.52×33.24 128×64 0.52×0.52 0.48×0.48 表1 UNIT MM MM DOTS MM MM 三.Module main hardware 1.Structure block diagram 第 2 页 共 8页 深圳市烨新达实业有限公司 8 DB0-DB7 RS,R/W,E CS1 CS2 /RST VSS VDD V0 Vout A K 5 COMMON DRIVER YXD-12864B LCM 技术资料 3 SEGMENT DRIVER SEGMENT DRIVER LCD PANEL 128 X 64 DOTS LED (EL) LIGHT 图2 2. Structure diagram IC3 is a line driver.IC1, IC2 is a column driver.IC1, IC2, IC3 contains the following main functions of the device. 1. The instruction register (IR) IR is used to register the instruction code, and the data register storage data corresponding. When D/I=0 in the E signal down along the role of the instruction code written in IR. 2. Data register (DR) DR is used to store data, and the instruction register storage instructions corresponding. When D/I=1, the falling edge of the E signal, the graphics display data write DR, or in the high level of E signal data transfer between DB7-DB0 and.DR by the DR data bus and DDRAM is automatically executed. 3. Busy logo: BF The BF flag provides internal working conditions for the.BF=1 to express the module in the internal operation, the module does not accept external instructions and data.BF=0, the module is ready, ready to accept external instructions and data. Using the READ STATUS command, you can read the DB7 bus to the BF bus, and then test the working status of the module. 4. Display control trigger DFF This trigger is used to control the.DFF=1 (ON DISPLAY), which is used to display the DDRAM in the module screen. The content of the DFF=0 is displayed on the screen, and the is displayed on the display (OFF DISPLAY). The state of the DFF is controlled by ON/OFF DISPLAY and RET signals. 5. XY address counter. The XY address counter is a 9 bit counter. The third is the X address counter, the low 6 bits are Y address counter, the XY address counter is actually the address pointer to X, the DDRAM address counter is DDRAM's page pointer, the Y address counter is the Y DDRAM ground check. X address counter is not counting function, can only use the instruction set. Y address counter has the function of the cycle count, each display data is written, Y address automatically add 1, Y address pointer from 0 to 63 6. Display data RAM (DDRAM) DDRAM is the storage of graphics display data. The data for the 1 indicates the choice, the data for the 0 to show the relationship between the.DDRAM and address and display location of the DDRAM address table (see page sixth). 7. Z address counter Z address counter is a 6 bit counter, this counter has a cycle count function, which is used to display line scan synchronization. When a line scan is completed, the address counter is automatically added 1, pointing to the next line scan data, RET reset Z address counter is 0 The Z address counter can be preset with the START LINE DISPLAY, so the starting line of the display screen is controlled by the DDRAM data from which row is displayed on the first line of the screen. The DDRAM of this module can be displayed in a total of 64 lines, so the screen can be displayed on the 64 row. 第 3 页 共 8页 深圳市烨新达实业有限公司 四. 模块的外部接口 Pin Name number 1 VSS 2 VDD LEVE 0V 5.0V -5.0V~(-1 3V) 3 V0 4 D/I H/L 5 R/W H/L 6 E H 7 | 14 15 DB0 | DB7 CS1 16 CS2 H 17 18 19 20 /RST VOUT A K H,H-L -9.0V 5.0V 0V YXD-12864B LCM 技术资料 Pin function description Power source Power supply voltage Driving voltage of liquid crystal display D/I= "H" indicates that DB7-DB0 is the display data D/I= "L" indicates the DB7-DB0 to display the instruction data "R/W= H E=", "H" data read DB7-DB0 R/W= "L", E= "H" "L", DB7-DB0 data to IR or DR Enable signal: R/W= "L", the E signal decreases along the latch DB7-DB0 R/W= "H", E= "H", DDRAM data read to DB7-DB0 H/L Data bus H Select IC1, that is, before (left) 64 columns Select IC2, that is, after the selection (right) 64 column Reset control signal, RST=0 Internal negative pressure generator output voltage LED backlight power + LED backlight power 表 2 五. Instruction description IL Instruction code Instructi on RW DI D7 D6 D5 D4 D3 Display ON/OFF Display Starting line Set up X address Set up Y address 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 1 1 1 1 D2 D1 D0 1 1 1/0 1 1 Control switch Does not affect the data and the internal state of the DDRAM Specify which line to start from the DDRAM 显示起始行(0-63) 1 function Set DDRAM address (X address) X:0-7 Y 地址(0-63) Set column address (Y address) Read state Reading status Write display data Read and display 1 0 B U S Y 0 ON / OFF R S T RST: 1, reset; 0: normal 0 0 0 0 ON/OFF:0: display: 1: show off 0 1 View data BUSY: 1 internal operation; 0: ready Writing data online DDRAM DB0-DB7 1 1 View data Writing data online DDRAM DB0-DB7 第 4 页 共 8页 深圳市烨新达实业有限公司 YXD-12864B LCM 技术资料 data 表 3 Display switch control (DISPLAY ON/OFF) R/W D/I DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 0 0 0 0 1 1 1 1 1 D D=1: (DISPLAY ON) that display display can display operation D=0: Guan Xianshi (DISPLAY OFF) were all on display that can display operation 2. DISPLAY START LINE R/W D/I DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 0 0 1 1 A5 A4 A3 A2 A1 A0 In front of the Z address counter a section has described the show that the starting line is controlled by the Z address counter.A5-A0 6 bit address automatically sent to the Z address counter, the address of the starting line can be an arbitrary line of 0-63. For example, the selection of A5-A0 is 62, then the corresponding relationship between the starting line and the DDRAM line is as follows: DDRAM line: 62 63 0 1 2 3. . . . . . . . . . . . . . . . . . . . . . . . . 28 29 Screen display line: 1 2 3 4 5 6 7 . . . . . . . . . . . . . . . . . . . . . . . 63 64 3.Set page address ( SET PAGE “X ADDRESS” ) R/W D/I DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 0 0 1 0 1 1 1 A2 A1 A0 1. DDRAM the so-called page address is the address and eight pages, module, a total of 64 row 8 pages, A2-A0 said 0-7 page. Read and write data has no effect on the page address, page address by the instruction or the rst signal change reset address overleaf. The corresponding relationship between the page address and DDRAM see the DDRAM address table. 4.( SET Y ADDRESS ) R/W D/I DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 0 0 0 1 A5 A4 A3 A2 A1 A0 The function of this instruction is to send A5-A0 into the Y address counter, as the Y DDRAM address pointer. After reading and writing to the Y, the DDRAM address pointer automatically adds 1 to the next DDRAM unit. DDRAM address table: CS1=1 Y= 0 1 2 X= DB0 0 ↓ DB7 X= DB0 1↓ 6 DB7 X= DB0 7 ↓ DB7 3 … DB0 ↓ DB7 DB0 ↓ DB7 DB0 ↓ DB7 表 62 63 CS2=1 0 1 2 DB0 ↓ ↓DB7 DB0 ↓ DB0 ↓ DB7 3 ... DB0 62 行号 0 DB7 7 8 DB0 ↓DB7 DB7 DB0 ↓ DB7 63 55 56 DB7 63 4 第 5 页 共 8页 深圳市烨新达实业有限公司 5.读状态 (STATUS READ) R/W D/I 1 0 DB7 BF DB6 0 DB5 ON/OFF DB4 RST YXD-12864B LCM 技术资料 DB3 0 DB2 0 DB1 0 DB0 0 When R/W=1, D/I=0, the E signal to the "H" role, the status of the data bus, (DB7-DB0), respectively, the corresponding position. BF: has been described in the previous half (see the BF flag bit). ON/OFF: Indicates the state of the DFF trigger (see DFF trigger section). RST: RST=1 says the internal is being initialized, and the component does not accept any instructions or data. 6.写显示数据 (WRITE DISPLAY DATE) R/W D/I DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 0 1 D7 D6 D5 D4 D3 D2 D1 D0 D7-D0 to display data, this instruction is written to the corresponding DDRAM D7-D0 unit, Y address pointer automatically add 17.读显示数据处理(READ DISPLAY DATA) R/W D/I DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 1 1 D7 D6 D5 D4 D3 D2 D1 D0 This instruction reads the contents of D7-D0 to DB7-DB0, and the Y address instruction automatically adds 1 六、 Read and write operation sequence 1. Write operation sequence 图 3 2. Read operation sequence 第 6 页 共 8页 深圳市烨新达实业有限公司 图 2. Read and write timing parameter list Name Sign number Min E cycle time Tcyc 1000 E High level width Pweh 450 E Low level width Pwel 450 E rise time Tr ---E Fall time Tf ---Address setup time Tas 140 Address hold time Tah 10 Data set up time Tdsw 200 Data delay time Tddr ---Write data hold time Tdhw 10 Read data retention timeTdhw 20 表 六. YXD-12864B LCM 技术资料 4 Typical value Max --------------25 --25 --------------320 --------- Unit ns ns ns ns ns ns ns ns ns ns ns 5 Application examples 12864 与单片机 8751 的一种简单接口如图 5 所示 图 5 利用图 5 举例介绍几个编程举例. OUTI1: SETB P3.4 SETB P3.3 CLR P3.1 CLR P3.0 第 7 页 共 8页 深圳市烨新达实业有限公司 YXD-12864B LCM 技术资料 MOV P1,A CLR P3.3 CLR P3.4 RET OUTI2: RET OUTD1: RET OUTD2: SETB SETB CLR CLR MOV CLR CLR P3.5 P3.3 P3.1 P3.0 P1,A P3.3 P3.5 SETB P3.4 SETB P3.3 SETB P3.1 CLR P3.0 MOV P1,A CLR P3.3 CLR P3.4 SETB P3.5 SETB P3.3 SETB P3.1 CLR P3.0 MOV P1,A CLR P3.3 CLR P3.5 RET 第 8 页 共 8页