PIC18F2221 MICROCHIP [Microchip Technology], PIC18F2221 Datasheet - Page 67

no-image

PIC18F2221

Manufacturer Part Number
PIC18F2221
Description
28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2221-I/ML
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2221-I/SO
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
PIC18F2221-I/SO
Manufacturer:
MICROCHI
Quantity:
20 000
Part Number:
PIC18F2221-I/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2221-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2221T-I/ML
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
TABLE 5-2:
© 2007 Microchip Technology Inc.
SPBRGH
SPBRG
RCREG
TXREG
TXSTA
RCSTA
EEADR
EEDATA
EECON2
EECON1
IPR2
PIR2
PIE2
IPR1
PIR1
PIE1
OSCTUNE
TRISE
TRISD
TRISC
TRISB
TRISA
LATE
LATD
LATC
LATB
LATA
PORTE
PORTD
PORTC
PORTB
PORTA
Legend:
Note
File Name
(2)
(2)
(2)
(2)
(2)
1:
2:
3:
4:
5:
6:
EUSART Baud Rate Generator Register High Byte
EUSART Baud Rate Generator Register Low Byte
EUSART Receive Register
EUSART Transmit Register
EEPROM Address Register
EEPROM Data Register
EEPROM Control Register 2 (not a physical register)
PORTD Data Direction Control Register
PORTC Data Direction Control Register
PORTB Data Direction Control Register
PORTD Data Latch Register (Read and Write to Data Latch)
PORTC Data Latch Register (Read and Write to Data Latch)
PORTB Data Latch Register (Read and Write to Data Latch)
x = unknown, u = unchanged, — = unimplemented, q = value depends on condition
The SBOREN bit is only available when the BOREN1:BOREN0 Configuration bits = 01; otherwise, it is disabled and reads as ‘0’. See
Section 4.4 “Brown-out Reset (BOR)”.
These registers and/or bits are not implemented on 28-pin devices and are read as
individual unimplemented bits should be interpreted as ‘-’.
The PLLEN bit is only available in specific oscillator configurations; otherwise, it is disabled and reads as
INTOSC Modes”.
The RE3 bit is only available when Master Clear Reset is disabled (MCLRE Configuration bit = 0); otherwise, RE3 reads as
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.
TRISA7
PSPIP
PSPIF
PSPIE
LATA7
OSCFIP
OSCFIF
OSCFIE
INTSRC
EEPGD
CSRC
RA7
SPEN
Bit 7
RD7
RC7
RB7
IBF
(5)
(2)
(2)
(2)
(5)
REGISTER FILE SUMMARY (PIC18F2221/2321/4221/4321) (CONTINUED)
(5)
TRISA6
PLLEN
LATA6
RA6
CFGS
CMIP
CMIF
CMIE
ADIP
ADIF
ADIE
Bit 6
OBF
RX9
RD6
RC6
RB6
TX9
(5)
(5)
(3)
(5)
PORTA Data Direction Control Register
PORTA Data Latch Register (Read and Write to Data Latch)
TXEN
SREN
RCIP
RCIF
RCIE
IBOV
Bit 5
RD5
RC5
RB5
RA5
PSPMODE
SYNC
CREN
FREE
TUN4
EEIP
EEIF
EEIE
Bit 4
TXIP
TXIF
TXIE
RD4
RC4
RB4
RA4
Preliminary
WRERR
SENDB
ADDEN
BCLIP
BCLIF
BCLIE
SSPIP
SSPIF
SSPIE
RE3
TUN3
Bit 3
RD3
RC3
RB3
RA3
(4)
PIC18F4321 FAMILY
PORTE Data Latch Register
(Read and Write to Data Latch)
HLVDIP
HLVDIF
HLVDIE
CCP1IP
CCP1IF
CCP1IE
TRISE2
WREN
BRGH
RE2
FERR
TUN2
Bit 2
RD2
RC2
RB2
RA2
(2)
0
. Reset values are shown for 40/44-pin devices;
TMR3IP
TMR3IE
TMR2IP
TMR2IE
TMR3IF
TMR2IF
TRISE1
TRMT
OERR
RE1
TUN1
Bit 1
RD1
RC1
RB1
RA1
WR
(2)
CCP2IP
CCP2IE
TMR1IP
TMR1IF
TMR1IE
CCP2IF
TRISE0
RE0
TX9D
RX9D
TUN0
Bit 0
RD0
RC0
RB0
RA0
RD
0
(2)
. See Section 2.6.4 “PLL in
0000 0000
0000 0000
0000 0000
0000 0000
0000 0010
0000 000x
0000 0000 51, 74, 83
0000 0000 51, 74, 83
0000 0000 51, 74, 83
xx-0 x000 51, 75, 84
11-1 1111
00-0 0000
00-0 0000
1111 1111
0000 0000
0000 0000
00-0 0000
0000 -111
1111 1111
1111 1111
1111 1111
1111 1111
---- -xxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
---- xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
xx0x 0000
POR, BOR
DS39689E-page 65
Value on
0
. This bit is
Details on
51, 210
51, 210
51, 218
51, 215
51, 206
51, 207
52, 101
52, 100
52, 108
52, 105
52, 108
52, 105
52, 108
52, 105
52, 118
52, 114
52, 111
52, 117
52, 114
52, 111
52, 117
52, 114
52, 111
52, 97
52, 99
52, 96
52, 98
27, 52
page:

Related parts for PIC18F2221