English
Language : 

PIC18F87J90 Datasheet, PDF (187/450 Pages) Microchip Technology – 64/80-Pin, High-Performance Microcontrollers with LCD Driver and nanoWatt Technology
PIC18F87J90 FAMILY
17.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 17-2. The prototype LCDDATA register is
shown in Register 17-4.
Note:
In 64-pin devices, writing into the registers
LCDDATA5, LCDDATA11, LCDDATA17
and LCDDATA23, will not affect the status
of any pixels.
REGISTER 17-4: LCDDATAx: LCD DATA REGISTERS
R/W-0
S(n + 7)Cy
bit 7
R/W-0
S(n + 6)Cy
R/W-0
S(n + 5)Cy
R/W-0
S(n + 4)Cy
R/W-0
S(n + 3)Cy
R/W-0
S(n + 2)Cy
R/W-0
S(n + 1)Cy
R/W-0
S(n)Cy
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘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)
TABLE 17-2: LCDDATA REGISTERS AND BITS FOR SEGMENT AND COM COMBINATIONS
COM Lines
Segments
0
1
2
3
0 through 7
LCDDATA0
S00C0:S07C0
LCDDATA6
S00C1:S07C1
LCDDATA12
S00C2:S07C2
LCDDATA18
S00C3:S07C3
8 through 15
LCDDATA1
S08C0:S15C0
LCDDATA7
S08C1:S15C1
LCDDATA13
S08C2:S15C2
LCDDATA19
S08C0:S15C3
16 through 23
LCDDATA2
S16C0:S23C0
LCDDATA8
S16C1:S23C1
LCDDATA14
S16C2:S23C2
LCDDATA20
S16C3:S23C3
24 through 31
32 through 39
40 through 47
LCDDATA3
S24C0:S31C0
LCDDATA4(1)
S32C0:S39C0
LCDDATA5(2)
S40C0:S47C0
LCDDATA9
S24C1:S31C1
LCDDATA10(1)
S32C1:S39C1
LCDDATA11(2)
S40C1:S47C1
LCDDATA15
S24C2:S31C2
LCDDATA16(1)
S32C2:S39C2
LCDDATA17(2)
S40C2:S47C2
LCDDATA21
S24C3:S31C3
LCDDATA22(1)
S32C3:S39C3
LCDDATA23(2)
S40C3:S47C3
Note 1: Bits<7:1> of these registers are not implemented in PIC18F6XJ90 devices. Bit 0 of these registers
(SEG32Cy) is always implemented.
2: These registers are not implemented on PIC18F6XJ90 devices.
 2010 Microchip Technology Inc.
DS39933D-page 187