English
Language : 

PIC18F2331_07 Datasheet, PDF (388/400 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
PIC18F2331/2431/4331/4431
BRA................................................................................... 301
Brown-out Reset (BOR) .............................................. 48, 269
BSF ................................................................................... 301
BTFSC .............................................................................. 302
BTFSS............................................................................... 302
BTG................................................................................... 303
BZ...................................................................................... 304
C
C Compilers
MPLAB C18 .............................................................. 332
MPLAB C30 .............................................................. 332
CALL ................................................................................. 304
Capture (CCP Module)...................................................... 154
Associated Registers ................................................ 156
CCP Pin Configuration .............................................. 154
CCPR1H:CCPR1L Registers .................................... 154
Prescaler ................................................................... 154
Software Interrupt ..................................................... 154
Timer1 Mode Selection ............................................. 154
Capture/Compare/PWM (CCP)......................................... 153
Capture Mode. See Capture.
CCP1 ........................................................................ 153
CCPR1H Register............................................. 153
CCPR1L Register ............................................. 153
CCP2 ........................................................................ 153
CCPR2H Register............................................. 153
CCPR2L Register ............................................. 153
Compare Mode. See Compare.
Timer Resources....................................................... 153
CKE Bit.............................................................................. 214
CKP Bit.............................................................................. 215
Clock Sources ..................................................................... 28
Effects of Power-Managed Modes .............................. 31
Selection Using OSCCON Register ............................ 28
Clocking Scheme/Instruction Cycle..................................... 63
CLRF................................................................................. 305
CLRWDT........................................................................... 305
Code Examples
Changing Between Capture Prescalers .................... 154
Computed GOTO Using an Offset Value .................... 65
Data EEPROM Read .................................................. 89
Data EEPROM Refresh Routine ................................. 90
Data EEPROM Write .................................................. 89
Erasing a Flash Program Memory Row ...................... 82
Fast Register Stack..................................................... 62
How to Clear RAM (Bank 1) Using
Indirect Addressing ............................................. 73
Implementing a Real-Time Clock Using a
Timer1 Interrupt Service ................................... 143
Initializing PORTA ..................................................... 109
Initializing PORTB ..................................................... 114
Initializing PORTC..................................................... 120
Initializing PORTD..................................................... 126
Initializing PORTE ..................................................... 131
Reading a Flash Program Memory Word ................... 81
Saving STATUS, WREG and
BSR Registers in RAM...................................... 108
Writing to Flash Program Memory ........................ 84–85
16 x 16 Signed Multiply Routine ................................. 92
16 x 16 Unsigned Multiply Routine ............................. 92
8 x 8 Signed Multiply Routine ..................................... 91
8 x 8 Unsigned Multiply Routine ................................. 91
Code Protection ........................................................ 269, 285
Associated Registers ................................................ 285
Data EEPROM.......................................................... 288
Program Memory ...................................................... 286
COMF ............................................................................... 306
Compare (CCP Module) ................................................... 155
Associated Registers ................................................ 156
CCP Pin Configuration.............................................. 155
CCPR1 Register ....................................................... 155
CCPR2 Register ....................................................... 155
Software Interrupt Mode ........................................... 155
Special Event Trigger ............................................... 155
Timer1 Mode Selection............................................. 155
Computed GOTO................................................................ 65
Configuration Bits ............................................................. 269
Configuration Register Protection..................................... 288
Control Registers
EECON1 and EECON2 .............................................. 78
Conversion Considerations............................................... 382
CPFSEQ ........................................................................... 306
CPFSGT ........................................................................... 307
CPFSLT ............................................................................ 307
Crystal Oscillator/Ceramic Resonators............................... 23
Customer Change Notification Service............................. 393
Customer Notification Service .......................................... 393
Customer Support............................................................. 393
D
D/A Bit............................................................................... 214
Data EEPROM Memory...................................................... 87
Associated Registers .................................................. 90
EEADR Register ......................................................... 87
EECON1 and EECON2 Registers .............................. 87
Operation During Code-Protect .................................. 90
Protection Against Spurious Write .............................. 89
Reading ...................................................................... 89
Using .......................................................................... 90
Write Verify ................................................................. 89
Writing ........................................................................ 89
Data Memory ...................................................................... 65
General Purpose Register File ................................... 65
Map for PIC18F2331/2431/4331/4431 ....................... 66
Special Function Registers ......................................... 67
DAW ................................................................................. 308
DC and AC Characteristics
Graphs and Tables ................................................... 371
DC Characteristics............................................................ 346
Power-Down and Supply Current ............................. 339
Supply Voltage ......................................................... 337
DCFSNZ ........................................................................... 309
DECF ................................................................................ 308
DECFSZ ........................................................................... 309
Development Support ....................................................... 331
Device Differences............................................................ 381
Device Overview................................................................... 9
Features (table) .......................................................... 11
New Core Features....................................................... 9
Other Special Features............................................... 10
Direct Addressing ............................................................... 74
E
Edge Capture Mode.......................................................... 164
Electrical Characteristics .................................................. 335
Enhanced Universal Synchronous Asynchronous
Receiver Transmitter (EUSART) .............................. 223
DS39616C-page 386
Preliminary
© 2007 Microchip Technology Inc.