BAT32G1x9 user manual | Chapter 23 LCD bus interface
988 / 1149
Rev.1.02
23.3.2
LCD Bus Interface Mode Register (LBCTL).
LBCTL is used to control the operation of the LCD bus interface.
Set lbcTL via 8-bit memory operation instructions The reset value is 00H
Figure 23-5
Format of the LCD
bus interface mode register
(LBCTL
).
Address:
0x40047400 Reset value
:
00H R/W
Symbol
7
6
5
4
3
2
<1>
<0>
LBCTL
The
Controls the level of signal "E" in 68 mode
0
E: Highly effective, data is read and written on the falling edge.
1
E: Low effective, data is read and written on the rising edge.
IMD
Selection of access modes for external bus interfaces
0
Mode 80
– The control signals areW R
————
and R D
————
1
Mode 68
– The control signals are E and R/W
——
LBC1
LBC0
Internal Clock Selection (SPCLK)
0
0
fCLK
0
1
fCLK/2
1
0
fCLK/4
1
1
fCLK/64
TCIS
INTLCDB (DMA Trigger)
control
0
During write access to the bus interface, INTLCDB is generated as soon as data is moved from
the LBDATA register to the write buffer.
During read access to the bus interface, INTLCDB is generated as soon as the data in
lbDATA and LBDATAR registers is available.
1
An interrupt occurs when the DATA transmission of the LCD bus interface is complete
TPF
External bus interface transmission flags
0
The external bus interface is idle
1
Data is being transferred on the external bus interface
BYF
Data register busy flag bit
0
Data can be read or written from LBDATA
Data can be read from LBDATAR
1
Register LBDATA (LBDATAR) is busy
Note 1.Bit2
must be set to 0.
2. Although the LBCTL.TPF flag is used to identify the current state of LCD bus data transmission, sometimes
reading this flag may also get an incorrect status.
Therefore, it is not recommended to use the method of polling the LBCTL.TPF flag, and it is recommended to use
DMA transmission to load new LCD data into the LCD bus interface data register (LBDATAx).
The
IMD
LBC1
LBC0
TCIS
0
TPF
BANDF