English
Language : 

PIC18F2331 Datasheet, PDF (388/396 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
PIC18F2331/2431/4331/4431
Interrupt Sources .............................................................. 267
Capture Complete (CCP) ......................................... 153
Compare Complete (CCP) ....................................... 154
Interrupt-on-Change (RB7:RB4) .............................. 112
INTn Pin ................................................................... 106
PORTB, Interrupt-on-Change .................................. 106
TMR0 ....................................................................... 106
TMR1 Overflow ........................................................ 137
TMR2 to PR2 Match ................................................. 144
TMR2 to PR2 Match (PWM) ............................ 143, 156
Interrupts ............................................................................ 91
Interrupts, Enable Bits
CCP1 Enable (CCP1IE Bit) ...................................... 153
Interrupts, Flag Bits
CCP1 Flag (CCP1IF Bit) .......................................... 153
CCP1IF Flag (CCP1IF Bit) ....................................... 154
Interrupt-on-Change (RB7:RB4) Flag (RBIF Bit) ...... 112
INTOSC Frequency Drift .................................................... 42
INTOSC, INTRC. See Internal Oscillator Block.
IORLW ............................................................................. 310
IORWF ............................................................................. 310
IPR Registers ................................................................... 102
L
LFSR ................................................................................ 311
Look-up Tables .................................................................. 63
Low-Voltage Detect .......................................................... 261
Low-Voltage Detect
Characteristics ......................................................... 352
Effects of a Reset ..................................................... 265
Operation ................................................................. 264
Current Consumption ....................................... 265
Reference Voltage Set Point ............................ 265
Operation During Sleep ............................................ 265
Low-Voltage ICSP Programming ..................................... 286
LVD. See Low-Voltage Detect.
M
Memory Organization ......................................................... 57
Data Memory .............................................................. 63
Program Memory ....................................................... 57
Memory Programming Requirements .............................. 351
Migration from Baseline to Enhanced Devices ................ 380
Migration from High-End to Enhanced Devices ............... 381
Migration from Mid-Range to Enhanced Devices ............. 381
MOVF ............................................................................... 311
MOVFF ............................................................................. 312
MOVLB ............................................................................. 312
MOVLW ............................................................................ 313
MOVWF ........................................................................... 313
MPLAB ASM30 Assembler, Linker, Librarian .................. 332
MPLAB ICD 2 In-Circuit Debugger ................................... 333
MPLAB ICE 2000 High Performance Universal
In-Circuit Emulator ................................................... 333
MPLAB ICE 4000 High Performance Universal I
n-Circuit Emulator .................................................... 333
MPLAB Integrated Development
Environment Software .............................................. 331
MPLINK Object Linker/MPLIB Object Librarian ............... 332
MULLW ............................................................................ 314
MULWF ............................................................................ 314
N
NEGF ............................................................................... 315
NOP ................................................................................. 315
O
Opcode Field Descriptions ............................................... 288
OPTION_REG Register
PSA Bit .................................................................... 135
T0CS Bit .................................................................. 135
T0PS2:T0PS0 Bits ................................................... 135
T0SE Bit ................................................................... 135
Oscillator Configuration ...................................................... 21
EC .............................................................................. 21
ECIO .......................................................................... 21
HS .............................................................................. 21
HSPLL ....................................................................... 21
Internal Oscillator Block ............................................. 24
INTIO1 ....................................................................... 21
INTIO2 ....................................................................... 21
LP .............................................................................. 21
RC .............................................................................. 21
RCIO .......................................................................... 21
XT .............................................................................. 21
Oscillator Selection .......................................................... 267
Oscillator Start-up Timer (OST) ....................................29, 46
Oscillator Switching ............................................................ 26
Oscillator Transitions ......................................................... 28
Oscillator, Timer1 ............................................................. 137
P
P (Stop) bit ....................................................................... 212
Packaging Information ..................................................... 373
Marking .................................................................... 373
PICkit 1 Flash Starter Kit .................................................. 335
PICSTART Plus Development Programmer .................... 333
PIE Registers ..................................................................... 99
Pin Functions
MCLR/VPP/RE3 ....................................................12, 15
OSC1/CLKI/RA7 ...................................................12, 15
OSC2/CLKO/RA6 .................................................12, 15
RA0/AN0 ...............................................................12, 15
RA1/AN1 ...............................................................12, 15
RA2/AN2/VREF-/CAP1/INDX ................................12, 15
RA3/AN3/VREF+/CAP2/QEA .................................12, 15
RA4/AN4/CAP3/QEB ................................................. 15
RA4/CAP3/QEB ......................................................... 12
RA5/AN5/LVDIN ........................................................ 15
RB0/PWM0 ...........................................................13, 16
RB1/PWM1 ...........................................................13, 16
RB2/PWM2 ...........................................................13, 16
RB3/PWM3 ...........................................................13, 16
RB4/KBI0/PWM5 ....................................................... 16
RB4/PWM5 ................................................................ 13
RB5/KBI1/PWM4/PGM .........................................13, 16
RB6/KBI2/PGC .....................................................13, 16
RB7/KBI3/PGD .....................................................13, 16
RC0/T1OSO/T1CKI ..............................................14, 17
RC1/T1OSI/CCP2/FLTA .......................................14, 17
RC2/CCP1/FLTB ..................................................14, 17
RC3/T0CKI/T5CKI/INT0 .......................................14, 17
RC4/INT1/SDI/SDA ..............................................14, 17
RC5/INT2/SCK/SCL .............................................14, 17
RC6/TX/CK/SS .....................................................14, 17
RC7/RX/DT/SDO ..................................................14, 17
RD0/T0CKI/T5CKI ..................................................... 18
RD1/SDO ................................................................... 18
RD2/SDI/SDA ............................................................ 18
RD3/SCK/SCL ........................................................... 18
RD4/FLTA .................................................................. 18
DS39616B-page 386
 2003 Microchip Technology Inc.