PIC18LF2221-I/ML Microchip Technology, PIC18LF2221-I/ML Datasheet - Page 393
![4 KB Flash, 512 RAM 28 QFN 6x6mm TUBE](/photos/6/81/68120/150-28-qfn_sml.jpg)
PIC18LF2221-I/ML
Manufacturer Part Number
PIC18LF2221-I/ML
Description
4 KB Flash, 512 RAM 28 QFN 6x6mm TUBE
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.PIC18LF2221-IML.pdf
(394 pages)
Specifications of PIC18LF2221-I/ML
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
Program Memory Size
4KB (2K x 16)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 10x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
28-VQFN Exposed Pad, 28-HVQFN, 28-SQFN, 28-DHVQFN
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC18LF2221-I/ML
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC18LF2221-I/ML
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
INTCON Registers ..................................................... 99–101
Inter-Integrated Circuit. See I
Internal Oscillator Block ..................................................... 32
Internal RC Oscillator
Internet Address ............................................................... 399
Interrupt Sources ............................................................. 259
Interrupts ............................................................................ 97
INTOSC, INTRC. See Internal Oscillator Block.
IORLW ............................................................................. 302
IORWF ............................................................................. 302
IPR Registers ................................................................... 106
L
LFSR ................................................................................ 303
Low-Voltage ICSP Programming. See Single-Supply ICSP
M
Master Clear (MCLR) ......................................................... 49
Master Synchronous Serial Port (MSSP). See MSSP.
Memory Organization ......................................................... 59
Memory Programming Requirements .............................. 349
Microchip Internet Web Site ............................................. 399
Migration from Baseline to Enhanced Devices ................ 387
Migration from High-End to Enhanced Devices ............... 388
Migration from Mid-Range to Enhanced Devices ............ 388
MOVF ............................................................................... 303
MOVFF ............................................................................ 304
MOVLB ............................................................................ 304
MOVLW ........................................................................... 305
MOVSF ............................................................................ 323
© 2009 Microchip Technology Inc.
RRNCF .................................................................... 313
SETF ........................................................................ 313
SETF (Indexed Literal Offset Mode) ........................ 327
SLEEP ..................................................................... 314
Standard Instructions ............................................... 279
SUBFWB .................................................................. 314
SUBLW .................................................................... 315
SUBWF .................................................................... 315
SUBWFB .................................................................. 316
SWAPF .................................................................... 316
TBLRD ..................................................................... 317
TBLWT ..................................................................... 318
TSTFSZ ................................................................... 319
XORLW .................................................................... 319
XORWF .................................................................... 320
Adjustment ................................................................. 32
INTIO Modes .............................................................. 32
INTOSC Frequency Drift ............................................ 33
INTOSC Output Frequency ........................................ 32
OSCTUNE Register ................................................... 32
PLL in INTOSC Modes .............................................. 33
Use with WDT .......................................................... 269
A/D Conversion Complete ....................................... 237
Capture Complete (CCP) ......................................... 147
Compare Complete (CCP) ....................................... 148
Interrupt-on-Change (RB7:RB4) .............................. 114
INTx Pin ................................................................... 109
PORTB, Interrupt-on-Change .................................. 109
TMR0 ....................................................................... 109
TMR0 Overflow ........................................................ 131
TMR1 Overflow ........................................................ 133
TMR2 to PR2 Match (PWM) ............................ 150, 155
TMR3 Overflow ................................................ 141, 143
Programming
Data Memory ............................................................. 65
Program Memory ....................................................... 59
PIC18F2221/2321/4221/4321 FAMILY
2
C.
MOVSS ............................................................................ 324
MOVWF ........................................................................... 305
MPLAB ASM30 Assembler, Linker, Librarian .................. 330
MPLAB ICD 2 In-Circuit Debugger .................................. 331
MPLAB ICE 2000 High-Performance Universal
MPLAB Integrated Development Environment
MPLAB PM3 Device Programmer ................................... 331
MPLAB REAL ICE In-Circuit Emulator System ............... 331
MPLINK Object Linker/MPLIB Object Librarian ............... 330
MSSP
MULLW ............................................................................ 306
MULWF ............................................................................ 306
N
NEGF ............................................................................... 307
NOP ................................................................................. 307
O
Oscillator Configuration ..................................................... 29
Oscillator Selection .......................................................... 259
Oscillator Start-up Timer (OST) ................................... 38, 51
Oscillator Switching ........................................................... 35
Oscillator Transitions ......................................................... 36
Oscillator, Timer1 ..................................................... 133, 143
Oscillator, Timer3 ............................................................. 141
P
Packaging Information ..................................................... 373
Parallel Slave Port (PSP) ......................................... 120, 126
PICSTART Plus Development Programmer .................... 332
PIE Registers ................................................................... 104
Pin Functions
In-Circuit Emulator ................................................... 331
Software .................................................................. 329
ACK Pulse ....................................................... 181, 183
Control Registers (general) ..................................... 167
I
Module Overview ..................................................... 167
SPI Master/Slave Connection .................................. 171
SPI Mode. See SPI Mode.
SSPBUF Register .................................................... 172
SSPSR Register ...................................................... 172
EC .............................................................................. 29
ECIO .......................................................................... 29
HS .............................................................................. 29
HSPLL ....................................................................... 29
Internal Oscillator Block ............................................. 32
INTIO1 ....................................................................... 29
INTIO2 ....................................................................... 29
LP .............................................................................. 29
RC ............................................................................. 29
RCIO .......................................................................... 29
XT .............................................................................. 29
Marking .................................................................... 373
Associated Registers ............................................... 127
CS (Chip Select) ...................................................... 126
PORTD .................................................................... 126
RD (Read Input) ...................................................... 126
Select (PSPMODE Bit) .................................... 120, 126
WR (Write Input) ...................................................... 126
MCLR/V
OSC1/CLKI/RA7 .................................................. 14, 18
OSC2/CLKO/RA6 ................................................ 14, 18
RA0/AN0 .............................................................. 15, 19
RA1/AN1 .............................................................. 15, 19
2
C Mode. See I
PP
/RE3 ................................................... 14, 18
2
C Mode.
DS39689F-page 393