BAT32G1x9 user manual | Chapter 23 LCD bus interface
1005 / 1149
Rev.1.02
< 80 mode (using S1D15E00) >
Start
Set port registers
PC <- 0x0C00
End
Set port mode control registers
Set port mode registers
R/W <- PC06/DBWR,E <- PC05/DBRD
Note2
D0 to D7 <=> P80 to P87
A0 <- P10,
0
for command,
1
for data
CS1 <- P11,CS2 <- P12, CS1,CS2=
01
is active
PMC1 <- 0x00
P10~P12 digital mode
PM0 <- 0x9F
PM8 <- 0x00
PM1 <- 0xF8
PM14 <-0xFE
P05 and PC06 output mode
P80 to P87 input mode
Note1
P10~P12 output mode
P140/CLKBUZ0 output mode
Note: 1
The P80
to P
87
must be set to input mode to act as an LCD bidirectional communication bus.
2. Because
DBRD
——————
and D B W R
————————
are all active low,
P05 And
the P06
pin output latch register must be set to
"1".