English
Language : 

PIC18F87K90 Datasheet, PDF (272/566 Pages) Microchip Technology – 64/80-Pin, High-Performance Microcontrollers with LCD Driver and nanoWatt XLP Technology
PIC18F87K90 FAMILY
20.1 LCD Registers
The LCD driver module has 32 registers:
• LCD Control Register (LCDCON)
• LCD Phase Register (LCDPS)
• LCD Reference Ladder Register (LCDRL)
• LCD Reference Voltage Control Register
(LCDREF)
• Six LCD Segment Enable Registers
(LCDSE5:LCDSE0)
• 24 LCD Data Registers
(LCDDATA23:LCDDATA0)
The LCDCON register, shown in Register 20-1,
controls the overall operation of the module. Once the
module is configured, the LCDEN (LCDCON<7>) bit is
used to enable or disable the LCD module. The LCD
panel can also operate during Sleep by clearing the
SLPEN (LCDCON<6>) bit.
The LCDPS register, shown in Register 20-2,
configures the LCD clock source prescaler and the type
of waveform, Type-A or Type-B. For details on these
features, see Section 20.2 “LCD Clock Source
Selection”, Section 20.3 “LCD Bias Types” and
Section 20.8 “LCD Waveform Generation”.
REGISTER 20-1: LCDCON: LCD CONTROL REGISTER
R/W-0
R/W-0
R/C-0
U-0
R/W-0
LCDEN
SLPEN
WERR
—
CS1
bit 7
R/W-0
CS0
R/W-0
LMUX1
R/W-0
LMUX0
bit 0
Legend:
R = Readable bit
-n = Value at POR
C = Clearable bit
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 7
bit 6
bit 5
bit 4
bit 3-2
bit 1-0
LCDEN: LCD Driver Enable bit
1 = LCD driver module is enabled
0 = LCD driver module is disabled
SLPEN: LCD Driver Enable in Sleep mode bit
1 = LCD driver module is disabled in Sleep mode
0 = LCD driver module is enabled in Sleep mode
WERR: LCD Write Failed Error bit
1 = LCDDATAx register is written while WA (LCDPS<4>) = 0 (must be cleared in software)
0 = No LCD write error
Unimplemented: Read as ‘0’
CS<1:0>: Clock Source Select bits
00 = (FOSC/4)/8192
01 = SOSC oscillator/32
1x = INTRC (31.25 kHz)/32
LMUX<1:0>: Commons Select bits
LMUX<1:0>
Multiplex
Maximum
Maximum
Number of Pixels Number of Pixels
(PIC18F6X90) (PIC18F8X90)
Bias
00
Static (COM0)
33
01
1/2 (COM<1:0>)
66
10
1/3 (COM<2:0>)
99
11
1/4 (COM<3:0>)
132
48
Static
96
1/2 or 1/3
144
1/2 or 1/3
192
1/3
DS39957B-page 272
Preliminary
 2010 Microchip Technology Inc.