新葡萄京官网-新萄京娱乐网址

LM2068R
LCD Module User Manual
Prepared by:
Checked by:
Approved by:
K.C.
Date: 2010-04-29
Date:
Date:
Rev. Descriptions
Release Date
0.1
Preliminary new release
2006-07-31
0.2
Update Top & Tst, Typing Correction in Basic Spec
2010-04-29
URL: www.topwaydisplay.com
Document Name: LM2068R-Manual-Rev0.2
Page: 1 of 12
TOPWAY
LCD Module User Manual
LM2068R
Table of Content
1. Basic Specifications .............................................................................................................. 3
1.1
Display Specifications ............................................................................................................................................ 3
1.2
Mechanical Specifications ...................................................................................................................................... 3
1.3
Block Diagram ........................................................................................................................................................ 3
1.4
Terminal Functions ................................................................................................................................................. 4
2. Absolute Maximum Ratings .................................................................................................. 5
3. Electrical Characteristics ...................................................................................................... 5
3.1
DC Characteristics ................................................................................................................................................. 5
3.2
LED Backlight Circuit Characteristics ..................................................................................................................... 5
3.3
AC Characteristics ................................................................................................................................................. 6
4. Function Specifications ......................................................................................................... 7
4.1
Adjusting the Display Contrast ............................................................................................................................... 7
4.2
Resetting the LCD module ..................................................................................................................................... 7
4.3
Display Pixel Map ................................................................................................................................................... 7
4.4
Control Data and Command .................................................................................................................................. 8
4.5
Register Table Summary ....................................................................................................................................... 8
4.6
Initialization Setting Example ............................................................................................................................... 11
5. Design and Handling Precaution ........................................................................................ 12
URL: www.topwaydisplay.com
Document Name: LM2068R-Manual-Rev0.2
Page: 2 of 12
TOPWAY
LCD Module User Manual
LM2068R
1. Basic Specifications
1.1 Display Specifications
1) LCD Display Mode
: FSTN, Positive, Transflective
2) Display Color
: Display Data = “1” : Dark Gray (*1)
: Display Data = “0” : Light Gray (*2)
3) Viewing Angle
: 9 H
4) Driving Method
: 1/240 duty, 1/12 bias
5) Backlight
: White LED
Note:
*1. Color tone may slightly change by Temperature and Driving Condition.
*2. The Color is defined as the inactive / background color
1.2 Mechanical Specifications
1) Outline Dimension
: 99.5 x 71.75 x 10.4 (exclude FPC terminal)
see attached Outline Drawing for details
1.3 Block Diagram
BLA
BLK
Backlight Circuit
320 x 240 pixels
LCD Panel
VOUT
VDD, VSS, V0
SEG Driver
SEG Driver
/WR, /RD, /CS, RS, /RST
DB0~DB7
RA8803 or equivalent
BUSY
URL: www.topwaydisplay.com
Document Name: LM2068R-Manual-Rev0.2
Page: 3 of 12
TOPWAY
LCD Module User Manual
LM2068R
1.4 Terminal Functions
Pin
Pin
No.
Name
I/O
Descriptions
1
VSS
Power
0V Power Supply, GND
2
VDD
Power
Positive Power Supply
3
V0
Input
LCD Contrast Reference Input
4
/WR
Input
Write enable input, active LOW
5
/RD
Input
Read enable input, active LOW
6
/CS
Input
Chip Select Signal
/CS=LOW: Data IO is enabled
7
RS
Input
Register Select
RS=HIGH: data on DB0 to DB7 is display data
RS=LOW: data on DB0 to DB7 is control data
8
/RST
Input
Reset Signal:
/RST = L, Reset the LCD Module
/RST = H, Normal Running
9
DB0
I/O
8-bit bi-directional data bus
:
:
16
DB7
17
BUSY
OUTPUT Controller busy signal,
MCU should poll this signal before accessing the LCD module
18
VOUT
Power
Power Booster Output for V0
19
BLA
Power
Positive Power Supply for LED backlight
20
BLK
Power
Negative Power Supply for LED backlight
Note: For enable BUSY output, the REG[A0] D0, D1, D2 or D3 should be set to hi.
URL: www.topwaydisplay.com
Document Name: LM2068R-Manual-Rev0.2
Page: 4 of 12
TOPWAY
LCD Module User Manual
LM2068R
2. Absolute Maximum Ratings
Items
Symbol
Min.
Max.
Unit
Condition
Supply Voltage
V DD
0
+5.5
V
V SS = 0V
Input Voltage
V IN
V SS -0.3
V DD +0.3
V
V SS = 0V
Operating Temperature
T OP
-20
+70
 C
