PIC18F2221-I/SP Microchip Technology, PIC18F2221-I/SP Datasheet - Page 392
![IC PIC MCU FLASH 2KX16 28DIP](/photos/6/59/65908/150-28-dip_sml.jpg)
PIC18F2221-I/SP
Manufacturer Part Number
PIC18F2221-I/SP
Description
IC PIC MCU FLASH 2KX16 28DIP
Manufacturer
Microchip Technology
Series
PIC® 18Fr
Datasheets
1.PIC18F2221-ISO.pdf
(402 pages)
2.PIC18F2221-ISO.pdf
(8 pages)
3.PIC18F2221-ISO.pdf
(30 pages)
4.PIC18F2221-ISO.pdf
(46 pages)
5.PIC18F2321-IML.pdf
(396 pages)
Specifications of PIC18F2221-I/SP
Program Memory Type
FLASH
Program Memory Size
4KB (2K x 16)
Package / Case
28-DIP (0.300", 7.62mm)
Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Number Of I /o
25
Eeprom Size
256 x 8
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 10x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Processor Series
PIC18F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
512 B
Interface Type
EUSART, I2C, MSSP, SPI
Maximum Clock Frequency
40 MHz
Number Of Programmable I/os
25
Number Of Timers
4
Operating Supply Voltage
2 V to 5.5 V
Maximum Operating Temperature
+ 125 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 52712-325, EWPIC18
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE4000, ICE2000, DV164136
Minimum Operating Temperature
- 40 C
On-chip Adc
10 bit
Height
3.3 mm
Length
34.67 mm
Supply Voltage (max)
5.5 V
Supply Voltage (min)
4.2 V
Width
7.24 mm
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
DVA18XP280 - DEVICE ADAPTER 18F2220 PDIP 28LD
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2221-I/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC18F2221/2321/4221/4321 FAMILY
High/Low-Voltage Detect ................................................. 253
HLVD. See High/Low-Voltage Detect. ............................. 253
I
I/O Ports ........................................................................... 111
I
ID Locations ............................................................. 259, 277
INCF ................................................................................. 300
INCFSZ ............................................................................ 301
In-Circuit Debugger .......................................................... 277
In-Circuit Serial Programming (ICSP) ...................... 259, 277
Indexed Literal Offset Addressing
Indexed Literal Offset Mode ............................................. 326
Indirect Addressing ............................................................ 74
INFSNZ ............................................................................ 301
Initialization Conditions for all Registers ...................... 55–58
DS39689F-page 392
2
C Mode (MSSP)
Applications .............................................................. 256
Associated Registers ............................................... 257
Characteristics ......................................................... 351
Current Consumption ............................................... 255
Effects of a Reset ..................................................... 257
Operation ................................................................. 254
Setup ........................................................................ 255
Start-up Time ........................................................... 255
Typical Application ................................................... 256
Acknowledge Sequence Timing ............................... 204
Associated Registers ............................................... 210
Baud Rate Generator ............................................... 197
Bus Collision
Clock Arbitration ....................................................... 198
Clock Stretching ....................................................... 190
Clock Synchronization and the CKP Bit ................... 191
Effects of a Reset ..................................................... 205
General Call Address Support ................................. 194
I
Master Mode ............................................................ 195
Multi-Master Communication, Bus Collision
Multi-Master Mode ................................................... 205
Operation ................................................................. 181
Read/Write Bit Information (R/W Bit) ....................... 181
Read/Write Bit Information (R/W Bit) ....................... 183
Registers .................................................................. 176
Serial Clock (RC3/SCK/SCL) ................................... 183
Slave Mode .............................................................. 181
Sleep Operation ....................................................... 205
Stop Condition Timing .............................................. 204
Single-Supply ........................................................... 277
and Standard PIC18 Instructions ............................. 326
2
C Clock Rate w/BRG ............................................. 197
During Sleep .................................................... 257
During a Repeated Start Condition .................. 208
During a Start Condition ................................... 206
During a Stop Condition ................................... 209
10-Bit Slave Receive Mode (SEN = 1) ............. 190
10-Bit Slave Transmit Mode ............................. 190
7-Bit Slave Receive Mode (SEN = 1) ............... 190
7-Bit Slave Transmit Mode ............................... 190
Operation ......................................................... 196
Reception ......................................................... 201
Repeated Start Condition Timing ..................... 200
Start Condition Timing ..................................... 199
Transmission .................................................... 201
and Arbitration .................................................. 205
Address Masking ............................................. 182
Addressing ....................................................... 181
Reception ......................................................... 183
Transmission .................................................... 183
Instruction Cycle ................................................................ 63
Instruction Flow/Pipelining ................................................. 63
Instruction Set .................................................................. 279
Clocking Scheme ....................................................... 63
ADDLW .................................................................... 285
ADDWF .................................................................... 285
ADDWF (Indexed Literal Offset Mode) .................... 327
ADDWFC ................................................................. 286
ANDLW .................................................................... 286
ANDWF .................................................................... 287
BC ............................................................................ 287
BCF ......................................................................... 288
BN ............................................................................ 288
BNC ......................................................................... 289
BNN ......................................................................... 289
BNOV ...................................................................... 290
BNZ ......................................................................... 290
BOV ......................................................................... 293
BRA ......................................................................... 291
BSF .......................................................................... 291
BSF (Indexed Literal Offset Mode) .......................... 327
BTFSC ..................................................................... 292
BTFSS ..................................................................... 292
BTG ......................................................................... 293
BZ ............................................................................ 294
CALL ........................................................................ 294
CLRF ....................................................................... 295
CLRWDT ................................................................. 295
COMF ...................................................................... 296
CPFSEQ .................................................................. 296
CPFSGT .................................................................. 297
CPFSLT ................................................................... 297
DAW ........................................................................ 298
DCFSNZ .................................................................. 299
DECF ....................................................................... 298
DECFSZ .................................................................. 299
Extended Instruction Set ......................................... 321
General Format ........................................................ 281
GOTO ...................................................................... 300
INCF ........................................................................ 300
INCFSZ .................................................................... 301
INFSNZ .................................................................... 301
IORLW ..................................................................... 302
IORWF ..................................................................... 302
LFSR ....................................................................... 303
MOVF ...................................................................... 303
MOVFF .................................................................... 304
MOVLB .................................................................... 304
MOVLW ................................................................... 305
MOVWF ................................................................... 305
MULLW .................................................................... 306
MULWF .................................................................... 306
NEGF ....................................................................... 307
NOP ......................................................................... 307
Opcode Field Descriptions ....................................... 280
POP ......................................................................... 308
PUSH ....................................................................... 308
RCALL ..................................................................... 309
RESET ..................................................................... 309
RETFIE .................................................................... 310
RETLW .................................................................... 310
RETURN .................................................................. 311
RLCF ....................................................................... 311
RLNCF ..................................................................... 312
RRCF ....................................................................... 312
© 2009 Microchip Technology Inc.