Microchip Technology DM183037 Data Sheet

Page of 696
PIC18F97J94 FAMILY
DS30575A-page 258
 2012 Microchip Technology Inc.
13.5.5
LCD BIAS GENERATION
The LCD driver module is capable of generating the
required bias voltages for LCD operation with a mini-
mum of external components. This includes the ability
to generate the different voltage levels required by the
different bias types that are required by the LCD. The
driver module can also provide bias voltages, both
above and below microcontroller V
DD
, through the use
of an on-chip LCD voltage regulator.
13.5.6
LCD BIAS TYPES
PIC18F97J94 family devices support three bias types,
based on the waveforms generated to control
segments and commons:
• Static (two discrete levels)
• 1/2 Bias (three discrete levels)
• 1/3 Bias (four discrete levels)
The use of different waveforms in driving the LCD is dis-
cussed in more detail in 
13.5.7
LCD VOLTAGE REGULATOR
The purpose of the LCD regulator is to provide proper
bias voltage and good contrast for the LCD, regardless
of V
DD
 levels. This module contains a charge pump and
internal voltage reference. The regulator can be config-
ured by using external components to boost bias
voltage above V
DD
. It can also operate a display at a
constant voltage below V
DD
. The regulator can also be
selectively disabled to allow bias voltages to be
generated by an external resistor network.
The LCD regulator is controlled through the LCDREG
register. It is enabled or disabled using the
CLKSEL<1:0> bits, while the charge pump can be
selectively enabled using the CPEN bit. When the reg-
ulator is enabled, the MODE13 bit is used to select the
bias type. The peak LCD bias voltage, measured as a
difference between the potentials of LCDBIAS3 and
LCDBIAS0, is configured with the BIAS bits.
REGISTER 13-8:
LCDREG: LCD VOLTAGE REGULATOR CONTROL REGISTER
R/W-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-0
R/W-0
CPEN
BIAS2
BIAS1
BIAS0
MODE13
CLKSEL1
CLKSEL 0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 7
CPEN: LCD Charge Pump Enable bit
1 = Charge pump is enabled; highest LCD bias voltage is 3.6V
0 = Charge pump is disabled; highest LCD bias voltage is V
DD
bit  6
Unimplemented: Read as ‘0’
bit 5-3
BIAS<2:0>: Regulator Voltage Output Control bits
111 =  3.60V peak (offset on LCDBIAS0 of 0V)
110 =  3.47V peak (offset on LCDBIAS0 of 0.13V)
101 =  3.34V peak (offset on LCDBIAS0 of 0.26V)
100 =  3.21V peak (offset on LCDBIAS0 of 0.39V)
011 =  3.08V peak (offset on LCDBIAS0 of 0.52V)
010 =  2.95V peak (offset on LCDBIAS0 of 0.65V)
001 =  2.82V peak (offset on LCDBIAS0 of 0.78V)
000 =  2.69V peak (offset on LCDBIAS0 of 0.91V)
bit 2
MODE13: 1/3 LCD Bias Enable bit
1 = Regulator output supports 1/3 LCD Bias mode
0 = Regulator output supports Static LCD Bias mode
bit 1-0
CLKSEL<1:0>: Regulator Clock Source Select bits
11 =  31 kHz LPRC
10  =   8  MHz  FRC
01 =  SOSC
00 =  LCD regulator disabled