![](http://datasheet.mmic.net.cn/Microchip-Technology/PIC12F1840-I-MF_datasheet_99417/PIC12F1840-I-MF_6.png)
PIC12(L)F1840
DS41441B-page 6
Preliminary
2011 Microchip Technology Inc.
1.0
Device Overview .......................................................................................................................................................................... 9
2.0
Enhanced Mid-Range CPU ........................................................................................................................................................ 13
3.0
Memory Organization ................................................................................................................................................................. 15
4.0
Device Configuration .................................................................................................................................................................. 41
5.0
Oscillator Module (With Fail-Safe Clock Monitor)....................................................................................................................... 47
6.0
Reference Clock Module ............................................................................................................................................................ 57
7.0
Resets ........................................................................................................................................................................................ 69
8.0
Interrupts .................................................................................................................................................................................... 77
9.0
Power-Down Mode (Sleep) ........................................................................................................................................................ 89
10.0 Watchdog Timer (WDT) ............................................................................................................................................................. 93
11.0 Data EEPROM and Flash Program Memory Control ................................................................................................................. 97
12.0 I/O Ports ................................................................................................................................................................................... 111
13.0 Interrupt-on-Change ................................................................................................................................................................. 119
14.0 Fixed Voltage Reference (FVR) ............................................................................................................................................... 123
15.0 Temperature Indicator .............................................................................................................................................................. 125
16.0 Analog-to-Digital Converter (ADC) Module .............................................................................................................................. 127
17.0 Digital-to-Analog Converter (DAC) Module .............................................................................................................................. 141
18.0 SR Latch................................................................................................................................................................................... 145
19.0 Comparator Module.................................................................................................................................................................. 151
20.0 Timer0 Module ......................................................................................................................................................................... 159
21.0 Timer1 Module ......................................................................................................................................................................... 163
22.0 Timer2 Modules........................................................................................................................................................................ 175
23.0 Data Signal Modulator (DSM) .................................................................................................................................................. 179
24.0 Capture/Compare/PWM Module .............................................................................................................................................. 189
25.0 Master Synchronous Serial Port (MSSP) Module .................................................................................................................... 211
26.0 Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART) ............................................................... 267
27.0 Capacitive Sensing (CPS) Module ........................................................................................................................................... 295
28.0 In-Circuit Serial Programming (ICSP) ................................................................................................................................ 303
29.0 Instruction Set Summary .......................................................................................................................................................... 307
30.0 Electrical Specifications............................................................................................................................................................ 321
31.0 DC and AC Characteristics Graphs and Tables....................................................................................................................... 355
32.0 Development Support............................................................................................................................................................... 357
33.0 Packaging Information.............................................................................................................................................................. 361
Appendix A: Revision History............................................................................................................................................................. 371
Appendix B: Device Differences......................................................................................................................................................... 371
Index .................................................................................................................................................................................................. 371
The Microchip Web Site ..................................................................................................................................................................... 379
Customer Change Notification Service .............................................................................................................................................. 379
Customer Support .............................................................................................................................................................................. 379
Reader Response .............................................................................................................................................................................. 380
Product Identification System............................................................................................................................................................. 381