Datasheet

Table Of Contents
PIC18F1220/1320
DS39605F-page 298 © 2007 Microchip Technology Inc.
Internal Oscillator Block .....................................................14
Adjustment .................................................................14
INTIO Modes ..............................................................14
INTRC Output Frequency ..........................................14
OSCTUNE Register ...................................................14
Internal RC Oscillator
Use with WDT ..........................................................180
Internet Address ...............................................................302
Interrupt Sources ..............................................................171
A/D Conversion Complete ........................................159
Capture Complete (CCP) .........................................116
Compare Complete (CCP) .......................................117
Interrupt-on-Change (RB7:RB4) ................................90
INTn Pin .....................................................................85
PORTB, Interrupt-on-Change ....................................85
TMR0 .........................................................................85
TMR0 Overflow ........................................................101
TMR1 Overflow ........................................................103
TMR2 to PR2 Match .................................................110
TMR2 to PR2 Match (PWM) ............................ 109, 119
TMR3 Overflow ................................................ 111, 113
Interrupts ............................................................................73
Enable Bits
(CCP1IE Bit) ....................................................116
Flag Bits
CCP1 Flag (CCP1IF Bit) ..................................116
CCP1IF Flag (CCP1IF Bit) ...............................117
Interrupt-on-Change (RB7:RB4)
Flag (RBIF Bit) ...........................................90
Logic ...........................................................................74
INTOSC Frequency Drift ....................................................30
IORLW .............................................................................214
IORWF .............................................................................214
IPR Registers .....................................................................82
L
LFSR ................................................................................215
Low-Voltage Detect ..........................................................165
Characteristics .........................................................253
Effects of a Reset .....................................................169
Operation .................................................................168
Current Consumption .......................................169
Reference Voltage Set Point ............................169
Operation During Sleep ............................................169
LVD. See Low-Voltage Detect. ........................................165
M
Memory Organization .........................................................41
Data Memory ..............................................................47
Program Memory .......................................................41
Memory Programming Requirements ..............................252
Microchip Internet Web Site .............................................302
Migration from Baseline to Enhanced Devices ................ 292
Migration from High-End to Enhanced Devices ...............293
Migration from Mid-Range to Enhanced Devices .............293
MOVF ...............................................................................215
MOVFF .............................................................................216
MOVLB .............................................................................216
MOVLW ............................................................................217
MOVWF ...........................................................................217
MPLAB ASM30 Assembler, Linker, Librarian .................. 234
MPLAB ICD 2 In-Circuit Debugger ...................................235
MPLAB ICE 2000 High-Performance
Universal In-Circuit Emulator ...................................235
MPLAB Integrated Development
Environment Software ..............................................233
MPLAB PM3 Device Programmer ................................... 235
MPLAB REAL ICE In-Circuit Emulator System ................ 235
MPLINK Object Linker/MPLIB Object Librarian ............... 234
MULLW ............................................................................ 218
MULWF ............................................................................ 218
N
NEGF ............................................................................... 219
New Core Features
Multiple Oscillator Options and Features ..................... 5
nanoWatt Technology .................................................. 5
NOP ................................................................................. 219
O
Opcode Field Descriptions ............................................... 192
OPTION_REG Register
PSA Bit .................................................................... 101
T0CS Bit .................................................................. 101
T0PS2:T0PS0 Bits ................................................... 101
T0SE Bit ................................................................... 101
Oscillator Configuration ...................................................... 11
Crystal/Ceramic Resonator ........................................ 11
EC .............................................................................. 11
ECIO .......................................................................... 11
External Clock Input ................................................... 13
HS .............................................................................. 11
HSPLL ..................................................................11, 12
INTIO1 ....................................................................... 11
INTIO2 ....................................................................... 11
LP .............................................................................. 11
RC .........................................................................11, 13
RCIO .......................................................................... 11
XT .............................................................................. 11
Oscillator Selection .......................................................... 171
Oscillator Start-up Timer (OST) ............................18, 34, 171
Oscillator Switching ............................................................ 15
Oscillator Transitions ......................................................... 18
Oscillator, Timer1 ......................................................103, 113
Oscillator, Timer3 ............................................................. 111
Other Special Features ........................................................ 5
P
Packaging ........................................................................ 285
Details ...................................................................... 286
Marking Information ................................................. 285
PICSTART Plus Development Programmer .................... 236
PIE Registers ..................................................................... 80
Pin Functions
MCLR
/Vpp/RA5 ........................................................... 8
OSC1/CLKI/RA7 .......................................................... 8
OSC2/CLKO/RA6 ........................................................ 8
RA0/AN0 ...................................................................... 8
RA1/AN1/LVDIN .......................................................... 8
RA2/AN2/Vref- ............................................................. 8
RA3/AN3/V
REF+ ........................................................... 8
RA4/T0CKI ................................................................... 8
RB0/AN4/INT0 ............................................................. 9
RB1/AN5/TX/CK/INT1 ................................................. 9
RB2/P1B/INT2 ............................................................. 9
RB3/CCP1/P1A ........................................................... 9
RB4/AN6/RX/DT/KBI0 ................................................. 9
RB5/PGM/KBI1 ............................................................ 9
RB6/PGC/T1OSO/T13CKI/P1C/KBI2 .......................... 9
RB7/PGD/T1OSI/P1D/KBI3 ......................................... 9
Vdd .............................................................................. 9
Vss ............................................................................... 9