DS40039E-page 122 © 2007 Microchip Technology Inc.
INCFSZ.......................................................................75
IORLW ........................................................................75
IORWF........................................................................75
MOVF..........................................................................76
MOVLW ......................................................................76
MOVWF ......................................................................76
NOP............................................................................76
RETFIE .......................................................................76
RETLW .......................................................................76
RETURN.....................................................................77
RLF.............................................................................77
RRF.............................................................................77
SLEEP ........................................................................77
SUBLW .......................................................................77
SUBWF.......................................................................77
SWAPF .......................................................................78
XORLW.......................................................................78
XORWF.......................................................................78
Summary Table...... ............... ............... ........ ...............72
Internal 4 MHz Oscillator.....................................................56
Internal Sampling Switch (Rss) Impedance.... .... .. .. .. .... ......47
Inte r n e t Ad d r e s s..... .. ............... .............. ..................... .......125
Interrupts.............................................................................63
A/D C onverter.... .. ............... ..................... ............... ....65
Comparator.................................................................65
Context Saving ............................................................66
PORTA........................................................................65
RA2/INT......................................................................65
Summary of Reg isters ...... ..................... .....................66
TMR0 ..........................................................................65
M
MCLR..................................................................................58
Memory Organization
Dat a E EPROM Memory........ ..................... ............... ..4 9
Mic rochip Internet Web Site......................... .............. .......125
Migr a tin g fr o m o th e r PI Cmicro De v i c es ..... .............. .........120
MPLAB ASM30 Assembler, Linker, Librarian .....................80
MPLAB ICD 2 In-Circuit Debugger......................................81
MPLAB ICE 2000 High-Performance Universal
In-Cir cuit Emu la to r........ ......... ..................... .............. .........81
MPLAB ICE 4000 High-Performance Universal
In-Cir cuit Emu la to r........ ......... ..................... .............. .........81
MPLAB Integrated Development Environment Software ....79
MPLAB PM3 Device Programmer.......................................81
MPLI N K O b je c t Li n ke r / M P L IB Object Lib r a r ia n ... ........ .......80
O
OPC OD E Fie ld Descr ip tions... .. ........ ......... .............. ......... ..7 1
Oscillator Configurations.....................................................55
Oscilla t o r Sta r t- u p Time r ( OST) ........ ......... .. ........ ........ .......58
P
Packaging .........................................................................115
Details.......................................................................116
Marking.....................................................................115
PCL and PCLATH...................... .... .... .... ..................... ........17
Computed GOTO........................................................17
Stack...........................................................................17
PICSTART Plus Deve lopme n t Progra mm e r ......... ......... .....82
Pinout Descriptions
PIC16F630....................................................................6
PIC16F676....................................................................6
PORTA
Additional Pin Functions .............................................19
Interrupt-on-Change............................................20
Weak Pull-up.......................................................19
Asso c i a te d R e g i st e r s............ ..................... .................25
Pin Descriptions and Diagrams .. .... .. .. .... .. .. ............... . 22
PORTA and TRISIO Registers......... .. .... .... .... .... ................ 19
PORTC............................................................................... 26
Asso c i a te d R e g isters........ ..................... ..................... 27
Power Control/Status Register (PCON).............................. 59
Power-Down Mode (SLEEP). .. .. .... .. . .. .. .... .. .... .. .. ................ 68
Power-on Reset (POR)....................................................... 58
Power-up Timer (PWRT).................................................... 58
Prescaler............................................................................. 31
Switching Pres ca ler Assignment ...... ...... ...... ..... ...... ... 3 1
Program Memory Organization...... .. . .. .. .... .. .... .. .. ................. . 7
Programming, Device Instructions...................................... 71
R
RC Oscillator....................................................................... 56
Reader Response... .... ............... .... .. . .. .. .... .. .... .. .... ............ 126
READ-MODIFY-WRITE OPERATIONS............................. 71
Registers
ADCON0 (A/D Control)....... ............... ............... .......... 45
ADCON1..................................................................... 45
CMCON (Co mp a r a to r Co n trol)........ ........ ................... 37
CONFIG (Con figur a ti o n Word) ....... ...... ...... ............... . 54
EEADR (EEPROM Address)......................................49
EECO N 1 (EEPROM Control)...... ........ ............... ........50
EEDAT (EEPROM Data)............................................49
INTCON (Interrupt Control)......................................... 13
IOCA (Interrupt-on-Change PORTA).......................... 21
MapsPIC16F630 ........................................................... 8
PIC16F676 ........................................................... 8
OPTI O N _ R EG ( O p tion ).... ......... .............. ......... .... 12, 30
OSCCAL (Oscillator Calibration) ................................ 16
PCON (Power Control)............................................... 16
PIE1 (Peripheral Interrupt Enable 1)......... .... .............. 14
PIR1 (Peripheral Interrupt 1)................... .... ................ 15
PORTC....................................................................... 27
STATUS ..................................................................... 11
T1CON ( Timer1 Con tr o l)...... ......... ........ ............... ...... 34
TRISC......................................................................... 27
VRCON (Voltage Reference Control)........... .............. 42
WPU A ( W e a k Pu ll-up PO RTA).................... ............... 20
RESET................................................................................ 57
Revision History................................................................ 119
S
Soft wa r e Simulat or ( M P L AB SIM) ..................... ............... ..80
Spe cial Featur e s o f th e CP U................. .............. ............... 53
Special Function Registers................................................... 8
T
Time-out Sequence ............................................................ 59
Timer0................................................................................. 29
Asso c i a te d R e g i st e r s...... ............... ..................... ........ 31
External Clock............................................................. 30
Interrupt ...................................................................... 29
Operation.................................................................... 29
T0CKI ......................................................................... 30
Timer1
Asso c i a te d R e g i st e r s...... ............... ..................... ........ 35
Asynchronous Counter Mode......... .. .. .... .. .... .............. 35
Reading and Writing......... .. .... .... .. .... .... . .. .... .... ... 35
Interrupt ...................................................................... 33
Mod es o f Op e ra tions........ ......... .............. ................... 33
Operation During SLEEP............................................ 35
Oscillator..................................................................... 35
Prescaler .................................................................... 33
Timer1 Module with Gate Control..................... .... . .... .... ..... 32
Timing Diagrams