Datasheet

PIC18F46J11 FAMILY
DS39932D-page 522 2011 Microchip Technology Inc.
Disabling in Sleep Mode ............................................ 65
BSF .................................................................................. 425
BTFSC .............................................................................426
BTFSS .............................................................................. 426
BTG .................................................................................. 427
BZ ..................................................................................... 428
C
C Compilers
MPLAB C18 ............................................................. 464
MPLAB C30 ............................................................. 464
Calibration (A/D Converter) .............................................. 359
CALL ................................................................................428
CALLW .............................................................................457
Capture (ECCP Module) .................................................. 249
CCPRxH:CCPRxL Registers ................................... 249
ECCP Pin Configuration .......................................... 249
Prescaler ..................................................................250
Software Interrupt .................................................... 249
Timer1/Timer3 Mode Selection ................................ 249
Clock Sources .................................................................... 42
Effects of Power-Managed Modes ............................. 46
Selecting the 31 kHz Source ......................................43
Selection Using OSCCON Register ........................... 43
CLRF ................................................................................429
CLRWDT ..........................................................................429
Code Examples
16 x 16 Signed Multiply Routine .............................. 114
16 x 16 Unsigned Multiply Routine .......................... 114
512-Byte SPI Master Mode Init and Transfer ........... 289
8 x 8 Signed Multiply Routine .................................. 113
8 x 8 Unsigned Multiply Routine .............................. 113
A/D Calibration Routine ...........................................359
Calculating Baud Rate Error .................................... 332
Capacitance Calibration Routine ............................. 386
Capacitive Touch Switch Routine ............................ 388
Changing Between Capture Prescalers ................... 250
Communicating with the +5V System ...................... 132
Computed GOTO Using an Offset Value ................... 81
Configuring EUSART2 Input and Output Functions . 154
Current Calibration Routine ..................................... 384
Erasing Flash Program Memory ..............................108
Fast Register Stack .................................................... 81
How to Clear RAM (Bank 1) Using Indirect
Addressing ......................................................... 97
Initializing PORTA .................................................... 135
Initializing PORTB .................................................... 138
Initializing PORTC .................................................... 142
Initializing PORTD .................................................... 145
Initializing PORTE .................................................... 148
Loading the SSP1BUF (SSP1SR) Register ............. 275
Reading a Flash Program Memory Word ................ 107
Saving STATUS, WREG and BSR Registers in
RAM .................................................................130
Setup for CTMU Calibration Routines ...................... 383
Single-Word Write to Flash Program Memory ......... 111
Two-Word Instructions ............................................... 83
Ultra Low-Power Wake-up Initialization ..................... 62
Writing to Flash Program Memory ........................... 110
Code Protection ............................................................... 395
COMF ............................................................................... 430
Comparator ...................................................................... 361
Analog Input Connection Considerations ................. 364
Associated Registers ............................................... 368
Configuration ............................................................ 365
Control .....................................................................365
Effects of a Reset .................................................... 368
Enable and Input Selection ...................................... 365
Enable and Output Selection ................................... 365
Interrupts ................................................................. 367
Operation ................................................................. 364
Operation During Sleep ........................................... 368
Registers ................................................................. 361
Response Time ........................................................ 364
Comparator Specifications ............................................... 482
Comparator Voltage Reference ....................................... 369
Accuracy and Error .................................................. 371
Associated Registers ............................................... 371
Configuring .............................................................. 370
Connection Considerations ...................................... 371
Effects of a Reset .................................................... 371
Operation During Sleep ........................................... 371
Compare (ECCP Module) ................................................ 251
CCPRx Register ...................................................... 251
Pin Configuration ..................................................... 251
Software Interrupt .................................................... 251
Special Event Trigger ...................................... 223, 251
Timer1/Timer3 Mode Selection ................................ 251
Compare (ECCPx Module)
Special Event Trigger .............................................. 358
Computed GOTO ............................................................... 81
Configuration Bits ............................................................ 395
Configuration Mismatch (CM) Reset .................................. 66
Configuration Register Protection .................................... 411
Configuration Registers
Bits and Device IDs ................................................. 396
Mapping Flash Configuration Words ....................... 396
Core Features
Easy Migration ........................................................... 12
Expanded Memory ..................................................... 11
Extended Instruction Set ........................................... 12
nanoWatt Technology ................................................ 11
Oscillator Options and Features ................................ 11
CPFSEQ .......................................................................... 430
CPFSGT .......................................................................... 431
CPFSLT ........................................................................... 431
Crystal Oscillator/Ceramic Resonators .............................. 39
CTMU
Associated Registers ............................................... 393
Calibrating ............................................................... 381
Creating a Delay with ............................................... 390
Effects of a Reset .................................................... 390
Initialization .............................................................. 381
Measuring Capacitance with .................................... 387
Measuring Time with ................................................ 389
Operation ................................................................. 380
Operation During Idle Mode ..................................... 390
Operation During Sleep Mode ................................. 390
CTMU Current Source Specifications .............................. 482
Customer Change Notification Service ............................ 533
Customer Notification Service ......................................... 533
Customer Support ............................................................ 533
D
Data Addressing Modes .................................................... 97
Comparing Addressing Modes with the
Extended Instruction Set Enabled ................... 101
Direct ......................................................................... 97
Indexed Literal Offset .............................................. 100
BSR ................................................................. 102
Instructions Affected ........................................ 101
Mapping Access Bank ..................................... 102