Datasheet

Table Of Contents
2010 Microchip Technology Inc. DS39770C-page 167
PIC18F85J90 FAMILY
16.1.2 LCD DATA REGISTERS
Once the module is initialized for the LCD panel, the
individual bits of the LCDDATA23:LCDDATA0 registers
are cleared or set to represent a clear or dark pixel,
respectively. Specific sets of LCDDATA registers are
used with specific segments and common signals.
Each bit represents a unique combination of a specific
segment connected to a specific common.
Individual LCDDATA bits are named by the convention
“SxxCy”, with “xx” as the segment number and “y” as
the common number. The relationship is summarized
in Table 16-2. The prototype LCDDATA register is
shown in Register 16-4.
TABLE 16-2: LCDDATA REGISTERS AND BITS FOR SEGMENT AND COM COMBINATIONS
Note: In 64-pin devices, writing into the registers
LCDDATA5, LCDDATA11, LCDDATA17,
and LCDDATA23 will not affect the status
of any pixels.
REGISTER 16-4: LCDDATAx: LCD DATA REGISTERS
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
S(n + 7)Cy S(n + 6)Cy S(n + 5)Cy S(n + 4)Cy S(n + 3)Cy S(n + 2)Cy S(n + 1)Cy S(n)Cy
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 7-0 S(n + 7)Cy:S(n)Cy: Pixel On bits
For LCDDATA0 through LCDDATA5: n = (8x), y = 0
For LCDDATA6 through LCDDATA11: n = (8(x – 6)), y = 1
For LCDDATA12 through LCDDATA17: n = (8(x – 12)), y = 2
For LCDDATA18 through LCDDATA23: n = (8(x – 18)), y = 3
1 = Pixel on (dark)
0 = Pixel off (clear)
Segments
COM Lines
0123
0 through 7
LCDDATA0 LCDDATA6 LCDDATA12 LCDDATA18
S00C0:S07C0 S00C1:S07C1 S00C2:S07C2 S00C3:S07C3
8 through 15
LCDDATA1 LCDDATA7 LCDDATA13 LCDDATA19
S08C0:S15C0 S08C1:S15C1 S08C2:S15C2 S08C0:S15C3
16 through 23
LCDDATA2 LCDDATA8 LCDDATA14 LCDDATA20
S16C0:S23C0 S16C1:S23C1 S16C2:S23C2 S16C3:S23C3
24 through 31
LCDDATA3 LCDDATA9 LCDDATA15 LCDDATA21
S24C0:S31C0 S24C1:S31C1 S24C2:S31C2 S24C3:S31C3
32 through 39
LCDDATA4
(1)
LCDDATA10
(1)
LCDDATA16
(1)
LCDDATA22
(1)
S32C0:S39C0 S32C1:S39C1 S32C2:S39C2 S32C3:S39C3
40 through 47
LCDDATA5
(2)
LCDDATA11
(2)
LCDDATA17
(2)
LCDDATA23
(2)
S40C0:S47C0 S40C1:S47C1 S40C2:S47C2 S40C3:S47C3
Note 1: Bits<7:1> of these registers are not implemented in 64-pin devices. Bit 0 of these registers (SEG32Cy) is
always implemented.
2: These registers are not implemented on 64-pin devices.