English
Language : 

PIC16F627A_09 Datasheet, PDF (176/180 Pages) Microchip Technology – Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC16F627A/628A/648A
I
I/O Ports .............................................................................. 33
Bidirectional ................................................................ 46
Block Diagrams
RB0/INT Pin ........................................................ 38
RB1/RX/DT Pin ................................................... 39
RB2/TX/CK Pin ................................................... 39
RB3/CCP1 Pin .................................................... 40
RB4/PGM Pin...................................................... 41
RB5 Pin............................................................... 42
RB6/T1OSO/T1CKI Pin ...................................... 43
RB7/T1OSI Pin ................................................... 44
PORTA........................................................................ 33
PORTB........................................................................ 38
Programming Considerations ..................................... 46
Successive Operations ............................................... 46
TRISA ......................................................................... 33
TRISB ......................................................................... 38
ID Locations ...................................................................... 113
INCF Instruction ................................................................ 124
INCFSZ Instruction............................................................ 124
In-Circuit Serial Programming™ ....................................... 114
Indirect Addressing, INDF and FSR Registers.................... 30
Instruction Flow/Pipelining .................................................. 15
Instruction Set
ADDLW ..................................................................... 119
ADDWF ..................................................................... 119
ANDLW ..................................................................... 119
ANDWF ..................................................................... 119
BCF ........................................................................... 120
BSF ........................................................................... 120
BTFSC ...................................................................... 120
BTFSS ...................................................................... 121
CALL ......................................................................... 121
CLRF......................................................................... 121
CLRW ....................................................................... 122
CLRWDT................................................................... 122
COMF ....................................................................... 122
DECF ........................................................................ 122
DECFSZ.................................................................... 123
GOTO ....................................................................... 123
INCF.......................................................................... 124
INCFSZ ..................................................................... 124
IORLW ...................................................................... 125
IORWF ...................................................................... 125
MOVF........................................................................ 125
MOVLW .................................................................... 125
MOVWF .................................................................... 126
NOP .......................................................................... 126
OPTION .................................................................... 126
RETFIE ..................................................................... 126
RETLW ..................................................................... 127
RETURN ................................................................... 127
RLF ........................................................................... 127
RRF........................................................................... 128
SLEEP ...................................................................... 128
SUBLW ..................................................................... 128
SUBWF ..................................................................... 129
SWAPF ..................................................................... 129
TRIS .......................................................................... 129
XORLW ..................................................................... 130
XORWF..................................................................... 130
Instruction Set Summary................................................... 117
INT Interrupt ...................................................................... 110
INTCON Register ................................................................ 26
Internet Address ............................................................... 173
Interrupt Sources
Capture Complete (CCP)............................................ 58
Compare Complete (CCP).......................................... 59
TMR2 to PR2 Match (PWM) ....................................... 60
Interrupts........................................................................... 109
Interrupts, Enable Bits
CCP1 Enable (CCP1IE Bit) ........................................ 58
Interrupts, Flag Bits
CCP1 Flag (CCP1IF Bit)............................................. 58
IORLW Instruction ............................................................ 125
IORWF Instruction ............................................................ 125
M
Memory Organization
Data EEPROM Memory.................................. 91, 93, 95
Microchip Internet Web Site.............................................. 173
Migrating from other PICmicro Devices ............................ 172
MOVF Instruction.............................................................. 125
MOVLW Instruction........................................................... 125
MOVWF Instruction .......................................................... 126
MPLAB ASM30 Assembler, Linker, Librarian ................... 132
MPLAB Integrated Development Environment Software.. 131
MPLAB PM3 Device Programmer .................................... 134
MPLAB REAL ICE In-Circuit Emulator System ................ 133
MPLINK Object Linker/MPLIB Object Librarian ................ 132
N
NOP Instruction ................................................................ 126
O
OPTION Instruction .......................................................... 126
OPTION Register................................................................ 25
OPTION_REG Register...................................................... 25
Oscillator Configurations..................................................... 99
Oscillator Start-up Timer (OST) ........................................ 103
P
Package Marking Information ........................................... 163
Packaging Information ...................................................... 163
PCL and PCLATH............................................................... 30
Stack........................................................................... 30
PCON Register ................................................................... 29
PIE1 Register...................................................................... 27
Pin Functions
RC6/TX/CK ........................................................... 73–89
RC7/RX/DT........................................................... 73–89
PIR1 Register ..................................................................... 28
PORTA ............................................................................... 33
PORTB ............................................................................... 38
PORTB Interrupt ............................................................... 110
Power Control/Status Register (PCON)............................ 104
Power-Down Mode (Sleep)............................................... 112
Power-On Reset (POR) .................................................... 103
Power-up Timer (PWRT) .................................................. 103
PR2 Register ................................................................ 54, 60
Program Memory Organization........................................... 17
PWM (CCP Module) ........................................................... 60
Block Diagram ............................................................ 60
Simplified PWM .................................................. 60
CCPR1H:CCPR1L Registers...................................... 60
Duty Cycle .................................................................. 61
Example Frequencies/Resolutions ............................. 61
Period ......................................................................... 60
Set-Up for PWM Operation......................................... 61
TMR2 to PR2 Match ................................................... 60
DS40044G-page 176
© 2009 Microchip Technology Inc.