PIC16F628-04I/P Microchip Technology Inc., PIC16F628-04I/P Datasheet - Page 164
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
PIC16F628-04I/P
Manufacturer Part Number
PIC16F628-04I/P
Description
18 PIN, 3.5 KB FLASH, 224 RAM, 16 I/O
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC16F628-04IP.pdf
(170 pages)
Specifications of PIC16F628-04I/P
Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
128 Bytes
Input Output
16
Interface
SCI/USART
Memory Type
Flash
Number Of Bits
8
Package Type
18-pin PDIP
Programmable Memory
3.5K Bytes
Ram Size
224 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part
Electrostatic Device
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16F628-04I/P
Manufacturer:
VISHAY
Quantity:
5 510
Part Number:
PIC16F628-04I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC16F62X
Instruction Set Summary................................................... 107
INT Interrupt ...................................................................... 102
INTCON Register ................................................................ 21
Interrupt Sources
Interrupts ........................................................................... 101
Interrupts, Enable Bits
Interrupts, Flag Bits
IORLW Instruction............................................................. 115
IORWF Instruction............................................................. 115
M
Memory Organization
MOVF Instruction .............................................................. 115
MOVLW Instruction ........................................................... 115
MOVWF Instruction........................................................... 116
MPLAB C17 and MPLAB C18 C Compilers...................... 122
MPLAB ICD In-Circuit Debugger....................................... 123
MPLAB ICE High Performance Universal In-Circuit Emulator
with MPLAB IDE................................................................ 123
MPLAB Integrated Development Environment Software .. 121
MPLINK Object Linker/MPLIB Object Librarian ................ 122
N
NOP Instruction................................................................. 116
O
OPTION Instruction........................................................... 116
OPTION Register ................................................................ 20
Oscillator Configurations ..................................................... 93
Oscillator Start-up Timer (OST) .......................................... 96
Output of TMR2................................................................... 50
P
Package Marking Information ........................................... 157
Packaging Information ...................................................... 157
PCL and PCLATH ............................................................... 25
PCON.................................................................................. 24
PCON Register ................................................................... 24
PICDEM 1 Low Cost PICmicro Demonstration Board ...... 124
PICDEM 17 Demonstration Board .................................... 124
PICDEM 2 Low Cost PIC16CXX Demonstration Board.... 124
PICSTART Plus Entry Level Development Programmer .. 123
PIE1 Register ...................................................................... 22
DS40300C-page 162
MOVLW..................................................................... 115
MOVWF .................................................................... 116
NOP .......................................................................... 116
OPTION .................................................................... 116
RETFIE ..................................................................... 116
RETLW...................................................................... 117
RETURN ................................................................... 117
RLF ........................................................................... 117
RRF........................................................................... 118
SLEEP ...................................................................... 118
SUBLW...................................................................... 118
SUBWF ..................................................................... 119
SWAPF ..................................................................... 119
TRIS .......................................................................... 119
XORLW ..................................................................... 120
XORWF..................................................................... 120
Capture Complete (CCP) ............................................ 62
Compare Complete (CCP) .......................................... 63
TMR2 to PR2 Match (PWM) ....................................... 64
CCP1 Enable (CCP1IE Bit)......................................... 62
CCP1 Flag (CCP1IF Bit) ............................................. 62
Data EEPROM Memory .............................................. 87
Preliminary
Pin Functions
PIR1.................................................................................... 23
PIR1 Register ..................................................................... 23
Port RB Interrupt............................................................... 102
PORTA ............................................................................... 29
PORTB ............................................................................... 34
Power Control/Status Register (PCON).............................. 97
Power-Down Mode (SLEEP) ............................................ 104
Power-On Reset (POR) ...................................................... 96
Power-up Timer (PWRT) .................................................... 96
PR2 Register ...................................................................... 50
Prescaler............................................................................. 44
Prescaler, Capture.............................................................. 62
Prescaler, Timer2 ............................................................... 65
PRO MATE II Universal Device Programmer ................... 123
Program Memory Organization........................................... 13
PROTECTION .................................................................... 89
PWM (CCP Module) ........................................................... 64
Q
Q-Clock............................................................................... 65
Quick-Turnaround-Production (QTP) Devices...................... 5
R
RC Oscillator....................................................................... 94
Registers
Reset .................................................................................. 95
RETFIE Instruction ........................................................... 116
RETLW Instruction............................................................ 117
RETURN Instruction ......................................................... 117
RLF Instruction ................................................................. 117
RRF Instruction................................................................. 118
S
Serial Communication Interface (SCI) Module, See USART
Serialized Quick-Turnaround-Production (SQTP) Devices... 5
SLEEP Instruction............................................................. 118
Software Simulator (MPLAB SIM) .................................... 122
Special ................................................................................ 95
Special Event Trigger. See Compare
Special Features of the CPU .............................................. 91
Special Function Registers ................................................. 15
Stack................................................................................... 25
Status Register ................................................................... 19
SUBLW Instruction ........................................................... 118
SUBWF Instruction ........................................................... 119
SWAPF Instruction ........................................................... 119
T
T1CKPS0 bit ....................................................................... 46
T1CKPS1 bit ....................................................................... 46
T1OSCEN bit ...................................................................... 46
RC6/TX/CK ........................................................... 67–84
RC7/RX/DT........................................................... 67–84
Block Diagram ............................................................ 64
CCPR1H:CCPR1L Registers...................................... 64
Duty Cycle .................................................................. 65
Example Frequencies/Resolutions ............................. 65
Output Diagram .......................................................... 64
Period ......................................................................... 64
Set-Up for PWM Operation......................................... 65
TMR2 to PR2 Match ................................................... 64
Maps
PIC16C76 ........................................................... 14
PIC16C77 ........................................................... 14
2003 Microchip Technology Inc.