STC8A8K64D4 Series Manual
22 LCM interface
STC8A8K64D4 series of microcontrollers integrate an LCM interface controller, which can be used to drive the
current popular LCD modules. It can drive I8080 interface and M6800 interface color screen, support 8-bit and 16-bit
data width.
26.1 LCM interface function pin switch
Symbol
Address
LCMIFCFG
FE50H
LCMIFCFG2
FE51H
LCMIFCPS[1:0]: LCM interface control pin selection bit
LCMIFCPS [1:0]
RS
00
P4.1
01
P4.1
10
P4.1
11
P4.0
LCMIFDPS[1:0]: 8-bit data LCM interface data pin selection bit
LCMIFDPS [1:0]
D16_D8
00
01
10
11
LCMIFDPS[1:0]: 16-bit data LCM interface data pin selection bit
LCMIFDPS [1:0]
D16_D8
00
01
10
11
22.2 Registers Related to LCM
Symbol
Description
LCM Interface Configuration
LCMIFCFG
Register
LCM Interface Configuration
LCMIFCFG2
Register 2
LCMIFCR
LCM Interface Control Register
LCMIFSTA LCM Interface Status Register
LCMIDDATL LCM Interface low byte data
LCMIDDATH LCM Interface high byte data
22.2.1 LCM Interface Configuration Register (LCMIFCFG)
Symbol
Address
LCMIFCFG
FE50H
LCMIFIE: LCM interrupt enable control bit
0: disable LCM interface interrupt
1: enable LCM interface interrupt
LCMIFIP[1:0]: LCM interface interrupt priority control bits
LCMIFIP[1:0] interrupt priority
B7
B6
LCMIFIE
-
LCMIFCPS[1:0]
RD signal of I8080
E signal of M6800
P4.4
P3.7
P4.2
P3.7
Data byte DAT[7:0]
0
P2[7:0]
0
P6[7:0]
0
P2[7:0]
0
P6[7:0]
High byte DAT[15:8]
1
P2[7:0]
1
P6[7:0]
1
P2[7:0]
1
P6[7:0]
Address
B7
LCMIFIE
FE50H
FE51H
-
FE52H
ENLCMIF
-
FE53H
FE54H
FE55H
B7
B6
LCMIFIE
-
B5
B4
B3
LCMIFIP[1:0]
LCMIFDPS[1:0]
SETUPT[2:0]
WR signal of I8080
RW signal of M6800
P4.3
P3.6
P4.0
P3.6
Low byte DAT[7:0]
P0[7:0]
P2[7:0]
P7[7:0]
P7[7:0]
Bit Address and Symbol
B6
B5
B4
-
LCMIFIP[1:0]
LCMIFCPS[1:0]
SETUPT[2:0]
-
-
-
-
-
-
LCMIFDAT[7:0]
LCMIFDAT[15:8]
B5
B4
B3
LCMIFIP[1:0]
LCMIFDPS[1:0]
B2
B1
D16_D8
HOLDT[1:0]
B3
B2
B1
B0
LCMIFDPS[1:0]
D16_D8 M68_I80
HOLDT[1:0]
-
CMD[2:0]
-
-
-
LCMIFIF
B2
B1
D16_D8
B0
M68_I80
Reset
value
0x00,0000
x000,0000
0xxx,x000
xxxx,xxx0
0000,0000
0000,0000
B0
M68_I80
- 628 -
Need help?
Do you have a question about the micro STC8A8K64D4 Series and is the answer not in the manual?