English
Language : 

PIC18F87J11_12 Datasheet, PDF (80/466 Pages) Microchip Technology – 64/80-Pin, High-Performance, 1-Mbit Flash Microcontrollers
PIC18F87J11 FAMILY
6.3.4.1 Shared Address SFRs
In several locations in the SFR bank, a single address
is used to access two different hardware registers. In
these cases, a “legacy” register of the standard PIC18
SFR set (such as OSCCON, T1CON, etc.) shares its
address with an alternate register. These alternate reg-
isters are associated with enhanced configuration
options for peripherals or with new device features not
included in the standard PIC18 SFR map. A complete
list of shared register addresses and the registers
associated with them is provided in Table 6-4.
Access to the alternate registers is enabled in software
by setting the ADSHR bit in the WDTCON register
(Register 6-3). ADSHR must be manually set or
cleared to access the alternate or legacy registers, as
required. Since the bit remains in a given state until
changed, users should always verify the state of
ADSHR before writing to any of the shared SFR
addresses.
6.3.4.2 Context Defined SFRs
In addition to the shared address SFRs, there are
several registers that share the same address in the
SFR space, but are not accessed with the ADSHR bit.
Instead, the register’s definition and use depends on
the operating mode of its associated peripheral. These
registers are:
• SSPxADD and SSPxMSK: These are two
separate hardware registers, accessed through a
single SFR address. The operating mode of the
MSSPx module determines which register is
being accessed. See Section 20.4.3.4 “7-Bit
Address Masking Mode” for additional details.
• PMADDRH/L and PMDOUT2H/L: In this case,
these named buffer pairs are actually the same
physical registers. The PMP module’s operating
mode determines what function the registers take
on. See Section 12.1.2 “Data Registers” for
additional details.
TABLE 6-4: SHARED SFR ADDRESSES FOR PIC18F87J11 FAMILY DEVICES
Address
FD3h (D)
(A)
FCFh (D)
(A)
FCEh (D)
(A)
Name
OSCCON
REFOCON
TMR1H
ODCON1
TMR1L
ODCON2
Address
FCDh (D)
(A)
FCCh (D)
(A)
FCBh (D)
(A)
Name
T1CON
ODCON3
TMR2
PADCFG1
PR2
MEMCON(1)
Address
FC2h (D)
(A)
FC1h (D)
(A)
F77h (D)
(A)
Name
ADCON0
ANCON1
ADCON1
ANCON0
PR4
CVRCON
Legend: (D) = Default SFR, accessible only when ADSHR = 0; (A) = Alternate SFR, accessible only when ADSHR = 1.
Note 1: This bit is implemented in 80-pin devices only.
DS39778E-page 80
 2007-2012 Microchip Technology Inc.