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
SymbolStandard Unit VDD-VSS 0 - 7.0 V
VIN VSS - VDD Top 0 - +50
℃
Tst -10 - +60
(operating/storage temperature as –20~+70/-30~+80℃)
元器件交易网www.cecb2b.com
GDM128128A
4.Block diagram
/WR/RD/CEC/D/RSTDB0~DB7FSVDDV0VSS
FGVEEAK
COMCOMLCD PANELT6963C138232K RAMCOLCOLEL BACKLIGHT
5.Interface pin description
Pin no.
Symbol
External connection
Function
Frame ground 1 FG Signal ground for LCM (GND) 2 VSS
Power supply for logic (+5V) for LCM Power supply 3 VDD
Operating voltage for LCD 4 V0
5 /WR MPU Write enable signal
Read enable signal 6 /RD MPU Chip enable signal 7 /CE MPU H: Instruction L: Data 8 C/D MPU 9 /RST MPU Reset signal
Data bus line 10~17 DB0~DB7 MPU
18 FS MPU Font selection
Power supply for BKL 19 A BKL power supply
Power supply for BKL 20 K CONTRAST ADJUST
VDD~V0: LCD Driving voltage
VR: 10k~20k
V: A 2/15 2001/12/05
元器件交易网www.cecb2b.com
GDM128128A
6.Optical characteristics
STN type display module (Ta=25℃, VDD=5.0V)
Item Symbol Condition Min. Typ. Max. Unit
Viewing angle -60 - 35 θ
Deg Cr≥2
-40 - 40 Φ
Contrast ratio Cr - 12 - - Response time (rise) Tr - - 150 250 ms
Response time (fall) Tr - - 150 250
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
— — 18.5 V 4.7 5.0 5.5 — — 10 mA — — 1.0 uA — 2.2 VDD — 0 0.6
V — — 2.4
— —- 0.4 3.8 4.1 4.3 mA — — 720
Switching characteristics (Ta=25℃, VDD=5.0V)
Test
Item Symbol Min. Typ. Max. Unit
conditions
— — C/D set-up time 100 Tcds
— — C/D hold time 10 Tw
— — /CE, /RD, /WR pulse width Tce, Trd, Twr80
Data set-up time
Data hold time Access time Output hold time
Tds Tdh Tacc Toh
—
80 40 — 10
— — — —
— — 150 50
ns
V: A 3/15 2001/12/05
元器件交易网www.cecb2b.com
GDM128128A
Bus timing diagram C/DTcdsTcdh/CETce,Trd,Twr/RD/WRTdsTdhD0~D7(WRITE)D0~D7(READ)
TaccToh 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 DB7DB6DB5DB4DB3DB2 DB1DB0
STA0 Check command execution capability STA1 Check data read / write capability
STA2 Check auto mode data read capability STA3 Check auto mode data write capability STA4 Not used STA5 Check controller operation capability
STA6 Error flag. Used for screen peek and screen copy commands.
STA7 Check the blink condition
0: disable 1:enable 0: disable 1:enable 0: disable 1:enable 0: disable 1:enable 0: disable 1:enable 0: no error 1: error 0: display off 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 4/15 2001/12/05
元器件交易网www.cecb2b.com
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 b) the case of 2 data send commandSTA0.1status checkdata writestatus checkcommand writeendsend commandstatus checkdata writestatus checkdata writestatus checkcommand writeend(a)(b)STA0.1Note:
When sending more than two data, the last datum (or last two data) is valid.
V: A 5/15 2001/12/05
元器件交易网www.cecb2b.com
GDM128128A
9.Command definitions
Command
Code D1 D2 Function 00100001
Registers setting 00100010
00100100 01000000 01000001
Set control word
01000010 01000011 1000X000 1000X001 1000X011
Mode set
1000X100 10000XXX 10001XXX 10010000 1001XX10 1001XX11
Display mode
100101XX 100110XX 100111XX 10100000 10100001 10100010
Cursor pattern 10100011 select 10100100
10100101 10100110 10100111 10110000
Data auto read /
10110001
write
10110010 11000000 11000001 11000010
Data read / write
11000011 11000100 11000101
Screen peek 11100000 Screen copy 11101000
11110XXX 11111XXX 1111X000 1111X001 1111X010
Bit set / reset
1111X011 1111X100 1111X101 1111X110 1111X111
X address Data Low address Low address columns Low address columns Y address 00H High address High address
00H
High address
00H
Data Data Data
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 ADPData read and decrement ADPData write and no variable ADPData read and no variable ADPScreen 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 6/15 2001/12/05
元器件交易网www.cecb2b.com
GDM128128A
Contents
1). Setting registers
D1 D2 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 X X 0 0 1 0 0 N2 N1 N0
CODE HEX. FUNCTION D1 D2 00100001 21H Set cursor pointer X ADRS Y ADRS 00100010 22H Set offset register DATA 00H 00100100 24H Set address pointer Low ADRS 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 b) Dual-scan
X ADRS 00H to 4FH X ADRS 00H to 4FH
Y ADRS 00H to 0FH 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: MSBAD15AD14AD13AD12AD11AD10AD9Offset register dataAD8AD7AD6AD5AD4AD3AD2AD1LSBAD0Character codeLine 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 7/15 2001/12/05
元器件交易网www.cecb2b.com
GDM128128A
set address pointerstatus checkSTA0.1set address data(lower 8bits)status checkset address data(upper 8bits)status checkcommand writesend set address pointer commandend
2). Set control word
D1 D2 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 X X 0 1 0 0 0 0 N1 N0
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
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 8/15 2001/12/05
D1 D2 Low addressHigh address Columns 00H Low addressHigh address Columns 00H
元器件交易网www.cecb2b.com
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 FUNCTION OPERAND 1000X000 OR Mode — 1000X001 EXOR Mode — 1000X011 AND Mode — 1000X100 TEXT Attribute Mode — 10000XXX Internal character Mode — 10001XXX External character Mode —
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 X X X DB3DB2DB1 DB0 V: A 9/15
2001/12/05
元器件交易网www.cecb2b.com
GDM128128A
DB3 DB2 DB1 DB0 FUNCTION 0 0 0 0 Normal display 0 1 0 1 Reverse display 0 0 1 1 Inhibit display 1 0 0 0 Blink of normal display 1 1 0 1 Blink of reverse display 1 0 1 1 Blink of inhibit display
4). Display mode
CODE FUNCTION OPERAND 10010000 Display off —— 1001xx10 Cursor on, blink off —— 1001xx11 Cursor on, blink on —— 100101xx Text on, graphic off —— 100110xx Text off, graphic on —— 100111xx Text on, graphic on ——
1 0 0 1 DB3 DB2DB1DB0 DB0: cursor blink on: 1 off: 0 DB1: cursor display on: 1 off: 0 DB2: text display on: 1 off: 0 DB3: graphic display on: 1 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 FUNCTION OPERAND 10100000 1-line cursor 10100001 2-line cursor 10100010 3-line cursor 10100011 4-line cursor 10100100 5-line cursor 10100101 6-line cursor 10100110 7-line cursor 10100111 8-line cursor
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 10/15 2001/12/05
元器件交易网www.cecb2b.com
GDM128128A
6). Data auto read / write
CODE HEX. FUNCTION OPERAND10110000 B0H Set data auto write — 10110001 B1H Set data auto read — 10110010 B2H Auto rest —
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.
(a) Auto read modeAuto read startset address pointer(b) Auto write modeAuto write startset address pointerstatus check1Auto read B1Hstatus check2Data readstatus check2STA0.1status check1Auto write B0HSTA0.1STA2status check2Data writestatus check2STA3RepetitionData readstatus check2Auto reset B2HENDData writestatus check2Auto reset B2HENDRepetition
7). Data read / write
CODE HEX. 11000000 11000001 11000010 11000011 11000100 11000101
C0H C1H C2H C3H C4H C5H
FUNCTION
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
OPERAN
D Data — Data — Data —
V: A 11/15 2001/12/05
元器件交易网www.cecb2b.com
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 startset address pointerstatus check1set write datastatus check1Data write C0H STA0.1
8). Screen peek
CODE HEX. FUNCTION OPERAND 11100000 E0H Screen peek —
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 12/15 2001/12/05
END元器件交易网www.cecb2b.com
GDM128128A
screen peek startset address pointerSTA0.1status check1set write dataNOSTA6=0?YESstatus check1Data accesEND
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 HEX. FUNCTION OPERAND 11101000 E8H Screen copy —
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 startset address pointer STA0.1status check1set write dataSTA6=1?NOYESNOSTA0/1=1?YESENDV: A 13/15 2001/12/05
元器件交易网www.cecb2b.com
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
CODE 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.
Bit set/resetset address pointerstatus check1set write datastatus check1Bit set (read)ENDSTA0.1
V: A 14/15 2001/12/05
因篇幅问题不能全部显示,请点此查看更多更全内容