Web Analytics
Datasheet 搜索 > 微控制器 > Microchip(微芯) > PIC16F877A-E/ML 数据手册 > PIC16F877A-E/ML 用户编程技术手册 5/22 页
PIC16F877A-E/ML
器件3D模型
70.866
导航目录
PIC16F877A-E/ML数据手册
Page:
of 22 Go
若手册格式错乱,请下载阅览PDF原文件
2010 Microchip Technology Inc. Advance Information DS39589C-page 5
PIC16F87XA
2.4 Program/Verify Mode
The Program/Verify mode is entered by holding pins
RB6 and RB7 low, while raising MCLR
pin from VIL to
V
IHH (high voltage). In this mode, the state of the RB3
pin does not effect programming. Low Voltage ICSP
Programming mode is entered by raising RB3 from VIL
to VDD, and then applying VDD to MCLR. Once in this
mode, the user program memory and the configuration
memory can be accessed and programmed in serial
fashion. The mode of operation is serial, and the mem-
ory accessed is the user program memory. RB6 and
RB7 are Schmitt Trigger inputs in this mode.
The sequence that enters the device into the Program-
ming/Verify mode places all other logic into the RESET
state (the MCLR
pin was initially at VIL). This means all
I/O are in the RESET state (high impedance inputs).
A device RESET will clear the PC and set the address
to ‘0’. The ‘Increment Address’ command will incre-
ment the PC. The ‘Load Configuration’ command will
set the PC to 2000h. The available commands are
shown in Table 2-1.
The normal sequence for programming eight program
memory words at a time is as follows:
1. Load a word at the current program memory
address using the ‘Load Data’ command.
2. Issue an ‘Increment Address’ command.
3. Load a word at the current program memory
address using the ‘Load Data’ command.
4. Repeat Step 2 and Step 3 six times.
5. Issue a ‘Begin Programming’ command to begin
programming.
6. Wait tprog (about 1 ms).
7. Issue an ‘End Programming’ command.
8. Increment to the next address.
9. Repeat this sequence as required to write
program and configuration memory.
The alternative sequence for programming one
program memory word at a time is as follows:
1. Set a word for the current memory location using
the ‘Load Data’ command.
2. Issue a ‘Begin Programming Only’ command to
begin programming.
3. Wait tprog.
4. Issue an ‘End Programming’ command.
5. Increment to the next address.
6. Repeat this alternative sequence as required to
write program and configuration memory.
The address and program counter are reset to 0000h
by resetting the device (taking MCLR
below VIL) and
re-entering Programming mode. Program and configu-
ration memory may then be read or verified using the
‘Read Data’ and ‘Increment Address’ commands.
2.4.1 LOW VOLTAGE ICSP
PROGRAMMING MODE
Low Voltage ICSP Programming mode allows a
PIC16F87XA device to be programmed using V
DD
only. However, when this mode is enabled by a config-
uration bit (LVP), the PIC16F87XA device dedicates
RB3 to control entry/exit into Programming mode.
When LVP bit is set to ‘1’, the low voltage ICSP pro-
gramming entry is enabled. Since the LVP configura-
tion bit allows low voltage ICSP programming entry in
its erased state, an erased device will have the LVP bit
enabled at the factory. While LVP is 1’, RB3 is dedi-
cated to low voltage ICSP programming. Bring RB3
and then, MCLR
to VDD to enter Programming mode.
All other specifications for high voltage ICSP apply.
To disable Low Voltage ICSP mode, the LVP bit must
be programmed to ‘0. This must be done while entered
with the High Voltage Entry mode (LVP bit = ‘1’). RB3
is now a general purpose I/O pin.
2.4.2 SERIAL PROGRAM/VERIFY
OPERATION
The RB6 pin is used as a clock input pin, and the RB7
pin is used to enter command bits, and to input or out-
put data during serial operation. To input a command,
the clock pin (RB6) is cycled six times. Each command
bit is latched on the falling edge of the clock, with the
Least Significant bit (LSb) of the command being input
first. The data on RB7 is required to have a minimum
setup (tset1) and hold (thold1) time (see AC/DC speci-
fications), with respect to the falling edge of the clock.
Commands with associated data (read and load) are
specified to have a minimum delay (tdly1) of 1 s
between the command and the data. After this delay,
the clock pin is cycled 16 times, with the first cycle
being a Start bit (0) and the last cycle being a Stop bit
(0). Data is transferred LSb first.
During a read operation, the LSb will be transmitted
onto RB7 on the rising edge of the second cycle, and
during a load operation, the LSb will be latched on the
falling edge of the second cycle. A minimum 1 s delay
(tdly2) is specified between consecutive commands.
All commands and data words are transmitted LSb first.
The data is transmitted on the rising edge, and latched
on the falling edge of the clock. To allow decoding of
commands and reversal of data pin configuration, a
time separation of at least 1 s (tdly1) is required
between a command and a data word, or another
command.
The available commands are described in the following
paragraphs and listed in Table 2-1.
Note: The OSC must not have 72 osc clocks
while the device MCLR
is between VIL and
V
IHH.

