Datasheet

© 2007 Microchip Technology Inc. DS39629C-page 263
PIC18F6390/6490/8390/8490
22.3 LCD Bias Types
The LCD driver module can be configured into three
bias types:
Static Bias (2 voltage levels: AV
SS and AVDD)
1/2 Bias (3 voltage levels: AVSS, 1/2 AVDD and
AV
DD)
1/3 Bias (4 voltage levels: AVSS, 1/3 AVDD, 2/3 AVDD
and AV
DD)
This module uses an external resistor ladder to
generate the LCD bias voltages.
The external resistor ladder should be connected to the
Bias 1 pin, Bias 2 pin, Bias 3 pin and V
SS. The Bias 3
pin should also be connected to AV
DD.
Figure 22-3 shows the proper way to connect the
resistor ladder to the Bias pins.
22.4 LCD Multiplex Types
The LCD driver module can be configured into four
multiplex types:
Static (only COM0 used)
1/2 multiplex (COM0 and COM1 are used)
1/3 multiplex (COM0, COM1 and COM2 are used)
1/4 multiplex (all COM0, COM1, COM2 and COM3
are used)
The LMUX1:LMUX0 setting decides the function of the
PORTE<6:4> bits (see Table 22-3 for details).
If the pin is a digital I/O, the corresponding TRIS bit
controls the data direction. If the pin is a COM drive,
then the TRIS setting of that pin is overridden.
TABLE 22-3: PORTE<6:4> FUNCTION
22.5 Segment Enables
The LCDSEx registers are used to select the pin
function for each segment pin. The selection allows
each pin to operate as either an LCD segment driver or
a digital only pin. To configure the pin as a segment pin,
the corresponding bits in the LCDSEx registers must
be set to1’.
If the pin is a digital I/O, the corresponding TRIS bit
controls the data direction. Any bit set in the LCDSEx
registers overrides any bit settings in the corresponding
TRIS register.
FIGURE 22-3: LCD BIAS RESISTOR LADDER CONNECTION DIAGRAM
Note: On a Power-on Reset, the LMUX1:LMUX0
bits are ‘00’.
LMUX1:
LMUX0
PORTE<6> PORTE<5> PORTE<4>
00 Digital I/O Digital I/O Digital I/O
01 Digital I/O Digital I/O COM1 Driver
10 Digital I/O COM2 Driver COM1 Driver
11 COM3 Driver COM2 Driver COM1 Driver
Note: On a Power-on Reset, these pins are
configured as digital I/O.
VLCD 3
V
LCD 2
V
LCD 1
VLCD 0
To
LCD
Driver
Connections for External R-ladder
10 kΩ*
10 kΩ*
10 kΩ*
LCD Bias 2 LCD Bias 1
LCD Bias 3
* These values are provided for design guidance only and should be optimized for the application by the designer.
AVSS
Static
Bias
1/2 Bias 1/3 Bias
V
LCD 0AVSS AVSS AVSS
VLCD 1 1/2 AVDD 1/3 AVDD
VLCD 2 1/2 AVDD 2/3 AVDD
VLCD 3AVDD AVDD AVDD
10 kΩ*10kΩ*
AVSS
AVDD*
AVDD*
AVDD*
Static Bias
1/2 Bias
1/3 Bias