English
Language : 

PIC18F87K22 Datasheet, PDF (95/548 Pages) Microchip Technology – 64/80-Pin, High-Performance, 1-Mbit Enhanced Flash Microcontrollers with 12-Bit A/D and nanoWatt XLP Technology
PIC18F87K22 FAMILY
6.3.4 SPECIAL FUNCTION REGISTERS
The Special Function Registers (SFRs) are registers
used by the CPU and peripheral modules for controlling
the desired operation of the device. These registers are
implemented as static RAM. SFRs start at the top of
data memory (FFFh) and extend downward to occupy
all of Bank 15 (F00h to FFFh) and the top part of
Bank 14 (EF4h to EFFh).
A list of these registers is given in Table 6-1 and
Table 6-2.
The SFRs can be classified into two sets: those
associated with the “core” device functionality (ALU,
Resets and interrupts) and those related to the
peripheral functions. The Reset and Interrupt registers
are described in their respective chapters, while the
ALU’s STATUS register is described later in this section.
Registers related to the operation of the peripheral
features are described in the chapter for that peripheral.
The SFRs are typically distributed among the
peripherals whose functions they control. Unused SFR
locations are unimplemented and read as ‘0’s.
TABLE 6-1: SPECIAL FUNCTION REGISTER MAP FOR PIC18F87K22 FAMILY
Addr.
Name
Addr.
Name
Addr.
Name
FFFh
FFEh
FFDh
FFCh
FFBh
TOSU
TOSH
TOSL
STKPTR
PCLATU
FDFh INDF2(1) FBFh ECCP1AS
FDEh POSTINC2(1) FBEh ECCP1DEL
FDDh POSTDEC2(1) FBDh CCPR1H
FDCh PREINC2(1) FBCh CCPR1L
FDBh PLUSW2(1) FBBh CCP1CON
FFAh PCLATH FDAh FSR2H FBAh PIR5
FF9h
PCL
FD9h FSR2L FB9h PIE5
FF8h TBLPTRU FD8h STATUS FB8h IPR4
FF7h TBLPTRH FD7h TMR0H FB7h PIR4
FF6h TBLPTRL FD6h TMR0L FB6h PIE4
FF5h TABLAT FD5h T0CON FB5h CVRCON
FF4h PRODH FD4h SPBRGH1 FB4h CMSTAT
FF3h PRODL FD3h OSCCON FB3h TMR3H
FF2h INTCON FD2h IPR5
FB2h TMR3L
FF1h INTCON2 FD1h WDTCON FB1h T3CON
FF0h INTCON3 FD0h
FEFh INDF0(1) FCFh
FEEh POSTINC0(1) FCEh
FEDh POSTDEC0(1) FCDh
FECh PREINC0(1) FCCh
FEBh PLUSW0(1) FCBh
RCON
TMR1H
TMR1L
T1CON
TMR2
PR2
FB0h
FAFh
FAEh
FADh
FACh
FABh
T3GCON
SPBRG1
RCREG1
TXREG1
TXSTA1
RCSTA1
FEAh FSR0H FCAh T2CON FAAh T1GCON
FE9h FSR0L FC9h SSP1BUF FA9h IPR6
FE8h WREG FC8h SSP1ADD
FE7h INDF1(1) FC7h SSP1STAT
FE6h POSTINC1(1) FC6h SSP1CON1
FE5h POSTDEC1(1) FC5h SSP1CON2
FE4h PREINC1(1) FC4h ADRESH
FE3h PLUSW1(1) FC3h ADRESL
FA8h
FA7h
FA6h
FA5h
FA4h
FA3h
HLVDCON
PSPCON
PIR6
IPR3
PIR3
PIE3
FE2h FSR1H FC2h ADCON0 FA2h IPR2
FE1h FSR1L FC1h ADCON1 FA1h PIR2
FE0h
BSR
FC0h ADCON2 FA0h PIE2
Addr. Name Addr.
F9Fh IPR1 F7Fh
F9Eh PIR1 F7Eh
F9Dh PIE1 F7Dh
F9Ch PSTR1CON F7Ch
F9Bh OSCTUNE
F9Ah TRISJ(3)
F99h TRISH(3)
F7Bh
F7Ah
F79h
F98h TRISG F78h
F97h TRISF F77h
F96h TRISE F76h
F95h TRISD F75h
F94h TRISC F74h
F93h TRISB F73h
F92h
F91h
F90h
TRISA
LATJ(3)
LATH(3)
F72h
F71h
F70h
F8Fh LATG F6Fh
F8Eh LATF F6Eh
F8Dh LATE F6Dh
F8Ch LATD F6Ch
F8Bh LATC F6Bh
F8Ah LATB F6Ah
F89h LATA
F88h PORTJ(3)
F87h PORTH(3)
F69h
F68h
F67h
F86h PORTG F66h
F85h PORTF F65h
F84h PORTE F64h
F83h PORTD F63h
F82h PORTC F62h
F81h PORTB F61h
F80h PORTA F60h
Name
EECON1
EECON2
TMR5H
TMR5L
T5CON
T5GCON
CCPR4H
CCPR4L
CCP4CON
CCPR5H
CCPR5L
CCP5CON
CCPR6H
CCPR6L
CCP6CON
CCPR7H
CCPR7L
CCP7CON
TMR4
PR4
T4CON
SSP2BUF
SSP2ADD
SSP2STAT
SSP2CON1
SSP2CON2
BAUDCON1
OSCCON2
EEADRH
EEADR
EEDATA
PIE6
Addr.
Name
F5Fh RTCCFG
F5Eh RTCCAL
F5Dh RTCVALH
F5Ch RTCVALL
F5Bh ALRMCFG
F5Ah ALRMRPT
F59h ALRMVALH
F58h ALRMVALL
F57h CTMUCONH
F56h CTMUCONL
F55h CTMUICONH
F54h CM1CON
F53h PADCFG1
F52h ECCP2AS
F51h ECCP2DEL
F50h CCPR2H
F4Fh CCPR2L
F4Eh CCP2CON
F4Dh ECCP3AS
F4Ch ECCP3DEL
F4Bh CCPR3H
F4Ah CCPR3L
F49h CCP3CON
F48h CCPR8H
F47h CCPR8L
F46h CCP8CON
F45h CCPR9H(4)
F44h CCPR9L(4)
F43h CCP9CON(4)
F42h CCPR10H(4)
F41h CCPR10L(4)
F40h CCP10CON(4)
Note 1:
2:
3:
4:
5:
This is not a physical register.
Unimplemented registers are read as ‘0’.
This register is not available on 64-pin devices (PIC18F6XK22).
This register is not available on devices with a program memory of 32 Kbytes (PIC18FX5K22).
Addresses, F16h through F5Fh, are also used by SFRs, but are not part of the Access RAM. To access these registers,
users must always load the proper BSR value.
 2010 Microchip Technology Inc.
Preliminary
DS39960B-page 95