English
Language : 

PIC18F87J90 Datasheet, PDF (191/450 Pages) Microchip Technology – 64/80-Pin, High-Performance Microcontrollers with LCD Driver and nanoWatt Technology
PIC18F87J90 FAMILY
17.3.3.3 M2 (Resistor Ladder with
Software Contrast)
M2 operation also uses the LCD regulator but disables
the charge pump. The regulator’s internal voltage refer-
ence remains active as a way to regulate contrast. It is
used in cases where the current requirements of the
LCD exceed the capacity of the regulator’s charge
pump.
In this configuration, the LCD bias voltage levels are
created by an external resistor voltage divider,
connected across LCDBIAS0 through LCDBIAS3, with
the top of the divider tied to VDD (Figure 17-4). The
potential at the bottom of the ladder is determined by
the LCD regulator’s voltage reference, tied internally to
LCDBIAS0. The bias type is determined by the volt-
ages on the LCDBIAS pins, which are controlled by the
configuration of the resistor ladder. Most applications
using M2 will use a 1/3 or 1/2 Bias type. While Static
Bias can also be used, it offers extremely limited
contrast range and additional current consumption
over other bias generation modes.
Like M1, the LCDBIAS bits can be used to control con-
trast, limited by the level of VDD supplied to the device.
Also, since there is no capacitor required across
VLCAP1 and VLCAP2, these pins are available as digital
I/O ports, RG2 and RG3.
M2 is selected by clearing the CKSEL<1:0> bits and
setting the CPEN bit.
FIGURE 17-4:
RESISTOR LADDER CONNECTIONS FOR M2 CONFIGURATION
PIC18F87J90
VDD
AVDD
LCDBIAS3
LCDBIAS2
LCDBIAS1
LCDBIAS0
10 k(1)
10 k(1)
10 k(1)
10 k(1)
10 k(1)
1/2 Bias
1/3 Bias
Bias Level at Pin
LCDBIAS0
LCDBIAS1
LCDBIAS2
LCDBIAS3
Bias Type
1/2 Bias
1/3 Bias
(Internal Low Reference Voltage)
1/2 VBIAS
1/2 VBIAS
VBIAS (up to AVDD)
(Internal Low Reference Voltage)
1/3 VBIAS
2/3 VBIAS
VBIAS (up to AVDD)
Note 1: These values are provided for design guidance only; they should be optimized for the application by the designer
based on the actual LCD specifications.
 2010 Microchip Technology Inc.
DS39933D-page 191