GLCD User Manual
GLCD User Manual
GENERAL SPECIFICATIONS
Contents
Information including Drawings, Schematics, Links and Code (Software) Supplied or Referenced in
this Document is supplied by MPJA inc. as a service to our customers and accuracy or usefulness is not
guaranteed nor is it an Endorsement of any particular part, supplier or manufacturer. Use of
information and suitability for any application is at users own discretion and user assumes all risk.
All rights are retained by the respective Owners/Author(s)
LCD Polarizer
Type/ Temperature
range/ View Transmissive, W. T, 6:00
direction
(1)Avoid applying excessive shocks to the module or making any alterations or modifications to it.
(2)Don’t make extra holes on the printed circuit board, modify its shape or change the components of
LCD module.
(3)Don’t disassemble the LCM.
(4)Don’t operate it above the absolute maximum rating.
(5)Don’t drop, bend or twist LCM.
(6)Soldering: only to the I/O terminals.
(7)Storage: please storage in anti-static electricity container and clean environment.
3.General Specification
5.Electrical Characteristics
Ta=+70°C 5.09 - - V
Input High Volt. VIH - 0.7 VDD - VDD V
Input Low Volt. VIL - -0.3 - 0.6 V
Output High Volt. VOH - 0.8 VDD - VDD V
Output Low Volt. VOL - 0 - 0.4 V
Supply Current IDD VDD=5V 1.7 2.0 2.3 mA
* Note: Please design the VOP adjustment circuit on customer's main board
6.Optical Characteristics
Non-selected Non-selected
Conition Selected Conition Conition
Intensity Selected Wave
100% Non-selected Wave Intensity
10%
Cr Max
Cr = Lon / Loff 90%
100%
Vop
Driving Voltage(V) Tr Tf
Conditions :
Operating Voltage : Vop Viewing Angle(θ,φ) : 0°, 0°
Frame Frequency : 64 HZ Driving Waveform : 1/N duty , 1/a bias
Definition of viewing angle(CR≧2)
θb
θf
φ= 180°
θl
θr
φ= 270° φ= 90°
φ= 0°
7.Interface Description
function Description:
System interface
ST7920 supports 3 kinds of bus interface to MPU. 8 bits parallel, 4 bits parallel and clock
synchronized serial interface. Parallel interface is selected by PSB="I" and serial interface by
PSB="0". 8 bit / 4 bit interface is selected by function set instruction DL bit.
Two 8 bit registers (data register DR, instruction register IR) are used in ST7920's write and
read operation. Data Register (DR) can access DDRAM/CGRAM/GDRAM and IRAM's data
through the address pointer implemented by Address Counter (AC). Instruction Register (IR)
stores the instruction by MPU to ST7920.
4 modes of read/write operation specified by RS and RW:
RS RW Description
L L MPU write instruction to instruction register (IR)
L H MPU read busy flag (BF) and address counter (AC)
H L MPU write data to data register (DR)
H H MPU read data from data register (DR)
Busy Flag (BF)
Internal operation is in progress when BF="I", ST7920 is in busy state. No new instruction will be
accepted until BF="0". MPU must check BF to determine whether the internal operation is finished and
new instruction can be sent.
Address counter (AC)
Address counter( AC )is used for address pointer of DDRAM/CGRAM/IRAM/GDRAM.
(AC) can be set by instruction and after data read or write to the memories (AC) will
increase or decrease by 1 according to the setting in "entry mode set". When RS="0" and
RW= "1" and E="1" the value of ( AC ) will output to DB6~DB0.
16x16 character generation ROM (CGROM) and 8x16 half height ROM ( HCGROM )
ST7920 provides character generation ROM supporting 8192 16 x 16 character fonts and 126 8 x 16 alphanumeric
characters. It is easy to support multi languages application such as Chinese and English. Two consecutive bytes are used
to specify one 16x16 character or two 8x16 half-height characters. Character codes are written into DDRAM and the
corresponding fonts are mapped from CGROM or HCGROM to the display drivers.
Character generation RAM (CGRAM)
ST7920 provides RAM to support user-defined fonts. Four sets of 16x16 bit map area are available. These user-defined
fonts are displayed the same ways as CGROM fonts through writing character cod data to DDRAM
ICON RAM (IRAM)
ST7920 provides 240 ICON display. It consists of 15 sets of IRAM address. Each IRAM address has 16 bits data IRAM
address should be set first before writing to the IRAM. Two bytes for each address. First higher byte (D15~D8) and then
lower byte (D7~D0).
D is p l ay d at a R A M ( D D R A M )
Th er e ar e 6 4x 2 b yt es fo r di s p la y d a ta RA M a re a. Ca n s to re d is pl a y da t a f or 1 6
ch ar a c te rs (1 6x 16 ) b y 4 li ne s o r 32 c ha ra c t er s ( 8x 16 ) b y 4 l i ne s . H ow e ve r, on l y 2
li n es c an be di s p la ye d a t a ti me . C ha ra c te r c od es s t or ed i n D D R A M po in t t o t he
fo nt s s pe c if i ed b y C G RO M , H CG RO M a nd CG RA M . S T 79 20 d is pl a y ha l f h ei gh t
H C G R O M fo nt s , u s er-d ef i ne d CG RA M f on ts a nd fu ll 16 x1 6 CG R O M fo nt s . D at a
co de s 00 00 H ~ 00 06H a re fo r CG R A M us e r- de fi n ed fo nt s . D a t a c od es 0 2H ~ 7F H a re
fo r ha lf he ig h t a lp h a n u mer i c f on ts . D a ta co de s (A 14 0- -~D 75F ) ar e f or B IG 5 co de
an d (A 1A 0 ~ F 7F F ) ar e f or G B c od e.
1. d is pl a y H CG RO M f on ts : Wr i t e 2 b yt e s d at a to D D RA M t o di s p l a y tw o 8x 16
f on ts . Ea c h b yt e r ep re s e nt s 1 c ha ra c t er fo nt . Th e d a ta of e a ch b yt e is
0 2H ~ 7F H .
2. d is pl a y CG RA M fo nt s : Wr i te 2 b yt e s d at a t o D D RA M to di s p la y o ne 16 x1 6
f on t. O nl y 0 00 0H , 0 00 2H , 0 00 4H , 00 06H a re al l ow ed .
3 . di s p la y C G RO M f on ts : Wri t e 2 b yt es da ta to D D RA M t o d is pl a y on e 1 6x 16
f on t. A 1 40H ~D 7 5F H a re fo r (B IG 5) c od e, A 1A 0H ~ F 7F F H ar e f or (G B) c od e.
H i gh er b yt e ( D 15 -- , D 8 ) ar e w ri t te n f ir s t an d th e n l ow er b yt e ( D 7~ D O ) . R ef er to
Ta bl e 5 fo r ad dr es s ma p
C G R A M fo nt s an d CG RO M f on ts c an on l y b e d is pl a ye d in th e s ta rt po s i t io n o f ea ch
ad dr es s . ( R e fe r t o Ta bl e 4)
8 0 81 82 83 84 85 86 87 88 89 8A 8B 8C 8D 8E 8 F
H L H L H L H L H L H L H L H L H L H L H L H L H L H L H L H L
S I t r o n I x S T 7 9 2 0
矽 創 電 子 ‧ 中 文 編 碼 ( 正 確 )
矽 創 電 子 中 文 編 碼
Table 4
Incorrect position
Graphic RAM (GDRAM)
Graphic display RAM supports 64x256 bits bit-mapped memory space. GDRAM address is set by writing
2 consecutive bytes for vertical address and horizontal address. Two-bytes data write to GDRAM for one
address. Address counter will automatically increase by one for the next two-byte data. The procedure is
as followings.
1. Set vertical address (Y) for GDRAM
LCD driver
LCD driver have 33 common and 64 segments to drive the LCD panel. Segment data from CGRAM
/CGROM/HCGROM are shifted into the 64 bits segment latches to display. Extended segment driver
ST7921 can be used to extend the segment drivers to 256.
Table 5:DDRAM data(character code),CGRAM data / address map
Note
1. DDRAM data (character code) bit1 and bit2 are the same as CGRAM address bit4 and bit5.
2. CGRAM address bit0 to bit3 specify total 16 rows. Row16 is for cursor display. The data in row 16
will be logical OR to the cursor.
3. CGRAM data for each address is 16 bits.
4. DDRAM data to select CGRAM bit4 to bit15 must be “0”. Bit0 and bit3 value are “don’t care”.
ICON RAM address ICON RAM data
Set SR ”0”,and then
set IRAM address
AC3…AC0
Higher byte Lower byte
AC3 AC2 AC1 AC D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
0
0 0 0 0 SEG0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15
SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 SEG24 SEG25 SEG26 SEG27 SEG28 SEG29 SEG30 SEG31
0 0 0 1
0 0 1 0 SEG32 SEG33 SEG34 SEG35 SEG36 SEG37 SEG38 SEG39 SEG40 SEG41 SEG42 SEG43 SEG44 SEG45 SEG46 SEG47
0 0 1 1 SEG48 SEG49 SEG50 SEG51 SEG52 SEG53 SEG54 SEG55 SEG56 SEG57 SEG58 SEG59 SEG60 SEG61 SEG62 SEG63
0 1 0 0 SEG64 SEG65 SEG66 SEG67 SEG68 SEG69 SEG70 SEG71 SEG72 SEG73 SEG74 SEG75 SEG76 SEG77 SEG78 SEG79
SEG80 SEG81 SEG82 SEG83 SEG84 SEG85 SEG86 SEG87 SEG88 SEG89 SEG90 SEG91 SEG92 SEG93 SEG94 SEG95
0 1 0 1
SEG96 SEG97 SEG98 SEG99 SEG100 SEG101 SEG102 SEG103 SEG104 SEG105 SEG106 SEG107 SEG108 SEG109 SEG110 SEG111
0 1 1 0
SEG112 SEG113 SEG114 SEG115 SEG116 SEG117 SEG118 SEG119 SEG120 SEG121 SEG122 SEG123 SEG124 SEG125 SEG126 SEG127
0 1 1 1
SEG128 SEG129 SEG130 SEG131 SEG132 SEG133 SEG134 SEG135 SEG136 SEG137 SEG138 SEG139 SEG140 SEG141 SEG142 SEG143
1 0 0 0
1 0 0 1 SEG144 SEG145 SEG146 SEG147 SEG148 SEG149 SEG150 SEG151 SEG152 SEG153 SEG154 SEG155 SEG156 SEG157 SEG158 SEG159
1 0 1 0 SEG160 SEG161 SEG162 SEG163 SEG164 SEG165 SEG166 SEG167 SEG168 SEG169 SEG170 SEG171 SEG172 SEG173 SEG174 SEG175
1 0 1 1 SEG176 SEG177 SEG178 SEG179 SEG180 SEG181 SEG182 SEG183 SEG184 SEG185 SEG186 SEG187 SEG188 SEG189 SEG190 SEG191
SEG192 SEG193 SEG194 SEG195 SEG196 SEG197 SEG198 SEG199 SEG200 SEG201 SEG202 SEG203 SEG204 SEG205 SEG206 SEG207
1 1 0 0
SEG208 SEG209 SEG210 SEG211 SEG212 SEG213 SEG214 SEG215 SEG216 SEG217 SEG218 SEG219 SEG220 SEG221 SEG222 SEG223
1 1 0 1
SEG224 SEG225 SEG226 SEG227 SEG228 SEG229 SEG230 SEG231 SEG232 SEG233 SEG234 SEG235 SEG236 SEG237 SEG238 SEG239
1 1 1 0
1 1 1 1 --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
1 0
0 0
Instruction to move the cursor or shift the entire display. The content of DDRAM is not changed.
S/C R/L Description AC Value
L L Cursor moves left by 1 AC=AC-1
L H Cursor moves right by 1 AC=AC+1
H L Display shift left by 1, cursor also follows to shift. AC=AC
H H Display shift right by 1, cursor also follows to shift. AC=AC
● FUNCTION SET
RS RW DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
code
DL : 4/8 BIT 0 0 0 0 1 DL X RE X X
interface control bit
When DL = "1", 8 BIT MPU bus interface
When DL = "0", 4 BIT MPU bus interface
RE : extended instruction set control bit
When RE = "1", extended instruction set
When RE = "0", basic instruction set
In same instruction cannot alter DL and RE at once. Make sure that change DL first then RE.
Read busy flag BF can check whether internal operation is finished. At the same time the value of
address counter (AC) is also read. When BF = “1” new instruction will not be accepted. Must wait for
BF = “0” for new instruction.
Instruction to enter stand by mode. Any other instruction follows this instruction can terminate stand
by.
The content of DDRAM remain the same.
R1 R0 Description
L L First line normal or reverse
L H Second line normal or reverse
H L Third line normal or reverse
H H Fourth line normal or reverse
Please note that only 2 lines out of 4 line display data can be displayed.
● SLEEP
RS RW DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
code 0 0 0 0 0 0 1 SL 0 0
In same instruction cannot alter DL, RE and G at once. Make sure that change DL or G first and
then RE.
ST7920 is in parallel mode by pulling up PSB pin. And can select 8 bit or 4-bit bus interface by function
set instruction DL control bit. MPU can control ( RS , RW , E , and DB0..DB7 ) pins to complete the data
transmission.
In 4-bit transfer mode, every 8 bits data or instruction is separated into 2 parts. Higher 4 bits DB7~DB4
data will transfer.
First and placed into data pins (DB7~DB4). Lower 4 bits (DB3~DB0) data will transfer second and
placed into data pins (DB7~DB4). (DB3~DB0) data pins are not used.
When connecting several ST7920, chip select (CS) must be used. Only when (CS) is high the serial clock
(SCLK) can be accepted. On the other hand, when chip select (CS) is low ST7920 serial counter and data
will be reset. Transmission will be terminated and data will be cleared. Serial transfer counter is set to the
first bit. For a minimal system with only one ST7920 and one MPU,
only SCLK and SID pins are necessary. CS pin should pull to high.
ST7920’s serial clock SCLK is asynchronous to the internal clock and is generated by MPU. When
multiple instruction/data is transferred instruction execution time must be considered. Must wait for the
previous instruction to finish before sending the next. ST7920 has no internal instruction buffer area.
When starting a transmission a start byte is required. It consists of 5 consecutive ”1”(sync character).
Serial transfer counter will be reset and synchronized. Following 2 bits for read/write (RW) and
register/data select (RS). Last 4 bits is filled by “0”
After receiving the sync character and RW and RS bits, every 8 bits instruction/data will be separated into
2 groups. Higher 4 bits (DB7~DB4) will be placed in first section followed by 4 “0”. And lower 4 bits
DB3~DB0 will be placed in second section followed by 4 “0”.
Function set
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 1 1 X 0 X X
Function set
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 1 1 X 0 X X
Display clear
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 0 0 0 0 0 1
Initialization end
4 bit interface:
POWER ON
Function set
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 1 0 X X X X
Function set
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 1 0 X X X X
0 0 X 0 X X X X X X
Display clear
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 0 0 X X X X
0 0 0 0 0 1 X X X X
Initialization end
8 bit interface timing diagram
● MPU write data to ST7920
Environmental Test
Test Item Content of Test Test Condition Note
High Temperature Endurance test applying the high storage 80°C 2
storage temperature for a long time. 200hrs
Low Temperature Endurance test applying the high storage -30°C 1,2
storage temperature for a long time. 200hrs
High Temperature Endurance test applying the electric stress 70°C ——
Operation (Voltage & Current) and the thermal stress to the 200hrs
element for a long time.
Low Temperature Endurance test applying the electric stress under -20°C 1
Operation low temperature for a long time. 200hrs
High Temperature/ The module should be allowed to stand at 60°C, 90%RH 1,2
Humidity Operation 60°C90%RH max for 96hrs under no-load 96hrs
condition excluding the polarizer, Then taking it
out and drying it at normal temperature.
Thermal shock The sample should be allowed stand the -20°C to 70°C ——
resistance following 10 cycles of 10 cycles
operation
-20°C 25°C 70°C
Vibration test Endurance test applying the vibration during Total fixed amplitude : 3
transportation and using. 1.5mm
Vibration Frequency :
10~55Hz
One cycle 60 seconds
to 3 directions of
X,Y,Z for Each 15
minutes
Static electricity test Endurance test applying the electric stress to the VS=800V, RS=1.5kΩ ——
terminal. CS=100pF
1 time
Specification
PARAMETER SYMBOL
Note: The LED of B/L is drive by current only, drive voltage is for reference only.
drive voltage can make driving current under safety area (current between
minimum and maximum).