Microchip Technology AC244055 Data Sheet

Page of 488
PIC16(L)F1938/9
DS40001574C-page 326
 2011-2013 Microchip Technology Inc.
27.1
LCD Registers
The module contains the following registers:
• LCD Control register (LCDCON)
• LCD Phase register (LCDPS)
• LCD Reference Ladder register (LCDRL)
• LCD Contrast Control register (LCDCST)
• LCD Reference Voltage Control register 
(LCDREF)
• Up to three LCD Segment Enable registers 
(LCDSEn)
• Up to 12 LCD data registers (LCDDATAn)
TABLE 27-1:
LCD SEGMENT AND DATA 
REGISTERS
The LCDCON register (
) controls the
operation of the LCD Driver module. The LCDPS reg-
ister (
) configures the LCD clock source
prescaler and the type of waveform; Type-A or Type-B.
The LCDSEn registers (
) configure the
functions of the port pins.
The following LCDSEn registers are available:
• LCDSE0    SE<7:0>
• LCDSE1    SE<15:8>
LCDSE2    SE<23:16>
(1)
Once the module is initialized for the LCD panel, the
individual bits of the LCDDATAn registers are
cleared/set to represent a clear/dark pixel, respectively:
• LCDDATA0
SEG<7:0>COM0
• LCDDATA1
SEG<15:8>COM0
LCDDATA2
SEG<23:16>COM0
(1)
• LCDDATA3
SEG<7:0>COM1
• LCDDATA4
SEG<15:8>COM1
LCDDATA5
SEG<23:16>COM1
(1)
• LCDDATA6
SEG<7:0>COM2
• LCDDATA7
SEG<15:8>COM2
LCDDATA8
SEG<23:16>COM2
(1)
• LCDDATA9
SEG<7:0>COM3
• LCDDATA10 SEG<15:8>COM3
LCDDATA11 SEG<23:16>COM3
(1)
As an example, LCDDATAn is detailed in
Once the module is configured, the LCDEN bit of the
LCDCON register is used to enable or disable the LCD
module. The LCD panel can also operate during Sleep
by clearing the SLPEN bit of the LCDCON register.
Device
# of LCD Registers
Segment
Enable
Data
PIC16(L)F1938
2
8
PIC16(L)F1939
3
12
Note 1:
PIC16(L)F1939 only.
Note 1:
PIC16(L)F1939 only.