BAT32G1x9 user manual | Chapter 23 LCD bus interface
1008 / 1149
Rev.1.02
•
Use PCF2119x (NXP Semiconductors
).
Only the initial procedure of the LCD driver chip is described here, and for the DMA section, please refer to
the previous S1D15E00 example. For more information about commands, see the pcf2119x data sheet.
value
command
description
34H
Feature Settings
Note
8 bits data length, 2-wire
×16 characters, 1:18 multi-drive mode
LCD driver
initialization
(PCF2119x
).
34H
Feature Settings
Note
34H
Feature Settings
Note
34H
Feature Settings
Note
08H
Display controls
Display, cursor, and character flashing off.
01H
Clear the screen
Determines the value.
07H
Portal mode setting
Address plus 1 to show shifts
Note: Specify the same instruction to ensure that there is enough BF check time.
The LCD bus communication flow without DMA mode is as follows:
When fOSC = 450kHz, it takes about 330μs (165 driver oscillator cycles) to complete the clean-screen
command, and about 6μs (3 driver oscillator cycles) for other commands.
Perform a busy flag check operation on PCF2119x. The busy flag (BF) indicates a busy state, with BF
maintaining "1" until initialization ends and busy lasting 2ms. When RS=0 and R/W
——
= 1, the busy flag is output to
pin DB7.
The DB7 pin of the LCD bus can be used as a busy flag to determine whether the internal operation of the
driver chip is completed by reading the 7th bit of LBDATA/LBDATAR.