English
Language : 

PIC16F946 Datasheet, PDF (129/274 Pages) Microchip Technology – 64-Pin Flash-Based, 8-Bit CMOS Microcontrollers with LCD Driver and nanoWatt Technology
9.10 Configuring the LCD Module
The following is the sequence of steps to configure the
LCD module.
1. Select the frame clock prescale using bits
LP<3:0> (LCDPS<3:0>).
2. Configure the appropriate pins to function as
segment drivers using the LCDSEn registers.
3. Configure the LCD module for the following
using the LCDCON register:
-Multiplex and Bias mode, bits LMUX<1:0>
-Timing source, bits CS<1:0>
-Sleep mode, bit SLPEN
4. Write initial values to pixel data registers,
LCDDATA0 through LCDDATA11.
5. Clear LCD Interrupt Flag, LCDIF (PIR2<4>) and
if desired, enable the interrupt by setting bit
LCDIE (PIE2<4>).
6. Enable bias voltage pins (VLCD<3:1>) by
setting VLCDEN (LCDCON<4>).
7. Enable the LCD module by setting bit LCDEN
(LCDCON<7>).
PIC16F946
© 2005 Microchip Technology Inc.
Preliminary
DS41265A-page 127