English
Language : 

PIC18F2221_1 Datasheet, PDF (391/402 Pages) Microchip Technology – Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
PIC18F2221/2321/4221/4321 FAMILY
DAW ................................................................................. 298
DC Characteristics ........................................................... 347
Power-Down and Supply Current ............................ 337
Supply Voltage ......................................................... 336
DCFSNZ .......................................................................... 299
DECF ............................................................................... 298
DECFSZ ........................................................................... 299
Development Support ...................................................... 329
Device Differences ........................................................... 386
Device Overview .................................................................. 9
Details on Individual Family Members ....................... 10
Features (table) .......................................................... 11
New Core Features ...................................................... 9
Other Special Features .............................................. 10
Device Reset Timers .......................................................... 51
Oscillator Start-up Timer (OST) ................................. 51
PLL Lock Time-out ..................................................... 51
Power-up Timer (PWRT) ........................................... 51
Time-out Sequence .................................................... 51
Direct Addressing ............................................................... 74
E
Effect on Standard PIC MCU Instructions ........................ 326
Effects of Power-Managed Modes on Various
Clock Sources ............................................................ 38
Electrical Characteristics .................................................. 333
Enhanced Capture/Compare/PWM (ECCP) .................... 153
Associated Registers ............................................... 166
Capture and Compare Modes .................................. 154
Capture Mode. See Capture (ECCP Module).
Outputs and Configuration ....................................... 154
Pin Configurations for ECCP1 ................................. 154
PWM Mode. See PWM (ECCP Module).
Standard PWM Mode ............................................... 154
Timer Resources ...................................................... 154
Enhanced PWM Mode. See PWM (ECCP Module). ........ 155
Enhanced Universal Synchronous Asynchronous Receiver
Transmitter (EUSART). See EUSART.
Equations
A/D Acquisition Time ................................................ 238
A/D Minimum Charging Time ................................... 238
Calculating the Minimum Required
Acquisition Time .............................................. 238
Errata ................................................................................... 8
EUSART
Asynchronous Mode ................................................ 221
12-Bit Break Transmit and Receive ................. 227
Associated Registers, Receive ........................ 225
Associated Registers, Transmit ....................... 223
Auto-Wake-up on Sync Break ......................... 226
Receiver ........................................................... 224
Setting up 9-Bit Mode with Address Detect ..... 224
Transmitter ....................................................... 221
Baud Rate Generator
Operation in Power-Managed Mode ................ 215
Baud Rate Generator (BRG) .................................... 215
Associated Registers ....................................... 216
Auto-Baud Rate Detect .................................... 219
Baud Rate Error, Calculating ........................... 216
Baud Rates, Asynchronous Modes ................. 217
High Baud Rate Select (BRGH Bit) ................. 215
Sampling .......................................................... 215
Synchronous Master Mode ...................................... 228
Associated Registers, Receive ........................ 230
Associated Registers, Transmit ....................... 229
Reception ........................................................ 230
Transmission ................................................... 228
Synchronous Slave Mode ........................................ 231
Associated Registers, Receive ........................ 232
Associated Registers, Transmit ....................... 231
Reception ........................................................ 232
Transmission ................................................... 231
Extended Instruction Set
ADDFSR .................................................................. 322
ADDULNK ............................................................... 322
and Using MPLAB Tools ......................................... 328
CALLW .................................................................... 323
Considerations for Use ............................................ 326
MOVSF .................................................................... 323
MOVSS .................................................................... 324
PUSHL ..................................................................... 324
SUBFSR .................................................................. 325
SUBULNK ................................................................ 325
Syntax ...................................................................... 321
External Clock Input ........................................................... 30
F
Fail-Safe Clock Monitor ........................................... 259, 272
Exiting Operation ..................................................... 272
Interrupts in Power-Managed Modes ...................... 273
POR or Wake From Sleep ....................................... 273
WDT During Oscillator Failure ................................. 272
Fast Register Stack ........................................................... 62
Firmware Instructions ...................................................... 279
Flash Program Memory ..................................................... 79
Associated Registers ................................................. 87
Control Registers ....................................................... 80
EECON1 and EECON2 ..................................... 80
TABLAT (Table Latch) Register ........................ 82
TBLPTR (Table Pointer) Register ...................... 82
Erase Sequence ........................................................ 84
Erasing ...................................................................... 84
Operation During Code-Protect ................................. 87
Reading ..................................................................... 83
Table Pointer
Boundaries ........................................................ 82
Boundaries Based on Operation ....................... 82
Operations with TBLRD and TBLWT (table) ..... 82
Table Reads and Table Writes .................................. 79
Write Sequence ......................................................... 85
Writing ....................................................................... 85
Protection Against Spurious Writes ................... 87
Unexpected Termination ................................... 87
Write Verify ........................................................ 87
FSCM. See Fail-Safe Clock Monitor.
G
GOTO .............................................................................. 300
H
Hardware Multiplier ............................................................ 95
Introduction ................................................................ 95
Operation ................................................................... 95
Performance Comparison .......................................... 95
© 2009 Microchip Technology Inc.
DS39689F-page 391