RA8806
Preliminary Version 1.0
Two Layers Character/Graphic LCD Controller
KF2-0: Key-Scan frequency.
If system clock is 10MHz, then the related Key-Scan timing are as
following:
Key-Scan
KF2 KF1 KF0 Pulse Width
(KOUT period)
Key-Scan
Cycle (4x8) Cycle (8x8)
Key-Scan
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
16µs
32µs
64µs
64µs
128µs
256µs
512µs
128µs
256µs
2-0
000
R/W
128µs
256µs
512µs
1.024ms
2.048ms
512µs
1.024ms
2.048ms
4.096ms
8.192ms
16.384ms
1.024ms
2.048ms
4.096ms
8.192ms
REG [A1h] Key-Scan Controller Register 2(KSCR2)
Bit
7
Description
Default
0
Access
R/W
R
Key-Scan Wakeup Function Enable Bit
0: Key-Scan Wakeup function is disable.
1: KEY-SCAN Wakeup function is enable.
Reserved
6-4
000
Long Key Timing Adjustment
00 : About 0.625sec(for 8MHz Clock source)
01 : About 1.25sec(for 8MHz Clock source)
10 : About 1.875 sec(for 8MHz Clock source)
11 : About 2.5 sec(for 8MHz Clock source)
3-2
1-0
00
00
R/W
R
Numbers of Key Hit.
00 : No key is pressed
01 : One key is pressed, read REG[A2h] for the key number.
10 : Two key is pressed, read REG[A2h ~ A3h] for the key number.
11 : Three key is pressed, read REG[A2h ~ A4h] for the key number.
REG [A2h ~ A4h] Key-Scan Data Register (KSDR0 ~ 2)
Bit
Description
Default
Access
Key Strobe Data
7-0
00h
R
The corresponding key number that is pressed. Please reference
Section 6-5 "Key-Scan”.
REG [B0h] Memory Write Command Register (MWCR)
Bit
Description
Default
Access
Memory data write command from the cursor position.
7-0
NA
R/W
Note: Write memory data, user must write the MWCR command first,
then write DATA cycle.
RAiO TECHNOLOGY INC.
21/174
www.raio.com.tw