English
Language : 

PIC18F67J11-IPT Datasheet, PDF (76/448 Pages) Microchip Technology – 64/80-Pin High-Performance, 1-Mbit Flash Microcontrollers with nanoWatt Technology
PIC18F87J11 FAMILY
5.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 5-4.
Access to the alternate registers is enabled in software
by setting the ADSHR bit in the WDTCON register
(Register 5-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.
5.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
MSSP module determines which register is being
accessed. See Section 19.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 11.1.2 “Data Registers” for
additional details.
TABLE 5-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: Implemented in 80-pin devices only.
REGISTER 5-3: WDTCON: WATCHDOG TIMER CONTROL REGISTER
R/W-0
R-x
U-0
R/W-0
U-0
U-0
U-0
U-0
REGSLP LVDSTAT
—
ADSHR
—
—
—
SWDTEN
bit 7
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
bit 6
bit 5
bit 4
bit 3-1
bit 0
REGSLP: Voltage Regulator Low-Power Operation Enable bit
For details of bit operation, see Register 24-9.
LVDSTAT: LVD Status bit
1 = VDDCORE > 2.45V
0 = VDDCORE < 2.45V
Unimplemented: Read as ‘0’
ADSHR: Shared Address SFR Select bit
1 = Alternate SFR is selected
0 = Default (Legacy) SFR is selected
Unimplemented: Read as ‘0’
SWDTEN: Software Controlled Watchdog Timer Enable bit
For details of bit operation, see Register 24-9.
DS39778D-page 76
© 2009 Microchip Technology Inc.