English
Language : 

PIC16F946 Datasheet, PDF (105/274 Pages) Microchip Technology – 64-Pin Flash-Based, 8-Bit CMOS Microcontrollers with LCD Driver and nanoWatt Technology
9.0 LIQUID CRYSTAL DISPLAY
(LCD) DRIVER MODULE
The Liquid Crystal Display (LCD) driver module
generates the timing control to drive a static or
multiplexed LCD panel. In the PIC16F946 device, the
module drives the panels of up to four commons and up
to 42 segments. It also provides control of the LCD
pixel data.
The LCD driver module supports:
• Direct driving of LCD panel
• Three LCD clock sources with selectable prescaler
• Up to four commons:
- Static
- 1/2 multiplex
- 1/3 multiplex
- 1/4 multiplex
• 42 segments
• Static, 1/2 or 1/3 LCD Bias
The module has 32 registers:
• LCD Control Register (LCDCON)
• LCD Phase Register (LCDPS)
• Six LCD Segment Enable Registers
(LCDSE<5:0>)
• 24 LCD Data Registers (LCDDATA<11:0>)
The LCDCON register, shown in Register 9-1, controls
the operation of the LCD driver module. The LCDPS
register, shown in Register 9-2, configures the LCD
clock source prescaler and the type of waveform;
Type-A or Type-B. The LCDSE<2:0> registers configure
the functions of the port pins:
• LCDSE0
• LCDSE1
• LCDSE2
• LCDSE3
• LCDSE4
• LCDSE5
SE<7:0>
SE<15:8>
SE<23:16>
SE<31:24>
SE<39:32>
SE<41:40>
As an example, LCDSEn is detailed in Register 9-3.
PIC16F946
Once the module is initialized for the LCD panel, the
individual bits of the LCDDATA<11:0> registers are
cleared/set to represent a clear/dark pixel,
respectively:
• LCDDATA0 SEG7COM0:SEG0COM0
• LCDDATA1 SEG15COM0:SEG8COM0
• LCDDATA2 SEG23COM0:SEG16COM0
• LCDDATA3 SEG7COM1:SEG0COM1
• LCDDATA4 SEG15COM1:SEG8COM1
• LCDDATA5 SEG23COM1:SEG16COM1
• LCDDATA6 SEG7COM2:SEG0COM2
• LCDDATA7 SEG15COM2:SEG8COM2
• LCDDATA8 SEG23COM2:SEG16COM2
• LCDDATA9 SEG7COM3:SEG0COM3
• LCDDATA10 SEG15COM3:SEG8COM3
• LCDDATA11 SEG23COM3:SEG16COM3
• LCDDATA12 SEG31COM0:SEG24COM0
• LCDDATA13 SEG39COM0:SEG32COM0
• LCDDATA14 SEG41COM0:SEG40COM0
• LCDDATA15 SEG31COM1:SEG24COM1
• LCDDATA16 SEG39COM1:SEG32COM1
• LCDDATA17 SEG41COM1:SEG40COM1
• LCDDATA18 SEG31COM2:SEG24COM2
• LCDDATA19 SEG39COM2:SEG32COM2
• LCDDATA20 SEG41COM2:SEG40COM2
• LCDDATA21 SEG31COM3:SEG24COM3
• LCDDATA22 SEG39COM3:SEG32COM3
• LCDDATA23 SEG41COM3:SEG40COM3
As an example, LCDDATAx is detailed in Register 9-4.
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.
© 2005 Microchip Technology Inc.
Preliminary
DS41265A-page 103