826
Chapter 23
LCD Bus Interface (LCD-I/F)
Preliminary User’s Manual U17566EE1V2UM00
(2)
Read operation
When the CPU or the DMA reads the LBDATA0 register, the read operation on
the LCD Bus Interface is started. If there is a write transfer in progress while
the LBDATA0 register shall be read, the read transfer is stalled and started
after the write transfer has completed.
The value read from the register is the data from the
previous
transfer.
Therefore, an initial dummy read operation is required to update the register.
As soon as the data of the actual transfer is available in the LBDATA0 register,
the busy flag LBCTL0.BYF0 is cleared and the data can be retrieved with the
next read operation. Successive reads from the LBDATA0 register provide the
desired data.
The read timing on the external bus interface is determined by the number of
wait cycles (LBWST0.WST0[4:0]), the cycle time (LBCYC0.CYC0[5:0]) and the
selected clock (LBCTL0.LBC0 and LBCTL00.LBC01).
(3)
Read operation without initiating a bus transfer
Data can be read from the LBDATAR0 register without initiating a new read
transfer via the LCD Bus Interface.
The read access to the LBDATAR0 register is useful when previous read
accesses to the LBDATA0 register have been performed and only the last
transferred data shall be read without starting a new LCD bus transfer.
23.1.4
Interrupt generation
An interrupt is generated on write and read accesses to the LCD Bus Interface.
Depending on the setting of the bit LBCTL0.TCIS0, the interrupt is generated
differently.
Table 23-2
Controlling interrupt generation of the LCD Bus Interface
Access
TCIS0 = 0
TCIS0 = 1
Write
An interrupt is generated as soon as data is
transferred from LBDATA0 to the write buffer.
Then LBDATA0 is ready to accept next data.
The write buffer is filled whenever the external
bus interface is idle (no transfer in progress)
and data is available in LBDATA0.
An interrupt is generated as soon as the write
transfer via the bus interface has completed.
The transfer can consist of 1, 2, or 4 bytes
dependent on the access to LBDATA0.
Read
An interrupt is generated as soon as the data is
available in the LBDATA0 or LBDATAR0
register.
Depending on the read access to LBDATA0
(byte, halfword or word) 1, 2, or 4 bytes are
transferred and placed in the LBDATA0 and
LBDATAR0 register. Finally, the interrupt is
generated in order to indicate that new data is
available.
An interrupt is generated as soon as the read
transfer via the bus interface has completed.
The transfer can consist of 1, 2, or 4 bytes
depending on the access to LBDATA0 or
LBDATAR0.
electronic components distributor