No Condensation
Storage Temperature
T ST
-30
+80
 C
No Condensation
Cautions:
Any Stresses exceeding the Absolute Maximum Ratings may cause substantial damage to the device. Functional operation of this
device at other conditions beyond those listed in the specification is not implied and prolonged exposure to extreme conditions may
affect device reliability.
3. Electrical Characteristics
3.1 DC Characteristics
V SS =0V, V DD =5.0V, T OP =25  C
Items
Symbol
MIN.
TYP.
MAX.
Unit Applicable Pin
Operating Voltage
V DD
4.7
5.0
5.3
V
VDD
DB0~DB7, /WR, /RD, /CS,
Input High Voltage
V IN
0.8xVDD
-
VDD
V
RS, /RST
DB0~DB7, /WR, /RD, /CS,
Input Low Voltage
V IN
0
-
0.1x VDD
V
RS, /RST
Operating Current
I DD
-
18.0
45.0
mA VDD
3.2 LED Backlight Circuit Characteristics
BLK=0V, If BLA =100mA, T OP =25  C
Items
Symbol
MIN.
TYP.
MAX.
Unit
Applicable Pin
Forward Voltage
Vf BLA
-
5.0
-
V
BLA
Forward Current
If BLA
-
100
130
mA
BLA
Cautions:
Exceeding the recommended driving current could cause substantial damage to the backlight and shorten its lifetime.
BLA
VSS
No. of LED = 6pcs
URL: www.topwaydisplay.com
Document Name: LM2068R-Manual-Rev0.2
Page: 5 of 12
TOPWAY
LCD Module User Manual
LM2068R
3.3 AC Characteristics
V SS =0V, V DD =5.0V, T OP =25  C
Item
Symbol
MIN.
TYP.
MAX.
Unit
Address Hold Time
tah8
13
-
-
Ns
Address Setup Time
taw8
79
-
-
Ns
System Cycle Time
tcyc8
1000
-
-
Ns
Strobe Pulse Width
tcc8
500
-
-
Ns
Data Setup Time
tds8
79
Data Hold Time
tdh8
13
-
-
Ns
Data Access Time
tacc8
-
-
413
Ns
Output disable Time
toh8
13
-
-
Ns
Note: *1. Input signal rise/fall time should be less than 20ns
*2. System clock=8MHz
Bus Timing Diagram
3.3.1 Reset Timing
V SS =0V, V DD =5.0V, T OP =25  C
Item
Symbol
MIN.
TYP.
MAX.
Unit
Reset Time
trst
320
-
-
ms
Reset LOW pulse width
trsth
65
-
-
ms
Reset Timing Diagram
URL: www.topwaydisplay.com
Document Name: LM2068R-Manual-Rev0.2
Page: 6 of 12
TOPWAY
LCD Module User Manual
LM2068R
4. Function Specifications
4.1 Adjusting the Display Contrast
A Variable-Resistor must be connected to the LCD module for providing a reference to V0.
Adjusting the VR will result the change of LCD display contrast.
The recommended value of VR is 25k to 50k
LCD module
VDD
VR
VOUT
V0
VSS
4.2 Resetting the LCD module
The LCD module should be initialized by using /RST terminal.
While turning on the VDD and VSS power supply, maintain /RST terminal at LOW level. After the
power supply stabilized, release the reset terminal (/RST=HIGH)
4.3 Display Pixel Map
1,1
2,1
3,1
4,1
5,1
316,1
317,1
318,1
319,1
320,1
(D7)
(D6)
(D5)
(D4)
(D3)
- - -
- - -
(D4)
(D3)
(D2)
(D1)
(D0)
1,2
2,2
3,2
4,2
5,2
316,2
317,2
318,2
319,2
320,2
(D7)
(D6)
(D5)
(D4)
(D3)
- - -
- - -
(D4)
(D3)
(D2)
(D1)
(D0)
1,3
2,3
3,3
4,3
5,3
316,3
317,3
318,3
319,3
320,3
(D7)
(D6)
(D5)
(D4)
(D3)
- - -
- - -
(D4)
(D3)
(D2)
(D1)
(D0)
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
1,238
2,238
3,238
4,238
5,238
316,238 317,238 318,238 319,238 320,238
(D7)
(D6)
(D5)
(D4)
(D3)
- - -
- - -
(D4)
(D3)
(D2)
(D1)
(D0)
1,239
2,239
3,239
4,239
5,239
316,239 317,239 318,239 319,239 320,239
(D7)
(D6)
(D5)
(D4)
(D3)
- - -
- - -
(D4)
(D3)
(D2)
(D1)
(D0)
1,240
2,240
3,240
4,240
5,240
316,240 317,240 318,240 319,240 320,240
(D7)
(D6)
(D5)
(D4)
(D3)
- - -
- - -
(D4)
(D3)
(D2)
(D1)
(D0)
Pixel mapping (Top View)
Based on the top view of the LCD module,
the 1, 1 (x, y) pixel is the upper-left pixel;
the 320, 240 (x, y) pixel is the lower-right pixel.
URL: www.topwaydisplay.com
Document Name: LM2068R-Manual-Rev0.2
Page: 7 of 12
TOPWAY
LCD Module User Manual
LM2068R
4.4 Control Data and Command
The LCD module setting is controlled by the internal Register Values.
The Register Address and Register Value should be issued in sequence and they are addressed
as Control Data.
A full command sequence should be as follow.
Steps
/RD
/WR
RS
Data (DB0~ DB7)
1 st
1
0
0
Register Address
2 nd
1
0
0
Register Value
4.5 Register Table Summary
Reg.
Reg.
Add
Name R/W
Descriptions
00h
WLCR R/W
PW1~PW0 : Power Mode
11=Normal Mode; 00=Off Mode
SR : Software Reset
1=reset all register (except DDRAM); 0=normal operation
CG : Display mode selection
1=Character Mode; 0=Graphic Mode
DP : Display on off control
1=normal display; 0=display off
BK : Full screen blinking control
1=blinking (blink time is set by CBTR); 0=normal;
DV : Full screen inverse control
1=normal; 0=inversed
01h
MISC
R/W
CKN : Clock output Control (not applicable)
1=enable; 0=disable
PLR : Interrupt and Busy Polarity (not applicable)
1=active High; 0=active low
CKB1~CKB0 : Clock Speed Selection
00=3MHz; 01=4MHz; 10=8MHz; 11=12MHz
02h
APSR R/W
SP1~SP0 : ROM/RAM reading speed
00=speed0; 01=speed1; 10=speed2; 11=speed3
ORA : Font ROM Readable
1=enable; 0=disable
SRFS : Scrolling Reset for Start
1=enable; 0=disable
03h
ADSR R/W
DADR : Display RAM Order (byte)
1=reverse; 0=normal
AUCM : Common Auto Scrolling
1=enable; 0=disable
AUSG : Segment Auto Scrolling
1=enable; 0=disable
Common or Segment Scrolling Selection
1=Segment Scrolling; 0=Common Scrolling
10h
WCCR R/W
ARI : Auto-increase Cursor Position (in reading DDRAM operation)
1=enable; 0=disable
ALG : Chinese/English char alignment
1=enable; 0=disable
WDI : Store Current Data to DDRAM
1=directly; 0=invertly
WBC : Set Bold font (char mode only)
1=bold; 0=normal
AIX : Auto-increase Cursor Position (in writing DDRAM operation)
1=enable; 0=disable
CP : Cursor display control
1=on; 0=off
CK : Cursor blink control
1=blinking; 0=no blinking
CSD : Set cursor width
1=auto adjust, 0=fix width
11h
DWLR R/W
CR3~CR0 : Cursor Height
DY3~DY0 : Line Distance
URL: www.topwaydisplay.com
Document Name: LM2068R-Manual-Rev0.2
Page: 8 of 12
TOPWAY
LCD Module User Manual
LM2068R
Register Table Summary (cont’)
Reg.
Reg.
Add
Name R/W
Descriptions
12h
MAMR R/W
GIM : Graphic Mode Cursor Auto Shifting Direction
1=Horizontal then Vertical; 0=Vertical then Horizontal
RM2~RM0 : Display Layer Selection
001=page1 only;
010=page2 only;
011=combine two layer; 000=gray scale mode
110=extended mode1, 111=extended mode2
OP1~OP2 : two layer mode setting
00=OR; 01=XOR; 10=NOR; 11=AND
WM1~WM0 : Layer Read/Write Selection
00=page0; 01=page1; 10=page2;
11=page1 & page2 at the same time
20h
AWRR R/W
X5~X0: Active Window Right Register
21h
DWRR R/W
A5~A0 : Display Window Right Register
30h
AWBR R/W
Y7~Y0 : Active Window Bottom Register
31h
DWBR R/W
B7~B0 : Display Window Bottom Register
40h
AWLR R/W
SS5~SS0 : Active Window Left Register
41h
DWLR R/W
C5~C0 : Display Window Left Register
50h
AWTR R/W
SC7~SC0 : Active Window Top Register
51h
DWTR R/W
D7~D0 : Display Window Top Register
60h
CPXR R/W
RS5~RS0 : Cursor Poison X Register
61h
BGSG R/W
DS5~DS0 : Segment Start Position of Scrolling Mode
70h
CPYR R/W
RC7~RC0 : Cursor Position Y Register
71h
BGCM R/W
CB7~CB0 : Common Start Position of Scrolling Mode
72h
EDCM R/W
CD7~CD0 : Common Ending Position of Scrolling Mode
80h
BTMR R/W
BT7~BT0 : Cursor Blink Time Register
81h
FRCA R/W
Frame Rate Polarity Change at Common_A Register
90h
SCCR R/W
CK7~CK0 : Shift Clock Control Register
91h
FRCB R/W
Reserved
A0h
INTR
R/W
INK : Key Scan Interrupt Flag (read only)
1=detected; 0=not detected
INT : Touch Panel detect (read only)
1=touched; 0=untouched
INX : Cursor Column status (read only)
1=equal to INTX; 0=not equal to INTX
INTY : Cursor Row status (read only)
1=equal to INTY; 0=not equal to INTY
MSZ : Key Scan Interrupt output and BUSY output
1=enable key scan interrupt; 0=disable key scan interrupt
MSA : Touch Panel interrupt output and BUSY output
1=enable; 0=disable
MSX : INTX event interrupt output and BUSY output
1=enable; 0=disable
MSY : INTY event interrupt output and BUSY output
1=enable; 0=disable
(any bit of D0~D3 set to “1” could enable the busy signal output)
URL: www.topwaydisplay.com
Document Name: LM2068R-Manual-Rev0.2
Page: 9 of 12
TOPWAY
LCD Module User Manual
LM2068R
Register Table Summary (cont’)
Reg.
Reg.
Add
Name R/W
Descriptions
A1h
KSCR R/W
KEN : Key Scan Enable Bit
(not applicable)
1=enable; 0=disable
KSZ : Key Scan Matrix Selection
1=4x4; 0=8x8
KDT1~KDT0 : Key Scan Data Sampling Times
00=2xFRM; 01=4xFRM; 10=8xFRM; 11=16xFRM
KF2~KF0 : Key Scan Frequency Selection
000= 2xFRM, 001=4xFRM; 010=8xFRM; 011=16xFRM
100= 32xFRM, 001=64xFRM; 010=128xFRM; 011=256xFRM
A2h
KSDR
R
KC7~KC0 : Key Scan Output
(not applicable)
A3h
KSER
R
KR7~KR0 : Key Scan Data Input
(not applicable)
B0h
INTX
R/W
IX5~IX0 : Interrupt Column Setup Register
(not applicable)
B1h
INTY
R/W
IY7~IY0 : Interrupt Row Setup Register
(not applicable)
C0h
TPCR R/W
AZEN : Touch Panel Function
(not applicable)
1=enable; 0=disable
AZOE : Touch Panel Data Output
1=enable; 0=disable
SCAN : Touch Panel Scan
1=enable; 0=disable
AS3~AS0 : Touch Panel Control Bits
C1h
TPSR R/W
ARDY : ADC Data Convert State
(not applicable)
1=convert complete; 0=convert incomplete
ADET : Touch Event Indicate
1=touched; 0=untouched
C8h
TPXR
R
TPX9~TPX2 : Touch Panel Segment data D9~D2
(not applicable)
C9h
RPYR
R
TPY9~TPX2 : Touch Panel Common data D9~D2
(not applicable)
CAh
TPZR
R
TPX1~TPX0 : Touch Panel Segment data D1~D0
(not applicable)
TPY1~TPY0 : Touch Panel Common data D1~D0
D0h
LCCR R/W
DZEN : LCD contrast control
1=disable; 0=enable
DAC4~DAC0 : LCD Contrast Control Value
E0h
PNDR R/W
FD7~FD0 : Pattern Data Register / Display Times of Gray Mode
F0h
FNCR R/W
TNS : External Char ROM
1=enable; 0=disable
BNK : ROM BANK Selection
1=Lower 256k ROM; 0=upper 256k ROM
RM1~RM0 : Font ROM Translate
00=GB(256k); 01=BIG5(512k); 10=GB(512k)
FDA : Fill Data to DDRAM
1=fill data to DDRAM enable; 0=no action;
ASC : Font ROM range select
1=decode as ASCII; 0=auto
ABS1~ABS0 : ASCII Block Selection
00=map to ASCII block 0; 01=map to ASCII block 1;
10=map to ASCII block 2; 11=map to ASCII block 3
F1h
FVHT
R/W
FH1~FV0 : Font Horizontal Size
00=1x; 01=2x; 10=3x; 11=4x
FV1~FV0 : Font Vertical Size
00=1x; 01=2x; 10=3x; 11=4x
Note:
*1. It is suggested to check the BUSY before sending the Control Data.
*2. For the details, please refer to RA8803 Data sheet.
URL: www.topwaydisplay.com
Document Name: LM2068R-Manual-Rev0.2
Page: 10 of 12
TOPWAY
LCD Module User Manual
LM2068R
4.6 Initialization Setting Example
The following setting should be issue to LCD module after hardware reset.
(It is a basic example only; it could be adjusted if necessary.)
Register
Register
Value
Value
Add
Name
(binary)
(hex)
Note
00h
WLCR
1100 1101
CD
Power Mode = Normal Mode
Software Reset = Normal Operation
Display mode = Character Mode
Display on off control = normal display
Full screen blinking control = normal (no blinking)
Full screen inverse = normal (no inverse)
10h
WCCR
0010 1001
29
Auto-increase Cursor Position (in reading DDRAM operation) = disable
Chinese/English char alignment = disable
Store Current Data to DDRAM = directly
Set Bold font (char mode only) = normal
Auto-increase Cursor Position (in writing DDRAM operation) = enable
Cursor display control = off
Cursor blink control = no blinking
Set cursor width = auto adjust
11h
DWLR
0001 0000
10
Cursor Height = 1
Line Distance = 0
20h
AWRR
0010 0111
27
Active Window Right Register = 17
21h
DWRR
0010 0111
27
Display Window Right Register = 17
30h
AWBR
1110 1111
EF
Active Window Bottom Register = 7F
31h
DWBR
1110 1111
EF
Display Window Bottom Register = EF
40h
AWLR
0000 0000
00
Active Window Left Register = 00
41h
DWLR
0000 0000
00
Display Window Left Register = 00
50h
AWTR
0000 0000
00
Active Window Top Register = 00
51h
DWTR
0000 0000
00
Display Window Top Register = 00
81h
FRCA
0100 0000
40
Frame Rate Polarity Change at Common_A Register
90h
SCCR
0000 0100
04
Shift Clock Control Register (set to ~61Hz, when system clock=3MHz)
A0h
INTR
0000 1000
08
Enable the BUSY output with Key Scan Interrupt output
F0h
FNCR
1010 0000
A0
External Char ROM = enable
ROM BANK Selection = upper 256k ROM
Font ROM Translate = GB
Fill Data to DDRAM = no action
Font ROM range select = auto
ASCII Block Selection = map to ASCII block 0
Note:
Others un-mentioned register are using its hardware reset default value.
URL: www.topwaydisplay.com
Document Name: LM2068R-Manual-Rev0.2
Page: 11 of 12
TOPWAY
LCD Module User Manual
LM2068R
5. Design and Handling Precaution
Please refer to "LCD-Module-Design-Handling-Precaution.pdf".
URL: www.topwaydisplay.com
Document Name: LM2068R-Manual-Rev0.2
Page: 12 of 12