PIC16F627A/628A/648A
DS40044G-page 114
2009 Microchip Technology Inc.
14.11 In-Circuit Serial Programming
(ICSP)
The PIC16F627A/628A/648A microcontrollers can be
serially programmed while in the end application circuit.
This is simply done with two lines for clock and data,
and three other lines for power, ground and the
programming voltage. This allows customers to
manufacture boards with unprogrammed devices and
then program the microcontroller just before shipping
the product. This also allows the most recent firmware
or custom firmware to be programmed.
The device is placed into a Program/Verify mode by
holding the RB6 and RB7 pins low while raising the
MCLR (VPP) pin from VIL to VIHH. See “PIC16F627A/
628A/648A
EEPROM
Memory
Programming
Specification
” (DS41196) for details. RB6 becomes the
programming clock and RB7 becomes the programming
data. Both RB6 and RB7 are Schmitt Trigger inputs in
this mode.
After Reset, to place the device into Programming/Verify
mode, the Program Counter (PC) is at location 00h. A
6-bit command is then supplied to the device. Depending
on the command, 14 bits of program data are then
supplied to or from the device, depending if the command
was a load or a read. For complete details of serial
programming, please refer to “PIC16F627A/628A/648A
EEPROM
Memory
Programming
Specification
(DS41196).
A typical In-Circuit Serial Programming connection is
shown in Figure 14-18.
FIGURE 14-18:
TYPICAL IN-CIRCUIT
SERIAL PROGRAMMING
CONNECTION
14.12 Low-Voltage Programming
The LVP bit of the Configuration Word, enables the low-
voltage
programming.
This
mode
allows
the
microcontroller to be programmed via ICSP using only
a 5V source. This mode removes the requirement of
VIHH to be placed on the MCLR pin. The LVP bit is
normally erased to ‘1’ which enables the low-voltage
programming. In this mode, the RB4/PGM pin is
dedicated to the programming function and ceases to
be a general purpose I/O pin. The device will enter
Programming mode when a ‘1’ is placed on the RB4/
PGM pin. The High-Voltage Programming mode is still
available by placing VIHH on the MCLR pin.
If Low-Voltage Programming mode is not used, the
LVP bit should be programmed to a ‘0’ so that RB4/
PGM becomes a digital I/O pin. To program the device,
VIHH must be placed onto MCLR during programming.
The LVP bit may only be programmed when program-
ming is entered with VIHH on MCLR. The LVP bit
cannot be programmed when programming is entered
with RB4/PGM.
It should be noted, that once the LVP bit is programmed
to ‘0’, only High-Voltage Programming mode can be
used to program the device.
External
Connector
Signals
To Normal
Connections
To Normal
Connections
PIC16F627A/628A/648A
VDD
VSS
RA5/MCLR/VPP
RB6/PGC
RB7/PGD
+5V
0V
VPP
CLK
Data I/O
VDD
Note 1:
While in this mode, the RB4 pin can no
longer be used as a general purpose I/O
pin.
2:
VDD must be 5.0V +10% during erase
operations.
相关PDF资料
PIC18F24K22-I/SO IC PIC MCU 16KB FLASH 28SOIC
PIC18F23K22-I/SP IC PIC MCU 8KB FLASH 28SPDIP
PIC18LF23K22-I/SP IC PIC MCU 8KB FLASH 28SPDIP
PIC24F08KA102-I/SS IC PIC MCU FLASH 8K 28-SSOP
PIC16C58B-20/SO IC MCU OTP 2KX12 18SOIC
PIC12C672-04/SM IC MCU OTP 2KX14 A/D 8-SOIJ
PIC18F25K20-E/SS IC PIC MCU FLASH 16KX16 28-SSOP
PIC18F25J10T-I/SO IC PIC MCU FLASH 16KX16 28SOIC
相关代理商/技术参数
PIC16F628A-I/P 制造商:Microchip Technology Inc 功能描述:IC 8BIT FLASH MCU 16F628 DIP18
PIC16F628A-I/SO 功能描述:8位微控制器 -MCU 3.5KB 224 RAM 16 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F628A-I/SO 制造商:Microchip Technology Inc 功能描述:8BIT FLASH MCU SMD 16F628 SOIC18
PIC16F628A-I/SOG 制造商:Microchip Technology 功能描述:MCU 8-Bit PIC16 PIC RISC 3.5KB Flash 3.3V/5V 18-Pin SOIC W Tube
PIC16F628A-I/SS 功能描述:8位微控制器 -MCU 3.5KB 224 RAM 16 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F628A-I/SS 制造商:Microchip Technology Inc 功能描述:8BIT FLASH MCU SMD 16F628 SSOP20
PIC16F628AT-E/ML 功能描述:8位微控制器 -MCU 28LD 20MHz 2K FLASH RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F628AT-E/SO 功能描述:8位微控制器 -MCU 18LD 20MHz 2K FLASH RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT