Datasheet
PIC16F913/914/916/917/946
DS41250F-page 148 © 2007 Microchip Technology Inc.
10.2 LCD Clock Source Selection
The LCD driver module has 3 possible clock sources:
•F
OSC/8192
•T1OSC/32
• LFINTOSC/32
The first clock source is the system clock divided by
8192 (F
OSC/8192). This divider ratio is chosen to
provide about 1 kHz output when the system clock is
8 MHz. The divider is not programmable. Instead, the
LCD prescaler bits LP<3:0> of the LCDPS register are
used to set the LCD frame clock rate.
The second clock source is the T1OSC/32. This also
gives about 1 kHz when a 32.768 kHz crystal is used
with the Timer1 oscillator. To use the Timer1 oscillator
as a clock source, the T1OSCEN bit of the T1CON
register should be set.
The third clock source is the 31 kHz LFINTOSC/32,
which provides approximately 1 kHz output.
The second and third clock sources may be used to
continue running the LCD while the processor is in
Sleep.
Using bits CS<1:0> of the LCDCON register can select
any of these clock sources.
10.2.1 LCD PRESCALER
A 4-bit counter is available as a prescaler for the LCD
clock. The prescaler is not directly readable or writable;
its value is set by the LP<3:0> bits of the LCDPS register,
which determine the prescaler assignment and prescale
ratio.
The prescale values are selectable from 1:1 through
1:16.
10.3 LCD Bias Types
The LCD driver module can be configured into one of
three bias types:
• Static Bias (2 voltage levels: V
SS and VDD)
• 1/2 Bias (3 voltage levels: V
SS, 1/2 VDD and VDD)
• 1/3 Bias (4 voltage levels: V
SS, 1/3 VDD, 2/3 VDD
and V
DD)
This module uses an external resistor ladder to
generate the LCD bias voltages.
The external resistor ladder should be connected to the
VLCD1 pin (Bias 1), VLCD2 pin (Bias 2), VLCD3 pin
(Bias 3) and V
SS. The VLCD3 pin should also be
connected to V
DD.
Figure 10-2 shows the proper way to connect the
resistor ladder to the Bias pins..
FIGURE 10-2: LCD BIAS RESISTOR LADDER CONNECTION DIAGRAM
Note: VLCD pins used to supply LCD bias voltage
are enabled on power-up (POR) and must
be disabled by the user by clearing the
VLCDEN bit of the LCDCON register.
VLCD 3
V
LCD 2
V
LCD 1
V
LCD 0
(1)
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.
Note 1: Internal connection.
VSS
Static
Bias
1/2 Bias 1/3 Bias
V
LCD 0VSS VSS VSS
VLCD 1 —1/2 VDD 1/3 VDD
VLCD 2 —1/2 VDD 2/3 VDD
VLCD 3VDD VDD VDD
10 kΩ*10kΩ*
VSS
VDD*
VDD*
VDD*
Static Bias
1/2 Bias
1/3 Bias