English
Language : 

PIC18F6390_07 Datasheet, PDF (262/414 Pages) Microchip Technology – 64/80-Pin Flash Microcontrollers with LCD Driver and nanoWatt Technology
PIC18F6390/6490/8390/8490
The LCDSE5:LCDSE0 registers configure the
functions of the port pins. Setting the segment enable
bit for a particular segment configures that pin as an
LCD driver. There are six LCD Segment Enable
registers listed in Table 22-1. The prototype LCDSEx
register is shown in Register 22-3.
TABLE 22-1: LCDSE REGISTERS AND
ASSOCIATED SEGMENTS
Register
Segments
LCDSE0
LCDSE1
LCDSE2
LCDSE3
LCDSE4
LCDSE5
7:0
15:8
23:16
31:24
39:32
47:40
.
Note: The LCDSE5:LCDSE4 registers are not
implemented in PIC18F6X90 devices.
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 22-2. The prototype LCDDATAx register is
shown in Register 22-4.
Note:
Writing into the registers, LCDDATA4,
LCDDATA5, LCDDATA10, LCDDATA11,
LCDDATA16, LCDDATA17, LCDDATA22
and LCDDATA23, in PIC18F6X90 devices
will not affect the status of any pixel and
these registers can be used as General
Purpose Registers.
REGISTER 22-3: LCDSEx: LCD SEGMENTx ENABLE REGISTER
R/W-0
SE(n + 7)
bit 7
R/W-0
SE(n + 6)
R/W-0
SE(n + 5)
R/W-0
SE(n + 4)
R/W-0
SE(n + 3)
R/W-0
SE(n + 2)
R/W-0
SE(n + 1)
R/W-0
SE(n)
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
SE(n + 7):SE(n): Segment Enable bits
For LCDSE0: n = 0
For LCDSE1: n = 8
For LCDSE2: n = 16
For LCDSE3: n = 24
For LCDSE4: n = 32
For LCDSE5: n = 40
1 = Segment function of the pin is enabled, digital I/O is disabled
0 = I/O function of the pin is enabled
DS39629C-page 260
© 2007 Microchip Technology Inc.