|
PIC18F87K90 Datasheet, PDF (298/566 Pages) Microchip Technology – 64/80-Pin, High-Performance Microcontrollers with LCD Driver and nanoWatt XLP Technology | |||
|
◁ |
PIC18F87K90 FAMILY
20.11 Configuring the LCD Module
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 LCDSEx registers.
3. If using the internal reference resistors for
biasing, enable the internal reference ladder
and:
⢠Define the Mode A and Mode B interval by
using the LRLAT<2:0> bits (LCDRL<2:0>)
⢠Define the low, medium or high ladder for
Mode A and Mode B by using the LRLAP<1:0>
bits (LCDRL<7:6>) and the LRLBP<1:0> bits
(LCDRL<5:4>), respectively
⢠Set the VLCDxPE bits and enable the
LCDIRE bit (LCDREF<7>)
4. Configure the following LCD module functions
using the LCDCON register:
⢠Multiplex and Bias mode â LMUX<1:0> bits
⢠Timing Source â CS<1:0> bits
⢠Sleep mode â SLPEN bit
5. Write initial values to the pixel data registers,
LCDDATA0 through LCDDATA23.
6. Clear the LCD Interrupt Flag, LCDIF (PIR3<6>),
and if desired, enable the interrupt by setting bit,
LCDIE (PIE3<6>).
7. Enable the LCD module by setting bit, LCDEN
(LCDCON<7>).
DS39957B-page 298
Preliminary
ï£ 2010 Microchip Technology Inc.
|
▷ |