Datasheet

PIC18F2220/2320/4220/4320
DS39599G-page 384 © 2007 Microchip Technology Inc.
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
Sleep Mode ................................................................ 31
Summary (table) ......................................................... 29
Wake from .................................................................. 38
Power-on Reset (POR) .............................................. 44, 237
Power-up Delays ................................................................ 28
Power-up Timer (PWRT) ...................................... 28, 44, 237
Prescaler, Capture ...........................................................135
Prescaler, Timer0 ............................................................. 119
Assignment (PSA Bit) ............................................... 119
Rate Select (T0PS2:T0PS0 Bits) ............................. 119
Prescaler, Timer2 ............................................................. 139
Product Identification System ........................................... 391
Program Counter
PCL Register .............................................................. 56
PCLATH Register .......................................................56
PCLATU Register .......................................................56
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 ...................................253
Program Verification
......................................................... 252
Program Verification and Code Protection
Associated Registers ...............................................252
Programming, Device Instructions ................................... 257
PSP. See Parallel Slave Port.
Pulse-Width Modulation. See PWM (CCP Module)
and PWM (ECCP Module).
PUSH ............................................................................... 286
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 ............................................................................. 287
RCON Register
Bit Status During Initialization .................................... 45
Bits and Positions ...................................................... 45
RCSTA Register
SPEN Bit .................................................................. 195
Reader Response ............................................................ 390
Register File ....................................................................... 59
Registers
ADCON0 (A/D Control 0) ......................................... 211
ADCON1 (A/D Control 1) ......................................... 212
ADCON2 (A/D Control 2) ......................................... 213
CCP1CON (ECCP Control) ..................................... 141
CCPxCON (CCPx Control) ...................................... 133
CMCON (Comparator Control) ................................ 221
CONFIG1H (Configuration 1 High) .......................... 238
CONFIG2H (Configuration 2 High) .......................... 240
CONFIG2L (Configuration 2 Low) ........................... 239
CONFIG3H (Configuration 3 High) .......................... 241
CONFIG4L (Configuration 4 Low) ........................... 241
CONFIG5H (Configuration 5 High) .......................... 242
CONFIG5L (Configuration 5 Low) ........................... 242
CONFIG6H (Configuration 6 High) .......................... 243
CONFIG6L (Configuration 6 Low) ........................... 243
CONFIG7H (Configuration 7 High) .......................... 244
CONFIG7L (Configuration 7 Low) ........................... 244
CVRCON (Comparator Voltage
Reference Control) .......................................... 227
DEVID1 (Device ID 1) .............................................. 245
DEVID2 (Device ID 2) .............................................. 245
ECCPAS (Enhanced Capture/Compare/PWM
Auto-Shutdown Control) .................................. 150
EECON1 (Data EEPROM Control 1) ....................73, 82
INTCON (Interrupt Control)
........................................ 89
INTCON2 (Interrupt Control 2) ................................... 90
INTCON3 (Interrupt Control 3) ................................... 91
IPR1 (Peripheral Interrupt Priority 1) ......................... 96
IPR2 (Peripheral Interrupt Priority 2) ......................... 97
LVDCON (Low-Voltage Detect Control) .................. 233
OSCCON (Oscillator Control) .................................... 27