English
Language : 

PIC18F2221_1 Datasheet, PDF (70/402 Pages) Microchip Technology – Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
PIC18F2221/2321/4221/4321 FAMILY
TABLE 6-2: REGISTER FILE SUMMARY (PIC18F2221/2321/4221/4321) (CONTINUED)
File Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on Details on
POR, BOR page:
TMR0H Timer0 Register High Byte
0000 0000 56, 131
TMR0L
Timer0 Register Low Byte
xxxx xxxx 56, 131
T0CON
TMR0ON T08BIT
T0CS
T0SE
PSA
T0PS2
T0PS1
T0PS0 1111 1111 56, 129
OSCCON
IDLEN
IRCF2
IRCF1
IRCF0
OSTS
IOFS
SCS1
SCS0 0100 q000 37, 56
HLVDCON VDIRMAG
—
IRVST
HLVDEN HLVDL3 HLVDL2
HLVDL1
HLVDL0 0-00 0101 56, 253
WDTCON
—
—
—
—
—
—
—
SWDTEN --- ---0 56, 270
RCON
IPEN
SBOREN(1)
—
RI
TO
PD
POR
BOR 0q-1 11q0 48, 54, 108
TMR1H Timer1 Register High Byte
xxxx xxxx 56, 137
TMR1L
Timer1 Register Low Byte
xxxx xxxx 56, 137
T1CON
RD16
T1RUN T1CKPS1 T1CKPS0 T1OSCEN T1SYNC TMR1CS TMR1ON 0000 0000 56, 133
TMR2
Timer2 Register
0000 0000 56, 140
PR2
Timer2 Period Register
1111 1111 56, 140
T2CON
—
T2OUTPS3 T2OUTPS2 T2OUTPS1 T2OUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000 56, 139
SSPBUF MSSP Receive Buffer/Transmit Register
SSPADD MSSP Address Register in I2C™ Slave mode. MSSP Baud Rate Reload Register in I2C Master mode.
xxxx xxxx
0000 0000
56, 175,
176
56, 176
SSPSTAT
SMP
CKE
D/A
P
S
R/W
UA
BF
0000 0000 56, 168,
177
SSPCON1 WCOL
SSPOV
SSPEN
CKP
SSPM3
SSPM2
SSPM1
SSPM0 0000 0000 56, 169,
178
SSPCON2
GCEN
ACKSTAT
ACKDT/
ADMSK5
ACKEN/
ADMSK4
RCEN/
ADMSK3
PEN/
ADMSK2
RSEN/
ADMSK1
SEN 0000 0000 56, 179
ADRESH A/D Result Register High Byte
xxxx xxxx 57, 242
ADRESL A/D Result Register Low Byte
xxxx xxxx 57, 242
ADCON0
—
—
CHS3
CHS2
CHS1
CHS0
GO/DONE
ADON --00 0000 57, 233
ADCON1
—
—
VCFG1
VCFG0
PCFG3
PCFG2
PCFG1
PCFG0 --00 0qqq 57, 234
ADCON2
ADFM
—
ACQT2
ACQT1
ACQT0
ADCS2
ADCS1
ADCS0 0-00 0000 57, 235
CCPR1H Capture/Compare/PWM Register 1 High Byte
xxxx xxxx 57, 146
CCPR1L Capture/Compare/PWM Register 1 Low Byte
CCP1CON P1M1(2)
P1M0(2)
DC1B1
DC1B0
CCP1M3 CCP1M2
CCP1M1
CCP1M0
xxxx xxxx
0000 0000
57, 146
57, 145,
153
CCPR2H Capture/Compare/PWM Register 2 High Byte
xxxx xxxx 57, 146
CCPR2L Capture/Compare/PWM Register 2 Low Byte
xxxx xxxx 57, 146
CCP2CON
—
—
DC2B1
DC2B0
CCP2M3 CCP2M2
CCP2M1
CCP2M0 --00 0000 57, 145
BAUDCON ABDOVF
ECCP1DEL PRSEN
ECCP1AS ECCPASE
RCIDL
PDC6(2)
ECCPAS2
RXDTP
PDC5(2)
ECCPAS1
TXCKP
PDC4(2)
ECCPAS0
BRG16
PDC3(2)
PSSAC1
—
PDC2(2)
PSSAC0
WUE
PDC1(2)
PSSBD1(2)
ABDEN
PDC0(2)
PSSBD0(2)
0100 0-00
0000 0000
0000 0000
57, 214
57, 162
57, 163
CVRCON
CVREN
CVROE
CVRR
CVRSS
CVR3
CVR2
CVR1
CVR0 0000 0000 57, 249
CMCON
C2OUT
C1OUT
C2INV
C1INV
CIS
CM2
CM1
CM0 0000 0111 57, 243
TMR3H Timer3 Register High Byte
xxxx xxxx 57, 143
TMR3L
Timer3 Register Low Byte
xxxx xxxx 57, 143
T3CON
RD16
T3CCP2 T3CKPS1 T3CKPS0 T3CCP1 T3SYNC TMR3CS TMR3ON 0000 0000 57, 141
Legend:
Note 1:
2:
3:
4:
5:
6:
x = unknown, u = unchanged, — = unimplemented, q = value depends on condition
The SBOREN bit is only available when the BOREN<1:0> Configuration bits = 01; otherwise, it is disabled and reads as ‘0’. See
Section 5.4 “Brown-out Reset (BOR)”.
These registers and/or bits are not implemented on 28-pin devices and are read as ‘0’. Reset values are shown for 40/44-pin devices;
individual unimplemented bits should be interpreted as ‘-’.
The PLLEN bit is only available in specific oscillator configurations; otherwise, it is disabled and reads as ‘0’. See Section 3.6.4 “PLL in
INTOSC Modes”.
The RE3 bit is only available when Master Clear Reset is disabled (MCLRE Configuration bit = 0); otherwise, RE3 reads as ‘0’. This bit is
read-only.
RA6/RA7 and their associated latch and direction bits are individually configured as port pins based on various primary oscillator modes.
When disabled, these bits read as ‘0’.
Bit 7 and bit 6 are cleared by user software or by a POR.
DS39689F-page 70
© 2009 Microchip Technology Inc.