PIC16F877A-E/ML 数据手册

Microchip(微芯)
8 页 / 0.18 MByte
Microchip(微芯)
688 页 / 2.66 MByte
Microchip(微芯)
22 页 / 0.17 MByte
Microchip(微芯)
8 页 / 0.22 MByte
Microchip(微芯)
18 页 / 0.58 MByte
Microchip(微芯)
2 页 / 0.1 MByte

PIC16F877 数据手册

Microchip(微芯)
EEPROM存储器编程特定网络阳离子 EEPROM Memory Programming Specification
Microchip(微芯)
MICROCHIP  PIC16F877A-I/PT  微控制器, 8位, 闪存, PIC16F8xxx, 20 MHz, 14 KB, 368 Byte, 44 引脚, TQFP
Microchip(微芯)
PIC16F873A/874A/876A/877A 8 位闪存微控制器
Microchip(微芯)
MICROCHIP  PIC16F877A-I/L  微控制器, 8位, 闪存, PIC16F8xxx, 20 MHz, 14 KB, 368 Byte, 44 引脚, PLCC
Microchip(微芯)
MICROCHIP  PIC16F877-04/P  微控制器, 8位, 闪存, PIC16F, 4 MHz, 14 KB, 368 Byte, 40 引脚, DIP
Microchip(微芯)
MICROCHIP  PIC16F877-20/P  微控制器, 8位, 闪存, PIC16F, 20 MHz, 14 KB, 256 Byte, 40 引脚, DIP
Microchip(微芯)
MICROCHIP  PIC16F877-20I/L  微控制器, 8位, 闪存, PIC16F, 20 MHz, 14 KB, 368 Byte, 44 引脚, LCC
Microchip(微芯)
MICROCHIP  PIC16F877-20I/P  微控制器, 8位, 闪存, PIC16F, 20 MHz, 14 KB, 368 Byte, 40 引脚, DIP
Microchip(微芯)
MICROCHIP  PIC16F877-04/PT  微控制器, 8位, 闪存, PIC16F, 4 MHz, 14 KB, 368 Byte, 44 引脚, TQFP
Microchip(微芯)
PIC16F873/874/876/877 8 位闪存微控制器Microchip 的 PIC16F 系列微控制器 8 位 MCU,将 Microchip 的 PIC® 体系架构融入到引脚和封装选件中,从节省空间的 14 引脚设备到功能丰富的 64 引脚设备。 带有基线、中级或增强型中级体系架构的设备提供多种不同的外围设备组合,可谓设计人员提供灵活性,并为应用提供选择。 PIC16F873/874/876/877 系列微控制器基于 Microchip 中档内核,带 8 层深硬件堆栈和 35 个指令。 这些 MCU 提供高达 5 MIPS、3.5 K 字节的程序内存,128 字节 RAM 和 64 字节的 EEPROM。### 微控制器功能最大 20 MHz CPU 速度 35 个指令 8 级硬件堆栈 22 个输入/输出引脚 – PIC16F873/876 33 个输入/输出引脚 – PIC16F874/877 通电重置 (POR) 掉电重置 (BOR) 通电计时器 (PWRT) 振荡器启动计时器 (OST) 监控计时器 (WDT) 在线串行编程 (ICSP) 在线调试 (ICD) ### 外设10 位模拟到数字转换器 (ADC) - PIC16F873/876 5 通道,PIC16F874/877 8 通道 两个捕获、比较、PWM (CCP) 模块 两个 8 位计时器 一个 16 位计时器 同步串行端口 (SSP),带有 SPI 和 I2C 通用同步异步接收器发射器 (USART) 从并行端口 (PSP) – 仅限 PIC16F874/877 型号 ### PIC16 微控制器
器件 Datasheet 文档搜索
器件加载中...
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件