GDM128128A SPECIFICATIONS OF LCD MODULE 1.Features a) b) c) d) e) 128x128 dots graphic LCD module Built-in controller (T6963C or Equivalent) +5V power supply, 1/128duty, LED Backlight option Negative voltage option 2.Outline dimension Unit:mm 3.Absolute maximum ratings Item Power voltage Input voltage Operating temperature range Storage temperature range *Wide temperature range is available Symbol VDD-VSS VIN Top Tst (operating/storage temperature as –20~+70/-30~+80℃) 0 VSS 0 -10 Standard - Unit 7.0 VDD +50 +60 V ℃ GDM128128A 4.Block diagram /WR /RD /CE C/D /RST DB0~DB7 FS VDD V0 VSS COM LCD PANEL COM T6963C 13 8 32K RAM COL 2 FG VEE A K EL BACKLIGHT 5.Interface pin description Pin no. 1 2 3 4 5 6 7 8 9 10~17 18 19 20 Symbol External connection FG VSS VDD V0 /WR /RD /CE C/D /RST DB0~DB7 FS A K Power supply MPU MPU MPU MPU MPU MPU MPU BKL power supply Function Frame ground Signal ground for LCM (GND) Power supply for logic (+5V) for LCM Operating voltage for LCD Write enable signal Read enable signal Chip enable signal H: Instruction L: Data Reset signal Data bus line Font selection Power supply for BKL Power supply for BKL CONTRAST ADJUST VDD~V0: LCD Driving voltage VR: 10k~20k V: A 2001/12/05 2/15 COL GDM128128A 6.Optical characteristics STN type display module (Ta=25℃, VDD=5.0V) Item Symbol Condition Min. Viewing angle -60 θ Cr≥2 -40 Φ Contrast ratio Cr Response time (rise) Tr Response time (fall) Tr - Typ. 12 150 150 Max. 35 40 250 250 Unit Deg ms 7.Electrical characteristics DC characteristics Parameter Symbol Supply voltage for LCD VDD-V0 Input voltage VDD Supply current IDD Input leakage current ILKG “H” level input voltage VIH “L” level input voltage VIL “H” level output voltage VOH “L” level output voltage VOL Backlight supply voltage VF Backlight supply current IF Conditions Ta =25℃ Ta=25℃, VDD=5.0V Twice initial value or less LOH=-0.25mA LOH=1.6mA Ta =25℃ Ta =25℃ VF =4.1 V Min. Typ. Max. Unit — 4.7 — — 2.2 0 2.4 — 3.8 — 18.5 5.0 10 — — — — —4.1 720 — 5.5 — 1.0 VDD 0.6 — 0.4 4.3 — V Switching characteristics Item Symbol C/D set-up time C/D hold time /CE, /RD, /WR pulse width Data set-up time Data hold time Access time Output hold time Tcds Tw Tce, Trd, Twr V: A 2001/12/05 Tds mA uA V mA (Ta=25℃, VDD=5.0V) Test conditions Min. Typ. Max. Unit — 100 10 80 80 40 — 10 — — — — — — — — — — — — 150 50 ns Tdh Tacc Toh 3/15 GDM128128A Bus timing diagram C/D Tcdh Tcds /CE Tce,Trd,Twr /RD /WR Tds D0~D7 (WRITE) Tdh Toh Tacc D0~D7 (READ) 8.Flowchart of communications with MPU Status read A status check must be performed before data is read or written. The status word format is as follows: /RD /WR /CE C/D STA7 STA5 STA5 STA4 STA3 STA2 STA1 STA0 0 1 0 1 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 STA0 STA1 STA2 STA3 STA4 STA5 STA6 STA7 Check command execution capability 0: disable Check data read / write capability 0: disable Check auto mode data read capability 0: disable Check auto mode data write capability 0: disable Not used Check controller operation capability 0: disable Error flag. Used for screen peek and screen 0: no error copy commands. Check the blink condition 0: display off 1:enable 1:enable 1:enable 1:enable 1:enable 1: error 1: normal display Notes: 1. It is necessary to check STA0 and STA1 at the same time. There is a possibility of erroneous operation due to a hardware interrupt. 2. For most modes STA0 / STA1 are used as a status check. 3. STA2 and STA3 are valid in auto mode; STA0 and STA1 are invalid. 4. When using the STA7=0 command, a status read must be performed. If a status check is not carried out, the T6963C cannot operate normally, even after a delay time. The hardware interrupt occurs during the address calculation period (at the end of each line). V: A 2001/12/05 4/15 GDM128128A If a STA7=0 command is sent to the T6963c during this period, the T6963C enters wait status. If a status check is not carried out in this state before the next command is sent, there is the possibility that the command or data will not be received. Setting data When using the T6963C, first set the data, and then set the command. Procedure for sending a command: a). The case of 1 data STA0.1 b) the case of 2 data send command send command status check status check data write data write status check status check command write data write end status check STA0.1 command write end (a) (b) Note: When sending more than two data, the last datum (or last two data) is valid. V: A 2001/12/05 5/15 GDM128128A 9.Command definitions Command Registers setting Set control word Mode set Display mode Cursor select pattern Data auto read / write Data read / write Screen peek Screen copy Bit set / reset Code 00100001 00100010 00100100 01000000 01000001 01000010 01000011 1000X000 1000X001 1000X011 1000X100 10000XXX 10001XXX 10010000 1001XX10 1001XX11 100101XX 100110XX 100111XX 10100000 10100001 10100010 10100011 10100100 10100101 10100110 10100111 10110000 10110001 10110010 11000000 11000001 11000010 11000011 11000100 11000101 11100000 11101000 11110XXX 11111XXX 1111X000 1111X001 1111X010 1111X011 1111X100 1111X101 1111X110 1111X111 D1 D2 X address Data Low address Low address columns Low address columns Data Data Data Y address 00H High address High address 00H High address 00H Function Set cursor pointer Set offset register Set address pointer Set text home address Set text area Set graphic home address Set graphic area OR mode EXOR mode AND mode Text attribute mode Internal CG ROM mode External CG RAM mode Display off Cursor on, blink off Cursor on, blink on Text on, graphic off Text off, graphic on Text on, graphic on 1- Line cursor 2- Line cursor 3- Line cursor 4- Line cursor 5- Line cursor 6- Line cursor 7- Line cursor 8- Line cursor Set data auto write Set data auto read Auto reset Data write and increment ADP Data read and increment ADP Data write and decrement ADP Data read and decrement ADP Data write and no variable ADP Data read and no variable ADP Screen peek Screen copy Bit reset Bit set Bit 0 (LSB) Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7(MSB) Note: When an MPU program with checking the busy flag (DB7) is made, it must be necessary 1/2fosc is necessary for executing the next instruction by the falling edge of the “E” signal after the busy flag (DB7) goes to “Low”. X: invalid V: A 2001/12/05 6/15 GDM128128A Contents 1). Setting registers D1 X D2 X CODE 00100001 00100010 00100100 DB7 0 HEX. 21H 22H 24H DB6 0 DB5 1 DB4 0 FUNCTION Set cursor pointer Set offset register Set address pointer DB3 0 DB2 N2 D1 X ADRS DATA Low ADRS DB1 N1 DB0 N0 D2 Y ADRS 00H High ADRS Set cursor pointer X ADRS and Y ADRS specify the position or the cursor. The cursor position can only be moved by this command. Data read / write from the MPU never changes the cursor pointer. X ADRS and Y ADRS are specified as follows. X ADRS 00H to 4FH (lower 7 bits are valid) Y ADRS 00H to 1FH (lower 5 bits are valid) a) Single-scan X ADRS 00H to 4FH Y ADRS 00H to 0FH b) Dual-scan X ADRS 00H to 4FH Y ADRS 00H to 0FH(upper screen) Y ADRS 10H to 1FH(lower screen) Set offset register The offset register is used to determine the external character generator RAM area. The T6963C has a 16-bit address bus as follows: MSB AD15 AD14 AD13 AD12 AD11 AD10 AD9 Offset register data AD8 AD7 AD6 AD5 Character code AD4 AD3 AD2 AD1 LSB AD0 Line scan T6963C assign external character generator, when character code set 80H to FFH in using internal character generator. Character code 00H to 80H assign External character generator, when External generator mode. The senior five bits define the start address in external memory of the CGRAM area. The next eight bits represent the character code of the character. In internal CGRAM mode, character codes 00H to 7FH represent the predefined “internal” CGRAM characters, and codes 80H to FFH represent the user’s own “external” characters. In external CGRAM mode, all 256 codes from indicate one of the eight rows of eight dots that define the character’s shape. The relationship between display RAM address and offset register Set address pointer The set address pointer command is used to indicate the start address for writing to (or reading from) external RAM. The flowchart for set address pointer command: V: A 2001/12/05 7/15 GDM128128A set address pointer status check STA0.1 set address data (lower 8bits) status check set address data (upper 8bits) status check command write send set address pointer command end 2). Set control word D1 X D2 X DB7 0 DB6 1 DB5 0 DB4 0 CODE HEX. FUNCTION 01000000 40H Set text home address 01000001 41H Set text area 01000010 42H Set graphic home address 01000000 43H Set graphic area DB3 0 DB2 0 D1 Low address Columns Low address Columns DB1 N1 DB0 N0 D2 High address 00H High address 00H The home address and column size are defined by this command. Set text home address The starting address in the external display RAM for text display is defined by this command. The text home address indicates the leftmost and uppermost position. The relationship between external display RAM address and display position TH TH +CL TH+TA TH+TA+CL (TH+TA)+TA TH+2TA+CL (TH+2TA)+TA TH+3TA+CL / / TH+(N-1) TA TH+(N-1) TA+CL TH: text home address TA: text area number (columns) CL: columns ate fixed by hardware (pin-programmable) Set graphic home address The starting address of the external display RAM used for graphic display is defined by this command. The graphic home address indicates the leftmost and uppermost V: A 2001/12/05 8/15 GDM128128A position. The relationship between external display RAM address and display position GH GH +CL GH+GA GH + GA +CL (GH+ GA)+ GA GH +2 GA +CL (GH +2 GA)+ GA GH +3 GA +CL / / GH +(N-1) GA GH +(N-1) GA +CL GH: Graphic home address GA: Graphic area number (columns) CL: columns ate fixed by hardware (pin-programmable) Set text area The display columns are defined by the hardware setting. This command can be used to adjust the columns of the display. Set graphic area The display columns are defined by the hardware setting. This command can be used to adjust the columns of the graphic display. If the graphic area setting is set to match the desired number of columns on the LCD, the addressing scheme will be automatically modified so that the start address of each line equals the end address of the previous line +1. 3). Mode set CODE 1000X000 1000X001 1000X011 1000X100 10000XXX 10001XXX FUNCTION OR Mode EXOR Mode AND Mode TEXT Attribute Mode Internal character Mode External character Mode OPERAND — — — — — — The display mode is defined by this command. The display mode does not change until the next command is sent. The logical OR, EXOR, AND of text or graphic display can be displayed. In internal character generator mode, character codes 00H to 7FH are assigned to the built-in character generator ROM. The character codes 80H to FFH are automatically assigned to the external character generator RAM. NOTE: attribute functions can only be applied to text display, since the attribute data is placed in the graphic RAM area. Attribute function The attribute operations are reverse display, character blink and inhibit. The attribute data is written into the graphic area, which was defined by the set control word command. Only text display is possible in attribute function mode; graphic display is automatically disabled. However, the display mode command must be used to turn both text and graphic on in order for the attribute function to be available. The attribute data for each character in the text area is written to the same address in the graphic area. The attribute function is defined as follows. Attribute RAM 1byte X V: A 2001/12/05 X X X 9/15 DB3 DB2 DB1 DB0 GDM128128A DB3 0 0 0 1 1 1 DB2 0 1 0 0 1 0 DB1 0 0 1 0 0 1 DB0 0 1 1 0 1 1 FUNCTION Normal display Reverse display Inhibit display Blink of normal display Blink of reverse display Blink of inhibit display 4). Display mode CODE 10010000 1001xx10 1001xx11 100101xx 100110xx 100111xx 1 0 FUNCTION Display off Cursor on, blink off Cursor on, blink on Text on, graphic off Text off, graphic on Text on, graphic on 0 DB0: cursor blink DB1: cursor display DB2: text display DB3: graphic display 1 DB3 on: 1 on: 1 on: 1 on: 1 OPERAND —— —— —— —— —— —— DB2 DB1 DB0 off: 0 off: 0 off: 0 off: 0 NOTE: It is necessary to turn on “text display” and “graphic display” in the following cases. a) Combination of text / graphic display b) Attribute function 5). Cursor pattern select CODE 10100000 10100001 10100010 10100011 10100100 10100101 10100110 10100111 FUNCTION 1-line cursor 2-line cursor 3-line cursor 4-line cursor 5-line cursor 6-line cursor 7-line cursor 8-line cursor OPERAND When cursor display is on, this command selects the cursor pattern in the range 1 line to 8 lines. The cursor pointer set command defines the cursor address. V: A 2001/12/05 10/15 GDM128128A 6). Data auto read / write CODE 10110000 10110001 10110010 HEX. B0H B1H B2H FUNCTION Set data auto write Set data auto read Auto rest OPERAND — — — The command is convenient for sending a full screen of data from the external display RAM. After setting auto mode, a data write (or read) command is need not be sent between each datum. A data auto write (or read) command must be send after a set address pointer command. After this command, the address pointer is automatically incremented by 1 after each datum. In auto mode, the T6963C cannot accept any other commands. The auto reset command must be sent to the T6963C after all data has been sent, to clear auto mode. NOTE: A status check for auto mode (STA2, STA3 should be checked between sending of each datum. Auto reset should be performed after checking STA3=1(STA2=1)). Refer to the following flowchart. (b) Auto write mode (a) Auto read mode Auto read start Auto write start set address pointer set address pointer status check1 status check1 STA0.1 Auto write B0H Auto read B1H status check2 STA0.1 status check2 STA2 STA3 Data write Data read status check2 status check2 Repetition Repetition Data read Data write status check2 status check2 Auto reset B2H Auto reset B2H END END FUNCTION OPERAN D Data — Data — Data — 7). Data read / write CODE 11000000 11000001 11000010 11000011 11000100 11000101 V: A 2001/12/05 HEX. C0H C1H C2H C3H C4H C5H Data write and increment ADP Data read and increment ADP Data write and decrement ADP Data read and decrement ADP Data write and no variable ADP Data read and no variable ADP 11/15 GDM128128A This command is used for writing data from the MPU to external display RAM, and reading data from external display RAM to the MPU. Data write /data read should be executed after setting address using ser address pointer command. The address pointer can be automatically incremented or decremented using this command. Note: this command is necessary for each 1-byte datum. Refer to the following flowchart. Data write start set address pointer status check1 STA0.1 set write data status check1 Data write C0H END 8). Screen peek CODE 11100000 HEX. E0H FUNCTION Screen peek OPERAND — This command is used to transfer 1 byte of displayed data to the data stack; this byte can then be read from the MPU by data access. The logical combination of text and graphic display data on the LCD screen can be read by read by this command. The status (STA6) should be checked just after the screen peek command. If the address determined by the set address pointer command is not in the graphic area, this command is ignored and a status flag (STA6) is set. Refer to the following flowchart. V: A 2001/12/05 12/15 GDM128128A screen peek start set address pointer STA0.1 status check1 set write data NO STA6=0? YES status check1 Data acces END Note: this command is available when hardware column number and software column number are the same. Hardware column number is related to MD2 and MD3 setting. Software column number is related to ser text area and set graphic area command. 9). Screen copy CODE 11101000 HEX. E8H FUNCTION Screen copy OPERAND — This command copies a raster line of data to the graphic area. The start point must be set using the set address pointer command. Note: If the attribute function is being used, this command is not available. (With attribute data is graphic area data.) With dual-scan, this command cannot be used (because the T6963C cannot separate the upper screen data and lower screen data). Refer to the following flowchart. screen copy start set address pointer STA0.1 status check1 set write data STA6=1? YES NO NO STA0/1=1? YES END V: A 2001/12/05 13/15 GDM128128A This command is available when hardware column number and software column number are the same. Hardware column number is related to MD2 and MD3 setting. Software column number is related to set text area and set graphic area command. 10). Bit set /reset FUNCTION OPERAND 11110XXX Bit reset —— 11111XXX Bit set —— 1111X000 Bit 0 (LSB0) —— 1111X001 Bit 1 —— 1111X010 Bit 2 —— 1111X011 Bit 3 —— 1111X100 Bit 4 —— 1111X101 Bit 5 —— 1111X110 Bit 6 —— 1111X111 Bit 7 (LSB0) —— This command use to set or reset a bit of the byte specified by the address pointer. Only one bit can be set / reset at a time. Refer to the following flowchart. CODE Bit set/reset set address pointer status check1 set write data status check1 Bit set (read) END V: A 2001/12/05 14/15 STA0.1