PIC12F683 Data Sheet - Microchip
PIC12F683 Data Sheet - Microchip
PIC12F683 Data Sheet - Microchip
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>PIC12F683</strong><br />
Indirect Addressing .....................................................18<br />
Initializing GPIO .......................................................... 31<br />
Saving STATUS and W Registers in RAM ................. 95<br />
Ultra Low-Power Wake-up Initialization ...................... 35<br />
Write Verify ................................................................. 73<br />
Code Protection .................................................................. 99<br />
Comparator ......................................................................... 51<br />
C2OUT as T1 Gate .....................................................57<br />
Configurations............................................................. 53<br />
I/O Operating Modes................................................... 53<br />
Interrupts..................................................................... 55<br />
Operation .............................................................. 51, 54<br />
Operation During Sleep .............................................. 56<br />
Response Time........................................................... 54<br />
Synchronizing COUT w/Timer1 .................................. 57<br />
Comparator Module<br />
Associated registers.................................................... 59<br />
Comparator Voltage Reference (CVREF)<br />
Response Time........................................................... 54<br />
Comparator Voltage Reference (CVREF) ............................58<br />
Effects of a Reset........................................................ 56<br />
Specifications............................................................ 132<br />
Comparators<br />
C2OUT as T1 Gate .....................................................45<br />
Effects of a Reset........................................................ 56<br />
Specifications............................................................ 132<br />
Compare Module. See Capture/Compare/PWM (CCP)<br />
CONFIG Register................................................................ 84<br />
Configuration Bits................................................................ 83<br />
CPU Features ..................................................................... 83<br />
Customer Change Notification Service ............................. 171<br />
Customer Notification Service........................................... 171<br />
Customer Support ............................................................. 171<br />
D<br />
<strong>Data</strong> EEPROM Memory<br />
Associated Registers .................................................. 74<br />
Code Protection .................................................... 71, 74<br />
<strong>Data</strong> Memory Organization ................................................... 7<br />
Map of the <strong>PIC12F683</strong>.................................................. 8<br />
DC and AC Characteristics<br />
Graphs and Tables ................................................... 137<br />
DC Characteristics<br />
Extended and Industrial ............................................ 121<br />
Industrial and Extended ............................................ 117<br />
Development Support ....................................................... 111<br />
Device Overview ................................................................... 5<br />
E<br />
EEADR Register ................................................................. 71<br />
EECON1 Register ............................................................... 72<br />
EECON2 Register ............................................................... 72<br />
EEDAT Register.................................................................. 71<br />
EEPROM <strong>Data</strong> Memory<br />
Avoiding Spurious Write.............................................. 74<br />
Reading....................................................................... 73<br />
Write Verify ................................................................. 73<br />
Writing......................................................................... 73<br />
Effects of Reset<br />
PWM mode ................................................................. 80<br />
Electrical Specifications .................................................... 115<br />
Enhanced Capture/Compare/PWM (ECCP)<br />
Specifications............................................................ 131<br />
Errata .................................................................................... 3<br />
F<br />
Fail-Safe Clock Monitor ...................................................... 29<br />
Fail-Safe Condition Clearing....................................... 29<br />
Fail-Safe Detection ..................................................... 29<br />
Fail-Safe Operation..................................................... 29<br />
Reset or Wake-up from Sleep .................................... 29<br />
Firmware Instructions ....................................................... 101<br />
Fuses. See Configuration Bits<br />
G<br />
General Purpose Register File ............................................. 8<br />
GPIO................................................................................... 31<br />
Additional Pin Functions ............................................. 32<br />
ANSEL Register ................................................. 32<br />
Interrupt-on-Change ........................................... 32<br />
Ultra Low-Power Wake-up............................ 32, 35<br />
Weak Pull-up ...................................................... 32<br />
Associated Registers.................................................. 39<br />
GP0 ............................................................................ 36<br />
GP1 ............................................................................ 37<br />
GP2 ............................................................................ 37<br />
GP3 ............................................................................ 38<br />
GP4 ............................................................................ 38<br />
GP5 ............................................................................ 39<br />
Pin Descriptions and Diagrams .................................. 36<br />
Specifications ........................................................... 127<br />
GPIO Register .................................................................... 31<br />
I<br />
ID Locations........................................................................ 99<br />
In-Circuit Debugger........................................................... 100<br />
In-Circuit Serial Programming (ICSP)............................... 100<br />
Indirect Addressing, INDF and FSR Registers ................... 18<br />
Instruction Format............................................................. 101<br />
Instruction Set................................................................... 101<br />
ADDLW..................................................................... 103<br />
ADDWF..................................................................... 103<br />
ANDLW..................................................................... 103<br />
ANDWF..................................................................... 103<br />
BCF .......................................................................... 103<br />
BSF........................................................................... 103<br />
BTFSC...................................................................... 103<br />
BTFSS ...................................................................... 104<br />
CALL......................................................................... 104<br />
CLRF ........................................................................ 104<br />
CLRW ....................................................................... 104<br />
CLRWDT .................................................................. 104<br />
COMF ....................................................................... 104<br />
DECF........................................................................ 104<br />
DECFSZ ................................................................... 105<br />
GOTO ....................................................................... 105<br />
INCF ......................................................................... 105<br />
INCFSZ..................................................................... 105<br />
IORLW...................................................................... 105<br />
IORWF...................................................................... 105<br />
MOVF ....................................................................... 106<br />
MOVLW .................................................................... 106<br />
MOVWF.................................................................... 106<br />
NOP.......................................................................... 106<br />
RETFIE..................................................................... 107<br />
RETLW ..................................................................... 107<br />
RETURN................................................................... 107<br />
RLF........................................................................... 108<br />
RRF .......................................................................... 108<br />
SLEEP ...................................................................... 108<br />
DS41211D-page 168<br />
© 2007 <strong>Microchip</strong> Technology Inc.