Datasheet

Table Of Contents
2010 Microchip Technology Inc. Preliminary DS39979A-page 171
PIC18F87J72 FAMILY
17.1.2 LCD DATA REGISTERS
Once the module is initialized for the LCD panel, the
individual bits of the LCDDATA 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 17-2. The prototype LCDDATA register is
shown in Register 17-4.
TABLE 17-2: LCDDATA REGISTERS AND BITS FOR SEGMENT AND COM COMBINATIONS
Note:
LCDDATA5, LCDDATA11 and LCDDATA17
are not implemented.
REGISTER 17-4: LCDDATAx: LCD DATA REGISTERS
(1)
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
(1)
For LCDDATA6 through LCDDATA10: n = (8(x – 6)), y = 1
For LCDDATA12 through LCDDATA16: n = (8(x – 12)), y = 2
(1)
For LCDDATA18 through LCDDATA22: n = (8(x – 18)), y = 3
(1)
1 = Pixel on (dark)
0 = Pixel off (clear)
Note 1: LCDDATA5, LCDDATA11 and LCDDATA17 are not implemented.
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
LCDDATA4
(1)
LCDDATA10
(1)
LCDDATA16
(1)
LCDDATA22
(1)
S32C0 S32C1 S32C2 S32C3
Note 1: Only bit<0> of these registers is implemented.