PIC12F629/675
DS41190F-page 128 2009 Microchip Technol ogy Inc.
DECFSZ......................................................................75
GOTO .........................................................................75
INCF............................................................................75
INCFSZ.......................................................................76
IORLW ........................................................................76
IORWF........................................................................76
RETURN.....................................................................77
RLF.............................................................................77
RRF.............................................................................77
SLEEP ........................................................................77
SUBLW.......................................................................77
SUBWF.......................................................................77
SWAPF.......................................................................78
XORLW.......................................................................78
XORWF.......................................................................78
Summary Ta b le...... ....... .......... ........... .......... ...... .........72
Internal 4 MHz Oscillator.....................................................57
Internal Sampling Switch (Rss) Impedance.... .... .. .. .. .. .. . .. .. .47
Inte r n e t Ad d r e ss............. ........... .......... ........... .......... .........131
Interrupts.............................................................................64
A/D C on v e r te r........ ....... .......... ........... .......... ........... ....66
Comparator.................................................................66
Context Saving ............................................................67
GP2/INT......................................................................66
GPIO...........................................................................66
Summary o f Re g isters .... .. .............. ........... .......... .......67
TMR0 ..........................................................................66
M
MCLR..................................................................................59
Dat a E EPROM Me mory...... .......... ........... .......... .........49
....................................................131, 126, 80, 79, 82, 81, 80
O
OPC ODE Fiel d Descriptions... ...... ...... ....... ...... .......... ....... ..71
Oscillator Config urations.....................................................56
Oscilla t o r Sta r t- u p Time r ( O ST) .............. ....... ...... ...... ....... ..59
P
Packaging .........................................................................115
Details.......................................................................116
Marking.....................................................................115
PCL and PCLATH............. .. . .. .... .. .... .... .. ................... .. ........19
Computed GOTO........................................................19
Stack...........................................................................19
Pin Descriptions and Diagrams.............. .. . .. .. .. .. .. .. .... .. .. ......24
Pinout Descriptions
PIC12F629....................................................................8
PIC12F675....................................................................8
Pow e r C ontro l/Sta tu s Regis t e r (PCON )..... .. .............. .........60
Power-Down Mode (SLEEP) .. .. .. .... .. .. .... .. . .. .. .. .... .. .. .... .. . .. .. .69
Pow e r- on Res et (POR)................. ............... .......... .............59
Pow e r- u p Timer (PWRT)....... .. .......... ........... .......... ........... ..59
Prescaler.............................................................................31
Switc h in g Pr e scaler Assig n me n t........ .......... ...... .........31
Program Memory Organization.......... .. .... ............. .... .. ..........9
Programming, Device Instructions......................................71
R
RC Oscillator.......................................................................57
Reader Response..... .... .. .. .. . .. .. .... .. .. .. .... .. . .. .. .. .. .... .. .. .... ....132
READ-MODIFY-WRITE OPERATIONS..............................71
Registers
ADCON0 (A/D Control)...............................................45
ANSEL (Analog Select)...............................................46
CMCON (Comparator Control) ...................................37
CONF IG (Co n figur ation W o rd )........... .............. ...........54
EEADR (EEPROM Address) ......................................49
EECO N 1 (EEPR O M Contr o l)...... ...... .......... ........... .... 50
EEDAT (EEPROM Data)............................................49
INTCON (Interrupt Control).........................................15
IOCB (Interrupt-on-Change GPIO)............................. 23
MapsPIC12F629 ......................................................... 10
PIC12F675 ......................................................... 10
OPTI O N _ R EG ( O p tio n )............. .......... ........... ...... 14, 30
OSCCAL (Oscillator Calibration) ................................ 18
PCON (Power Control)............................................... 18
PIE1 (Peripheral Interrupt Enable 1)..... .... .. ................ 16
PIR1 (Peripheral Interrupt 1).... . .. .. .. .... .. .. .... .. . .. .. .. .... .. . 17
STATUS ..................................................................... 13
T1CON ( T im e r1 C o n tr o l)...... ....... ...... ...... ........... ...... ..34
VRCON (Voltage Reference Control). .. .... .. .. . .. .. .. .. .... . 42
WPU (Weak Pull-up)................................................... 22
RESET................................................................................ 58
Revision History................................................................ 125
S
Soft wa re Sim u la tor (MPLAB SIM) .. ... .......... ........... .......... ..81
Spe cial Featu r e s o f th e CP U................. ...... ........... .......... ..53
Special Function Registers................................................. 10
Special Functions Registers Summary............................... 11
T
Time-out Sequence ............................................................ 60
Timer0................................................................................. 29
Asso ciated Reg i st e rs............ ............... ........... .......... ..31
External Clock............................................................. 30
Interrupt ...................................................................... 29
Operation.................................................................... 29
T0CKI ......................................................................... 30
Timer1
Asso ciated Reg i st e rs............ ............... ........... .......... ..35
Asynchronous Counter Mode....... .. .. .... .. .. .. ............... . 35
Reading and Writing............. .... .. .... .. .... . .. .. .... .. ... 35
Interrupt ...................................................................... 33
Mod es o f O p e rations.......... ........... .......... ....... .......... ..33
Operation During SLEEP ............................................ 35
Oscillator..................................................................... 35
Prescaler .................................................................... 33
Timer1 Module with Gate Control............. .. .... .. .... . .. .. .... .. ... 32
Timing Diagrams
CLKOUT and I/O ....... .... .. .. .... .. ............. .... .. .. . .. .. .. .... .. . 96
External Clock............................................................. 94
INT Pin Interrupt......................................................... 66
PIC12F675 A/D Conversion (Normal Mode) ............ 102
PIC12F675 A/D Conversion Timing (SLEEP Mode). 103
RESET, Watchdog Timer, Oscillator Start-up Timer
and Power-up Timer.. .. .... .. .. .... ............... .. .... .............. 97
Time-out Sequence on Power-up (MCLR not Tied to
VDD)/Case 1................................................................ 63
Case 2................................................................ 63
Time-out Sequence on Power-up
(MCLR Tied to VDD).................................................... 63
Timer0 and Timer1 External Clock............................. 99
Timer1 Incrementing Edge......................................... 33
Timing Pa r a me ter Symbol o g y ...... ........... ...... ........... ...... .... 93
V
Voltage Reference Accuracy/Error..................................... 41