RA8806
Preliminary Version 1.0
Two Layers Character/Graphic LCD Controller
REG [90h] Idle Time Counter Register (ITCR)
Bit
Description
Default
Access
Idle Time Setting, in count of system clock.
The value can determine the scan time of each COM of the LCD.
COM_PRD = ( COM_SCAN + ITCR) x XCK_PRD
In which,
COM_SCAN = (SEG_NO/LD_WIDTH) x (1 + EXT_MD)
XCK_PRD = 1 / XCK
COM_PRD: The finally scan period for each COM(Unit : ns).
COM_SCAN: The really scan time for each COM.
7-0
00h
R/W
XCK_PRD: One cycle time of XCK. XCK is depends on the system
clock(CLK) and REG[01h] Bit[3:2]. If system clock is
8MHz, REG[01h] Bit[3:2] = 10b, then XCK_PRD = 250ns.
SEG_NO: Segment number, i.e. 240x160 panel, SEG_NO = 240.
EXT_MD: In extension mode1 or 2(REG[12h] Bit[6:4] = 111b or 110b),
the EXT_MD = 1, otherwise EXT_MD = 0.
LD_WIDTH: Driver data width. If LCD driver data bus is 4-bits then
LD_WIDTH = 4. If LCD driver data bus is 8-bits then
LD_WIDTH = 8. Please refer pin “DW” description of
Section 4-3.
REG [A0h] Key-Scan Control Register 1 (KSCR1)
Bit
Description
Default
Access
Key-Scan Enable Bit
1 : Enable.
7
0
R/W
0 : Disable.
Key-Scan Matrix Selection
1 : 4x8 Matrix(KOUT[3:0] is used, KOUT[7:4] please keep floating)
0 : 8x8 Matrix(KOUT[7:0] is used)
6
5-4
3
0
00
0
R/W
R/W
R/W
Key-Scan Data Sampling Times
De-bounce times of scan frequency.
0 0 : 4
0 1 : 8
1 0 : 16
1 1 : 32
LNGKEY_EN : Long Time Key Function Enable
LNGKEY_EN = 0 Æ Long key function is disable.
LNGKEY_EN = 1 Æ Long key function is enable.
RAiO TECHNOLOGY INC.
20/174
www.raio.com.tw