Datasheet
2011 Microchip Technology Inc. Preliminary DS041441B-page 373
PIC12(L)F1840
INDEX
A
A/D
Specifications.................................................... 343, 344
Absolute Maximum Ratings .............................................. 321
AC Characteristics
Industrial and Extended ............................................ 336
Load Conditions ........................................................ 335
ACKSTAT ......................................................................... 247
ACKSTAT Status Flag ...................................................... 247
ADC .................................................................................. 127
Acquisition Requirements ......................................... 137
Associated registers.................................................. 139
Block Diagram........................................................... 127
Calculating Acquisition Time..................................... 137
Channel Selection..................................................... 128
Configuration............................................................. 128
Configuring Interrupt ................................................. 132
Conversion Clock...................................................... 128
Conversion Procedure .............................................. 132
Internal Sampling Switch (R
SS) Impedance.............. 137
Interrupts................................................................... 130
Operation .................................................................. 131
Operation During Sleep ............................................ 131
Port Configuration..................................................... 128
Reference Voltage (V
REF)......................................... 128
Source Impedance.................................................... 137
Special Event Trigger................................................ 131
Starting an A/D Conversion ...................................... 130
ADCON0 Register....................................................... 25, 133
ADCON1 Register....................................................... 25, 134
ADDFSR ........................................................................... 311
ADDWFC .......................................................................... 311
ADRESH Register............................................................... 25
ADRESH Register (ADFM = 0) ......................................... 135
ADRESH Register (ADFM = 1) ......................................... 136
ADRESL Register (ADFM = 0).......................................... 135
ADRESL Register (ADFM = 1).......................................... 136
Alternate Pin Function.......................................................111
Analog-to-Digital Converter. See ADC
ANSELA Register ............................................................. 116
APFCON0 Register........................................................... 112
Assembler
MPASM Assembler................................................... 358
B
BAUDCON Register.......................................................... 278
BF ............................................................................. 247, 249
BF Status Flag .......................................................... 247, 249
Block Diagram
Capacitive Sensing ........................................... 295, 296
Block Diagrams
(CCP) Capture Mode Operation ............................... 190
ADC .......................................................................... 127
ADC Transfer Function ............................................. 138
Analog Input Model ........................................... 138, 156
CCP PWM................................................................. 194
Clock Source............................................................... 48
Comparator............................................................... 152
Compare ................................................................... 192
Crystal Operation .................................................. 50, 51
Digital-to-Analog Converter (DAC)............................ 142
EUSART Receive ..................................................... 268
EUSART Transmit .................................................... 267
External RC Mode ...................................................... 51
Fail-Safe Clock Monitor (FSCM)................................. 59
Generic I/O Port........................................................ 111
Interrupt Logic............................................................. 77
On-Chip Reset Circuit................................................. 69
Peripheral Interrupt Logic ........................................... 78
PIC12(L)F1840 ..................................................... 10, 14
PWM (Enhanced) ..................................................... 198
Resonator Operation .................................................. 50
Timer0 ...................................................................... 159
Timer1 ...................................................................... 163
Timer1 Gate.............................................. 168, 169, 170
Timer2 ...................................................................... 175
Voltage Reference.................................................... 123
Voltage Reference Output Buffer Example .............. 142
BORCON Register.............................................................. 71
BRA .................................................................................. 312
Break Character (12-bit) Transmit and Receive ............... 287
Brown-out Reset (BOR)...................................................... 71
Specifications ........................................................... 341
Timing and Characteristics ....................................... 340
C
C Compilers
MPLAB C18.............................................................. 358
CALL................................................................................. 313
CALLW ............................................................................. 313
Capacitive Sensing ........................................................... 295
Associated registers w/ Capacitive Sensing............. 302
Specifications ........................................................... 353
Capture Module. See Enhanced Capture/Compare/
PWM (ECCP)
Capture/Compare/PWM ................................................... 189
Capture/Compare/PWM (CCP)
Associated Registers w/ Capture ............................. 191
Associated Registers w/ Compare ........................... 193
Associated Registers w/ PWM ......................... 197, 206
Capture Mode........................................................... 190
CCPx Pin Configuration............................................ 190
Compare Mode......................................................... 192
CCPx Pin Configuration.................................... 192
Software Interrupt Mode........................... 190, 192
Special Event Trigger ....................................... 192
Timer1 Mode Resource ............................ 190, 192
Prescaler .................................................................. 190
PWM Mode
Duty Cycle ........................................................ 195
Effects of Reset ................................................ 197
Example PWM Frequencies and
Resolutions, 20 MHZ................................ 196
Example PWM Frequencies and
Resolutions, 32 MHZ................................ 196
Example PWM Frequencies and
Resolutions, 8 MHz .................................. 196
Operation in Sleep Mode.................................. 197
Resolution ........................................................ 196
System Clock Frequency Changes .................. 197
PWM Operation ........................................................ 194
PWM Overview......................................................... 194
PWM Period ............................................................. 195
PWM Setup .............................................................. 195
CCP1AS Register ............................................................. 208
CCP1CON Register............................................................ 29
CCPR1H Register............................................................... 29