
LCD CONTROLLER with VRAM
M66273FP
MITSUBISHI <DIGITAL ASSP>
Ver.3.1 Dec,1999
Additional
function
for
LCD
module
built-in
system
As all of the VRAM address in the M66273 are externally opened
for addressing VRAM from MPU directly.
When consider the LCD module built-in system, connect pins are
increased.
But the M66273 has an additional function for the LCD module built-in
system by lessening connect pins.
Access the internal VRAM through the VRAM address index register in
this function.
When use this function, need to set to IDXON = "0".
When use this function and access to VRAM, it need to set to DISP = "0".
8bit MPU
A<7:1>
D<7:0>
IOCS
LWR
RD
MPUCLK
(19 pins)
IDX8H, IDX8L
DP8
16bit MPU
A<7:1>
D<15:0>
IOCS
LWR
RD
MPUCLK
(27 pins)
IDX16
DP16
Interface pins
I/O register
Method of accessing the internal VRAM
The following show the process of accessing VRAM.
·
Interface pins with MPU and I/O register for access to VRAM.
·
Set fixed pins
Set control register
set to DISP = "0"
Access to
VRAM address
index register
Access to Data Port
register
Set to DISP = "1"
Discontinuous address
Continuous address
VRAM address is
increased of +1.
After setting data of VRAM
No use pins set the following.
·HWR, MCS = "H",
·BHE, A<0>, A<14:8> = "L" , D<15:8> = "L" (only for 8bit MPU),
·MPUSEL, WAITCNT = "L" or "H",
·WAIT, CSE = open,
RESET = Power on reset or software reset.
(In case of software reset RESET = "H" : set)
Access the DP after writing the mode register DISP = "0".
Always enable to access, because the display signal fixed "H" or "L"
in DISP = "0" and a term is no wait access.
Select IDX8L, IDX8H (or IDX16), and write address (15bit) of VRAM as data.
Enable to change IDXL and IDXH, even if either.
Select DP8 (or DP16), and read or write data to address of VRAM.
Access DP and IDX without WAIT function.
VRAM address is automatically increased of +1, when finished access to DP.
It doesn't need to set IDX, when access to continuous address.
Set to DISP = "1", and displaying LCD.
·
·
·
·
Example of access to VRAM (In case of 8bit MPU)
·
00
H
00
H
16
H
18
H
1A
H
16
H
18
H
1A
H
1A
H
1A
H
1A
H
00
H
80
H
40
H
00
H
00
H
AA
H
00
H
10
H
BB
H
CC
H
DD
H
EE
H
44
H
Increase to
Addr=1001
Increase to
Addr=1002
Increase to
Addr=0001
R1
R1
R12
R13
R14
R12
R13
R14
R14
R14
R14
R1
IDXON=1
DISP=1
Write
Data=CC
to
Addr=1001
Write
Data=DD
to
Addr=1002
Write
Data=EE
to
Addr=1003
Write Data=BB
to Addr=1000
Write Data=AA
to Addr=0000
IDXON=1
DISP=0
Software
reset
(initialize)
Discontinuous address
Continuous address
IOCS
LWR
A<7:0>
D<7:0>
21
(When use this function,recommend using ICOS to control I/O registers.)
·
·