PIC16F627A/628A/648A
DS40044B-page 162 Preliminary 2004 Microchip Technology Inc.
E
EECON1 regi ster ..... .......... ................... ................... ...........90
EECON2 regi ster ..... .......... ................... ................... ...........90
Errata ....................................................................................3
Evalu a tion and Programming To o l s........ ..........................129
External Crystal Oscillator Circuit........................................95
G
General-Purpose Register File. ...........................................15
GOTO Instruction..............................................................117
I
I/O Ports......................... ................... ........................... .......31
Bi-Directional...............................................................44
Block Diagrams
RB0/INT Pin........................................................37
RB1/RX/DT Pin.. ................... ........... ...................37
RB2/TX/CK Pin...................................................38
RB3/CCP1 Pin ...................... ................... ...........38
RB4/PGM Pin................................. ................... ..39
RB5 Pin ...............................................................40
RB6/T1OSO/T1CKI Pin ......................................41
RB7/T1OSI Pin ...................................................42
PORTA........................................................................31
PORTB........................................................................36
Programming Consi der a tions .................. ...................44
Succes sive Operations........... ................... .................44
TRISA .........................................................................31
TRISB .........................................................................36
ID Locations......................................................................108
INCF Instruction................................................................118
INCFSZ Instruction............................................................118
In-Cir cuit Serial Programming...........................................109
Indirect Addressing, INDF and FSR Registers....................28
Instruction Flow/Pipelining ..................................................13
Instruction Set
ADDLW .....................................................................113
ADDWF.....................................................................113
ANDLW .....................................................................113
ANDWF.....................................................................113
BCF...........................................................................114
BSF...........................................................................114
BTFSC ......................................................................114
BTFSS ......................................................................115
CALL.........................................................................115
CLRF.........................................................................115
CLRW........................................................................116
CLRWDT...................................................................116
COMF .......................................................................116
DECF ........................................................................116
DECFSZ....................................................................117
GOTO........................................................................117
INCF..........................................................................118
INCFSZ.....................................................................118
IORLW.......................................................................119
IORWF ......................................................................119
MOVF........................................................................119
MOVLW.....................................................................119
MOVWF ....................................................................120
NOP..........................................................................120
OPTION ....................................................................120
RETFIE .....................................................................120
RETLW......................................................................121
RETURN...................................................................121
RLF ...........................................................................121
RRF .......................................................................... 122
SLEEP...................................................................... 122
SUBLW..................................................................... 122
SUBWF..................................................................... 123
SWAPF..................................................................... 123
TRIS ......................................................................... 123
XORLW..................................................................... 124
XORWF .................................................................... 124
Instru ction Set Summary .................................................. 111
INT Interrupt...................................................................... 105
INTCON Register ................................................................ 24
Interrupt Sources
Capture Com ple te (CCP)......................... ........... ........ 56
Compar e Comp le te (CCP).......................................... 57
TMR2 to PR2 Match (PWM )....................................... 58
Interrupts........................................................................... 104
Interrupts, Enable Bits
CCP1 Enable (CCP1IE Bit) ......................... ....... .. .. .. ..56
Interrupts, Flag Bits
CCP1 Flag (CCP1IF Bit).............. .......... ................... .. 56
IORLW Instruction ............................................................ 119
IORWF Instruction. ................... ........... ................... .......... 119
M
Memory Organization
Data EE PROM Memory................. ................. 89, 91, 92
Migratin g fr o m oth e r PICm ic ro Devices............. ............... 156
MOVF Instruction.............................................................. 119
MOVLW Instruction................. ........................... ............... 119
MOVWF Instruction .......................................................... 120
MPLAB ASM30 Assembler, Linker, Librarian................... 126
MPLAB ICD 2 In-Circuit Debugger................................... 127
MPLAB ICE 2000 High-Performance Universal In-Circuit Em-
ulator................................................................................. 127
MPLAB ICE 4000 High-Performance Universal In-Circuit Em-
ulator................................................................................. 127
MPLAB Integrated Development Environment Software.. 125
MPLAB PM3 Device Programmer.................................... 127
MPLINK Object Linker/MPLIB Object Librarian................ 126
N
NOP Instruction ................................................................ 120
O
OPTION Instruction .......................................................... 120
OPTION Register................................................................ 23
Oscillato r Configurat ions................. .................................... 95
Oscillato r Start-up Timer (OST).. ........................................ 98
P
Package Marking Information........................................... 149
Packagi n g In fo rmation...... ................... ................... .......... 149
PCL and PCLATH ............................................................... 28
Stack........................................................................... 28
PCON Register................................................................... 27
PICkit 1 Fla sh Starter Kit ......................... ................... ...... 129
PICSTART Plus Deve lopment Program mer..................... 128
PIE1 Register...................................................................... 25
Pin Functions
RC6/TX/CK........................................................... 69–86
RC7/RX/DT........................................................... 69–86
PIR1 Register ..................................................................... 26
Port RB Interrupt............................................................... 105
PORTA ............................................................................... 31
PORTB ............................................................................... 36