Datasheet
2010-2012 Microchip Technology Inc. DS41413C-page 427
PIC12(L)F1822/PIC16(L)F1823
INDEX
A
A/D
Specifications............................................................ 363
Absolute Maximum Ratings .............................................. 341
AC Characteristics
Industrial and Extended ............................................ 356
Load Conditions ........................................................ 355
ACKSTAT ......................................................................... 267
ACKSTAT Status Flag ...................................................... 267
ADC .................................................................................. 141
Acquisition Requirements ......................................... 151
Associated registers.................................................. 153
Block Diagram........................................................... 141
Calculating Acquisition Time..................................... 151
Channel Selection..................................................... 142
Configuration............................................................. 142
Configuring Interrupt ................................................. 146
Conversion Clock...................................................... 142
Conversion Procedure .............................................. 146
Internal Sampling Switch (R
SS) Impedance.............. 151
Interrupts................................................................... 144
Operation .................................................................. 145
Operation During Sleep ............................................ 145
Port Configuration..................................................... 142
Reference Voltage (V
REF+)....................................... 142
Source Impedance.................................................... 151
Special Event Trigger................................................ 145
Starting an A/D Conversion ......................................144
ADCON0 Register....................................................... 32, 147
ADCON1 Register....................................................... 32, 148
ADDFSR ........................................................................... 331
ADDWFC .......................................................................... 331
ADRESH Register............................................................... 32
ADRESH Register (ADFM = 0) ......................................... 149
ADRESH Register (ADFM = 1) ......................................... 150
ADRESL Register (ADFM = 0).......................................... 149
ADRESL Register (ADFM = 1).......................................... 150
Alternate Pin Function....................................................... 122
Analog-to-Digital Converter. See ADC
ANSELA Register ............................................................. 127
ANSELC Register ............................................................. 131
APFCON0 Register........................................................... 123
Assembler
MPASM Assembler................................................... 402
Automatic Context Saving................................................... 92
B
BAUDCON Register.......................................................... 296
BF ............................................................................. 267, 269
BF Status Flag .......................................................... 267, 269
Block Diagram
Capacitive Sensing ........................................... 313, 314
Block Diagrams
(CCP) Capture Mode Operation ............................... 206
ADC .......................................................................... 141
ADC Transfer Function ............................................. 152
Analog Input Model ........................................... 152, 171
CCP PWM................................................................. 210
Clock Source............................................................... 56
Comparator ............................................................... 166
Compare ................................................................... 208
Crystal Operation.................................................. 58, 59
Digital-to-Analog Converter (DAC)............................ 156
EUSART Receive ..................................................... 286
EUSART Transmit .................................................... 285
External RC Mode ...................................................... 59
Fail-Safe Clock Monitor (FSCM)................................. 67
Generic I/O Port........................................................ 121
Interrupt Logic............................................................. 87
On-Chip Reset Circuit................................................. 77
Peripheral Interrupt Logic ........................................... 88
PIC12(L)F1822/16(L)F1823 ................................. 12, 20
PWM (Enhanced) ..................................................... 214
Resonator Operation .................................................. 58
Timer0 ...................................................................... 175
Timer1 ...................................................................... 179
Timer1 Gate.............................................. 184, 185, 186
Timer2 ...................................................................... 191
Voltage Reference.................................................... 137
Voltage Reference Output Buffer Example .............. 156
BORCON Register.............................................................. 80
BRA .................................................................................. 332
Break Character (12-bit) Transmit and Receive ............... 305
Brown-out Reset (BOR)...................................................... 80
Specifications ........................................................... 361
Timing and Characteristics ....................................... 360
C
C Compilers
MPLAB C18.............................................................. 402
CALL................................................................................. 333
CALLW ............................................................................. 333
Capacitive Sensing ........................................................... 313
Associated registers w/ Capacitive Sensing............. 321
Specifications ........................................................... 372
Capture Module. See Enhanced Capture/Compare/
PWM (ECCP)
Capture/Compare/PWM ................................................... 205
Capture/Compare/PWM (CCP)
Associated Registers w/ Capture ............................. 207
Associated Registers w/ Compare ........................... 209
Associated Registers w/ PWM ......................... 213, 227
Capture Mode........................................................... 206
CCPx Pin Configuration............................................ 206
Compare Mode......................................................... 208
CCPx Pin Configuration.................................... 208
Software Interrupt Mode........................... 206, 208
Special Event Trigger ....................................... 208
Timer1 Mode Resource ............................ 206, 208
Prescaler .................................................................. 206
PWM Mode
Duty Cycle ........................................................ 211
Effects of Reset ................................................ 213
Example PWM Frequencies and
Resolutions, 20 MHZ................................ 212
Example PWM Frequencies and
Resolutions, 32 MHZ................................ 212
Example PWM Frequencies and
Resolutions, 8 MHz .................................. 212
Operation in Sleep Mode.................................. 213
Resolution ........................................................ 212
System Clock Frequency Changes .................. 213
PWM Operation ........................................................ 210
PWM Overview......................................................... 210
PWM Period ............................................................. 211
PWM Setup .............................................................. 211
CCP1AS Register ............................................................. 229