Web Analytics
Datasheet 搜索 > 微控制器 > Microchip(微芯) > PIC16F877-04E/PT 数据手册 > PIC16F877-04E/PT 其他数据使用手册 1/10 页
PIC16F877-04E/PT
器件3D模型
29.925
PIC16F877-04E/PT数据手册
Page:
of 10 Go
若手册格式错乱,请下载阅览PDF原文件
PIC16F877 DOS
THIS DOCUMENT IS UNCONTROLLED UNLESS OTHERWISE STAMPED. It is the users
responsibility to ensure this is the latest revision prior to using or referencing this document.
98/10/09 Microchip Technology, Inc.
Pa
g
e
102 of 117
SPEC. NO. REV.
DOS-00103
C
6.3 Background Debugger Control
This section describes the hardware re
q
uirements that
back
g
round debu
gg
in
g
imposes on the PIC16F877
desi
g
n as well as the functional description of the back-
g
round debu
gg
er s
y
stem.
6.3.1 Introduction
Traditionall
y
, embedded s
y
stem en
g
ineers use in circuit
emulators to debu
g
s
y
stem hardware and software. While
these emulators work well for man
y
embedded s
y
stems,
the
y
pose a number of problems that limit their effective-
ness:
•Hi
g
h cost of purchasin
g
emulators
(
$800.00 to
$3000+
)
per s
y
stem prevents man
y
customers from
bu
y
in
g
and usin
g
them
Limited hi
g
h fre
q
uenc
y
support
(
10 Mhz limit on
PIC16CXX
)
Limited volta
g
e ran
g
e
(
+5 Volt s
y
stem onl
y)
Serious interconnect problems with surface mount
packa
g
es
Inabilit
y
to dia
g
nose production board problems
Inabilit
y
to easil
y
fine tune software for initial proto-
t
y
pe s
y
stems
Back
g
round debu
gg
er support solves these limitations of
in circuit emulators.
Back
g
round debu
gg
ers re
q
uire breakpoint address,
peripheral freeze, halt lo
g
ic and a non-maskable debu
g
-
g
er invocation address. A software or hardware commu-
nication protocol is established between the Tar
g
et
processor
(
which runs the back
g
round debu
gg
er
)
and the
debu
gg
er interface that connects to the PC runnin
g
MPLAB.
A software s
y
nchronous protocol can be implemented to
communicate between the 16F877 usin
g
the ICSP pins
(
RB6/RB7
)
and the PC runnin
g
MPLAB throu
g
h a debu
g
-
g
er interface module. This debu
gg
er interface module
can also perform In Circuit Serial Pro
g
rammin
g
for auto-
matic download of updated software. No additional com-
munication hardware is needed. However, a back
g
round
debu
gg
er cannot completel
y
be implemented in software
- it needs a small amount of hardware assistance with
interrupts, peripheral freezin
and breakpoints.
The desi
g
n, build and market the debu
gg
er/pro
g
rammer
interface module to MPLAB will be done throu
g
h a Bu
y
/
Re-sell a
g
reement with 3rd part
y
developers; much like
ICEPIC. There will also be a 3rd part
y
DLL development.
6.3.2 Enabling Background debugger
To enable the back
g
round debu
gg
er, there will be an
extra confi
g
uration bit in the confi
g
uration word. The
EEPROM confi
g
uration bit is used to enable or disable
the debu
gg
er.
When BKBUG is pro
g
rammed to “0”, the breakpoint
address re
g
ister and RB6 HIGH->LOW debu
gg
er entr
y
are enabled. The sin
g
le step mode is also enabled. RB6/
7 user I/O functionalit
y
and interrupt on chan
g
e function-
alit
y
is disabled when this bit is set. TRISB<6:7> are
forced hi
g
h, so that RB<6:7> are in input mode.
While in the debu
g
mode, the debu
g
software can access
either RB<5:0> of the PORTB pins or
j
ust RB<7:6> b
y
switchin
g
between banks 0:1 and 2:3. Addresses 006h
and 086h will access bits<5:0> of the PORTB and TRISB
respectivel
y
. Addresses 106h and 186h will onl
y
access
bits <6:7> of PORTB and TRISB respectivel
y
. While run-
nin
g
debu
gg
er communication, the debu
gg
er software
should onl
y
access addresses 106h and 186h.
If BKBUG is pro
g
rammed to “0” and the PC e
q
uals
BKA<12:0>
(
or the RB6 Halt condition occurs
)
and the
INBUG fla
g
is clear, the back
g
round debu
gg
er is entered.
The INBUG fla
g
is set, the PC is pushed onto the stack
and stored in the BKA re
g
ister, and the PC is set to
1F00h.

PIC16F877-04E/PT 数据手册

Microchip(微芯)
219 页 / 1.79 MByte
Microchip(微芯)
688 页 / 2.66 MByte
Microchip(微芯)
10 页 / 0.08 MByte
Microchip(微芯)
18 页 / 0.58 MByte
Microchip(微芯)
4 页 / 0.15 MByte

PIC16F87704 数据手册

Microchip(微芯)
MICROCHIP  PIC16F877-04/P  微控制器, 8位, 闪存, PIC16F, 4 MHz, 14 KB, 368 Byte, 40 引脚, DIP
Microchip(微芯)
MICROCHIP  PIC16F877-04/PT  微控制器, 8位, 闪存, PIC16F, 4 MHz, 14 KB, 368 Byte, 44 引脚, TQFP
Microchip(微芯)
MICROCHIP  PIC16F877-04/L  微控制器, 8位, 闪存, PIC16F, 4 MHz, 14 KB, 368 Byte, 44 引脚, PLCC
Microchip(微芯)
MICROCHIP  PIC16F877-04/PQ  微控制器, 8位, 闪存, PIC16F, 4 MHz, 14 KB, 368 Byte, 44 引脚, QFP
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 微控制器
Microchip(微芯)
PIC16 系列 368 B RAM 14 kB 闪存 8 位 CMOS 微控制器 - PLCC-44
Microchip(微芯)
MICROCHIP  PIC16F877-04I/PT  芯片, 微控制器, 8位, PIC16F, 4MHZ, TQFP-44
Microchip(微芯)
PIC16 系列 368 B RAM 14 kB 闪存 8位 CMOS 微控制器 - MQFP-44
Microchip(微芯)
Microchip(微芯)
8位微控制器 -MCU 14KB 368 RAM 33 I/O
器件 Datasheet 文档搜索
器件加载中...
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件