PIC18F2220/2320/4220/4320
“core” are described in this section, while those related
to the operation of the peripheral features are
described in the section of that peripheral feature.
5.9.2
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. A list of these registers is
given in Table 5-1 and Table 5-2.
The SFRs are typically distributed among the
peripherals whose functions they control.
The unused SFR locations will be unimplemented and
read as ‘0’s.
The SFRs can be classified into two sets: those asso-
ciated with the “core” function and those related to the
peripheral functions. Those registers related to the
TABLE 5-1:
SPECIAL FUNCTION REGISTER MAP FOR PIC18F2X20/4X20 DEVICES
Address
FFFh
FFEh
FFDh
FFCh
FFBh
FFAh
FF9h
FF8h
FF7h
FF6h
FF5h
FF4h
FF3h
FF2h
FF1h
FF0h
FEFh
Name
TOSU
Address
Name
INDF2(2)
Address
FBFh
FBEh
FBDh
FBCh
FBBh
FBAh
FB9h
Name
CCPR1H
CCPR1L
CCP1CON
CCPR2H
CCPR2L
CCP2CON
—
Address
F9Fh
F9Eh
F9Dh
F9Ch
F9Bh
F9Ah
F99h
F98h
F97h
F96h
F95h
F94h
F93h
F92h
F91h
F90h
F8Fh
F8Eh
F8Dh
F8Ch
F8Bh
F8Ah
F89h
F88h
F87h
F86h
F85h
F84h
F83h
F82h
F81h
F80h
Name
IPR1
PIR1
PIE1
—
FDFh
TOSH
FDEh POSTINC2(2)
FDDh POSTDEC2(2)
FDCh PREINC2(2)
FDBh PLUSW2(2)
TOSL
STKPTR
PCLATU
PCLATH
PCL
OSCTUNE
—
FDAh
FD9h
FD8h
FD7h
FD6h
FD5h
FD4h
FD3h
FD2h
FD1h
FD0h
FCFh
FCEh
FCDh
FCCh
FCBh
FCAh
FC9h
FC8h
FC7h
FC6h
FC5h
FC4h
FC3h
FC2h
FC1h
FC0h
FSR2H
FSR2L
—
TBLPTRU
TBLPTRH
TBLPTRL
TABLAT
PRODH
PRODL
INTCON
INTCON2
INTCON3
INDF0(2)
STATUS
TMR0H
TMR0L
FB8h
—
—
FB7h PWM1CON(1)
FB6h ECCPAS(1)
—
TRISE(1)
TRISD(1)
TRISC
TRISB
TRISA
—
T0CON
—
FB5h
FB4h
FB3h
FB2h
FB1h
FB0h
FAFh
FAEh
FADh
FACh
FABh
FAAh
FA9h
FA8h
FA7h
FA6h
FA5h
FA4h
FA3h
FA2h
FA1h
FA0h
CVRCON
CMCON
TMR3H
TMR3L
T3CON
—
OSCCON
LVDCON
WDTCON
RCON
—
TMR1H
TMR1L
SPBRG
RCREG
TXREG
TXSTA
RCSTA
—
—
FEEh POSTINC0(2)
FEDh POSTDEC0(2)
FECh PREINC0(2)
FEBh PLUSW0(2)
—
T1CON
TMR2
LATE(1)
LATD(1)
LATC
LATB
LATA
—
PR2
FEAh
FE9h
FE8h
FE7h
FE6h POSTINC1(2)
FE5h POSTDEC1(2)
FE4h PREINC1(2)
FE3h PLUSW1(2)
FSR0H
FSR0L
WREG
INDF1(2)
T2CON
SSPBUF
SSPADD
SSPSTAT
SSPCON1
SSPCON2
ADRESH
ADRESL
ADCON0
ADCON1
ADCON2
EEADR
EEDATA
EECON2
EECON1
—
—
—
—
—
PORTE
PORTD(1)
PORTC
PORTB
PORTA
—
FE2h
FE1h
FE0h
FSR1H
FSR1L
BSR
IPR2
PIR2
PIE2
Legend: — = Unimplemented registers, read as ‘0’.
Note 1: This register is not available on PIC18F2X20 devices.
2: This is not a physical register.
2003 Microchip Technology Inc.
DS39599C-page 61