English
Language : 

PIC18F2220 Datasheet, PDF (380/388 Pages) Microchip Technology – 28/40/44-Pin High-Performance, Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
PIC18F2220/2320/4220/4320
Pinout I/O Descriptions
PIC18F2220/2320 ...................................................... 11
PIC18F4220/4320 ...................................................... 14
PIR Registers ..................................................................... 92
PLL Lock Time-out ............................................................. 44
Pointer, FSRn ..................................................................... 66
POP .................................................................................. 284
POR. See Power-on Reset.
PORTA
Associated Registers ............................................... 103
LATA Register .......................................................... 101
PORTA Register ...................................................... 101
TRISA Register ........................................................ 101
PORTB
Associated Registers ............................................... 106
LATB Register .......................................................... 104
PORTB Register ...................................................... 104
RB7:RB4 Interrupt-on-Change Flag (RBIF Bit) ........ 104
TRISB Register ........................................................ 104
PORTC
Associated Registers ............................................... 108
LATC Register .......................................................... 107
PORTC Register ...................................................... 107
TRISC Register ........................................................ 107
PORTD
Associated Registers ............................................... 110
LATD Register .......................................................... 109
Parallel Slave Port (PSP) Function .......................... 109
PORTD Register ...................................................... 109
TRISD Register ........................................................ 109
PORTE
Analog Port Pins ...................................................... 113
Associated Registers ............................................... 113
LATE Register .......................................................... 111
PORTE Register ...................................................... 111
PSP Mode Select (PSPMODE Bit) .......................... 109
RE0/AN5/RD Pin ...................................................... 113
RE1/AN6/WR Pin ..................................................... 113
RE2/AN7/CS Pin ...................................................... 113
TRISE Register ........................................................ 111
Postscaler, WDT
Assignment (PSA Bit) ............................................... 119
Rate Select (T0PS2:T0PS0 Bits) ............................. 119
Power Managed Modes ..................................................... 29
Entering ...................................................................... 30
Idle Modes .................................................................. 31
Run Modes ................................................................. 36
Selecting .................................................................... 29
Sleep Mode ................................................................ 31
Summary (table) ......................................................... 29
Wake-up from ............................................................. 38
Power-on Reset (POR) .............................................. 44, 237
Power-up Delays ................................................................ 27
Power-up Timer (PWRT) ...................................... 27, 44, 237
Prescaler, Capture ........................................................... 135
Prescaler, Timer0 ............................................................. 119
Assignment (PSA Bit) ............................................... 119
Rate Select (T0PS2:T0PS0 Bits) ............................. 119
Prescaler, Timer2 ............................................................. 139
PRO MATE II Universal Device Programmer ................... 301
Product Identification System ........................................... 385
Program Counter
PCL Register .............................................................. 56
PCLATH Register ....................................................... 56
PCLATU Register ....................................................... 56
DS39599C-page 378
Program Memory
Instructions ................................................................ 58
Two-Word .......................................................... 58
Interrupt Vector .......................................................... 53
Map and Stack for PIC18F2220/4220 ....................... 53
Map and Stack for PIC18F2320/4320 ....................... 53
Reset Vector .............................................................. 53
Program Memory Code Protection .................................. 252
Program Verification ........................................................ 251
Program Verification and Code Protection
Associated Registers ............................................... 251
Programming, Device Instructions ................................... 255
PSP. See Parallel Slave Port.
Pulse Width Modulation. See PWM (CCP Module)
and PWM (ECCP Module).
PUSH ............................................................................... 284
PUSH and POP Instructions .............................................. 55
PWM (CCP Module) ........................................................ 138
Associated Registers ............................................... 139
CCPR1H:CCPR1L Registers ................................... 138
Duty Cycle ............................................................... 138
Example Frequencies/Resolutions .......................... 139
Period ...................................................................... 138
Setup for PWM Operation ........................................ 139
TMR2 to PR2 Match .........................................127, 138
PWM (ECCP Module) ...................................................... 143
Associated Registers ............................................... 153
Direction Change in Full-Bridge Output Mode ......... 147
Effects of a Reset .................................................... 152
Full-Bridge Application Example .............................. 147
Full-Bridge Mode ..................................................... 146
Half-Bridge Mode ..................................................... 145
Half-Bridge Output Mode Applications Example ...... 145
Operation in Power Managed Modes ...................... 152
Operation with Fail-Safe Clock Monitor ................... 152
Output Configurations .............................................. 143
Output Relationships (Active-High State) ................ 144
Output Relationships (Active-Low State) ................. 144
Programmable Dead Band Delay ............................ 149
Setup for Operation ................................................. 152
Shoot-Through Current ............................................ 149
Start-up Considerations ........................................... 151
Q
Q Clock ............................................................................ 139
R
RAM. See Data Memory.
RC Oscillator ...................................................................... 21
RCIO Oscillator Mode ................................................ 21
RCALL ............................................................................. 285
RCON Register
Bit Status During Initialization .................................... 45
Bits and Positions ...................................................... 45
RCSTA Register
SPEN Bit .................................................................. 195
Register File ....................................................................... 59
Registers
ADCON0 (A/D Control 0) ......................................... 211
ADCON1 (A/D Control 1) ......................................... 212
ADCON2 (A/D Control 2) ......................................... 213
CCP1CON (Enhanced CCP
Operation Control 1) ........................................ 141
CCPxCON (Capture/Compare/PWM Control) ......... 133
CMCON (Comparator Control) ................................ 221
CONFIG1H (Configuration 1 High) .......................... 238
 2003 Microchip Technology Inc.