Datasheet
PIC12F635/PIC16F636/639
DS41232D-page 228 © 2007 Microchip Technology Inc.
INTOSC ..............................................................39
INTOSCIO...........................................................39
LFINTOSC ..........................................................41
Clock Switching...................................................................43
CMCON0 Register ..............................................................80
CMCON1 Register ..............................................................82
Code Examples
Assigning Prescaler to Timer0....................................62
Assigning Prescaler to WDT.......................................62
Data EEPROM Read ..................................................93
Data EEPROM Write ..................................................93
Indirect Addressing .....................................................32
Initializing PORTA.......................................................47
Initializing PORTC.......................................................57
Saving Status and W Registers in RAM ...................142
Ultra Low-Power Wake-up Initialization ...................... 51
Write Verify ................................................................. 93
Code Protection ................................................................146
Comparator .........................................................................71
Associated registers....................................................85
C2OUT as T1 Gate.....................................................81
Configurations.............................................................74
I/O Operating Modes...................................................74
Interrupts.....................................................................77
Operation ..............................................................71, 76
Operation During Sleep ..............................................79
Response Time...........................................................77
Synchronizing CxOUT w/Timer1.................................81
Comparator Voltage Reference (CV
REF)
Response Time...........................................................77
Specifications....................................................185, 186
Comparator Voltage Reference (CV
REF) ............................83
Effects of a Reset........................................................79
Specifications............................................................185
Comparators
C2OUT as T1 Gate.....................................................66
Effects of a Reset........................................................79
Specifications............................................................185
CONFIG Register..............................................................130
Configuration Bits..............................................................129
CPU Features ...................................................................129
Customer Change Notification Service ............................. 223
Customer Notification Service...........................................223
Customer Support .............................................................223
D
Data EEPROM Memory
Associated Registers ..................................................94
Code Protection ....................................................91, 94
Protection Against Spurious Write ..............................94
Using...........................................................................93
Data Memory....................................................................... 17
DC and AC Characteristics
Graphs and Tables ...................................................191
DC Characteristics
Extended (PIC12F635/PIC16F636) ..........................169
Industrial (PIC12F635/PIC16F636)...........................167
Industrial (PIC16F639)..............................................174
Industrial/Extended (PIC12F635/PIC16F636) ..166, 171
Industrial/Extended (PIC16F639)......................173, 175
Development Support .......................................................159
Device Overview ...................................................................9
E
EEADR Register ................................................................. 91
EECON1 (EEPROM Control 1) Register ............................92
EECON1 Register............................................................... 92
EECON2 (EEPROM Control 2) Register............................ 92
EEDAT Register ................................................................. 91
EEPROM Data Memory
Reading ...................................................................... 93
Write Verify................................................................. 93
Writing ........................................................................ 93
Electrical Specifications .................................................... 163
Errata.................................................................................... 7
F
Fail-Safe Clock Monitor ...................................................... 45
Fail-Safe Condition Clearing....................................... 45
Fail-Safe Detection ..................................................... 45
Fail-Safe Operation..................................................... 45
Reset or Wake-up from Sleep .................................... 45
Firmware Instructions ....................................................... 149
Fuses. See Configuration Bits
G
General Purpose Register (GPR) File ................................ 18
I
ID Locations...................................................................... 146
In-Circuit Debugger........................................................... 147
In-Circuit Serial Programming (ICSP)............................... 147
Indirect Addressing, INDF and FSR Registers ................... 32
Instruction Format............................................................. 149
Instruction Set................................................................... 149
ADDLW..................................................................... 151
ADDWF..................................................................... 151
ANDLW..................................................................... 151
ANDWF..................................................................... 151
BCF .......................................................................... 151
BSF........................................................................... 151
BTFSC...................................................................... 151
BTFSS...................................................................... 152
CALL......................................................................... 152
CLRF ........................................................................ 152
CLRW ....................................................................... 152
CLRWDT .................................................................. 152
COMF ....................................................................... 152
DECF........................................................................ 152
DECFSZ ................................................................... 153
GOTO....................................................................... 153
INCF ......................................................................... 153
INCFSZ..................................................................... 153
IORLW...................................................................... 153
IORWF...................................................................... 153
MOVF ....................................................................... 154
MOVLW.................................................................... 154
MOVWF.................................................................... 154
NOP.......................................................................... 154
RETFIE..................................................................... 155
RETLW..................................................................... 155
RETURN................................................................... 155
RLF........................................................................... 156
RRF .......................................................................... 156
SLEEP...................................................................... 156
SUBLW..................................................................... 156
SUBWF..................................................................... 157
SWAPF..................................................................... 157
XORLW .................................................................... 157
XORWF .................................................................... 157
Summary Table ........................................................ 150
INTCON Register................................................................ 28