![](http://datasheet.mmic.net.cn/270000/16LF628A_datasheet_15978171/16LF628A_164.png)
PIC16F627A/628A/648A
DS40044A-page 162
Preliminary
2002 Microchip Technology Inc.
RB5 Pin...............................................................40
RB6/T1OSO/T1CKI Pin ......................................41
RB7/T1OSI Pin ...................................................42
PORTA........................................................................31
PORTB........................................................................36
Programming Considerations .....................................44
Successive Operations ...............................................44
TRISA .........................................................................31
TRISB .........................................................................36
ICEPIC In-Circuit Emulator ...............................................126
ID Locations......................................................................108
INCF Instruction................................................................118
INCFSZ Instruction............................................................118
In-Circuit 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
Instruction Set Summary...................................................111
INT Interrupt......................................................................105
INTCON Register................................................................24
Interrupt Sources
Capture Complete (CCP)............................................56
Compare Complete (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
K
KeeLoq Evaluation and Programming Tools.................... 128
M
Memory Organization
Data EEPROM Memory.................................. 89, 91, 92
Migrating from other PICmicro Devices............................ 156
MOVF Instruction.............................................................. 119
MOVLW Instruction........................................................... 119
MOVWF Instruction .......................................................... 120
MPLAB C17 and MPLAB C18 C Compilers ..................... 125
MPLAB ICD In-Circuit Debugger...................................... 127
MPLAB ICE High Performance Universal In-Circuit Emulator
with MPLAB IDE............................................................... 126
MPLAB Integrated Development Environment Software.. 125
MPLINK Object Linker/MPLIB Object Librarian................ 126
N
NOP Instruction ................................................................ 120
O
OPTION Instruction .......................................................... 120
OPTION Register................................................................ 23
Oscillator Configurations..................................................... 95
Oscillator Start-up Timer (OST).......................................... 98
P
Package Marking Information........................................... 149
Packaging Information...................................................... 149
PCL and PCLATH............................................................... 28
Stack........................................................................... 28
PCON Register................................................................... 27
PICDEM 1 Low Cost PICmicro Demonstration Board...... 127
PICDEM 17 Demonstration Board.................................... 128
PICDEM 2 Low Cost PIC16CXX Demonstration Board ... 127
PICDEM 3 Low Cost PIC16CXXX Demonstration Board. 128
PICSTART Plus Entry Level Development Programmer.. 127
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
Power Control/Status Register (PCON).............................. 99
Power-Down Mode (SLEEP)............................................ 107
Power-On Reset (POR)...................................................... 98
Power-up Timer (PWRT) .................................................... 98
PR2 Register ................................................................ 52, 58
PRO MATE II Universal Device Programmer................... 127
Program Memory Organization........................................... 15
PWM (CCP Module)........................................................... 58
Block Diagram ............................................................ 58
Simplified PWM.................................................. 58
CCPR1H:CCPR1L Registers...................................... 58
Duty Cycle .................................................................. 59
Example Frequencies/Resolutions............................. 59
Period ......................................................................... 58
Set-Up for PWM Operation......................................... 59
TMR2 to PR2 Match................................................... 58