电子工程世界电子工程世界电子工程世界

关键词

搜索

型号

搜索

TB025

产品描述Microcontrollers
文件大小50KB,共8页
制造商Microchip(微芯科技)
官网地址https://www.microchip.com
下载文档 全文预览

TB025概述

Microcontrollers

文档预览

下载PDF文档
M
Author:
TB025
ACCESSING MEMORY
The read and write operations are controlled by a set of
Special Function Registers (SFRs). There are six
SFRs required to access the FLASH program memory:
EECON1
EECON2
EEDATA
EEDATH
EEADR
EEADRH
Downloading HEX Files to PIC16F87X PICmicro
®
Microcontrollers
Rodger Richey
Microchip Technology Inc.
INTRODUCTION
The release of the PIC16F87X devices introduces the
first mid-range family of devices from Microchip Tech-
nology that has the capability to read and write to inter-
nal program memory. This family has FLASH-based
program memory, SRAM data memory and EEPROM
data memory. The FLASH program memory allows for
a truly reprogrammable system. Table 1 shows the fea-
tures of the PIC16F87X family of devices.
The registers
EEADRH:EEADR
holds the 12-bit address
required to access a location in the 8K words of pro-
gram memory. The registers
EEDATH:EEDATA
are used
to hold the data values. When reading program mem-
ory, the
EEPGD
bit
(EECON1<7>)
must be set to indicate
to the microcontroller that the operation is going to be
on program memory. If the bit is cleared, the operation
will be performed on data memory at the address
pointed to by
EEADR
. The
EEDATA
register will hold the
data. The
EECON1
register also has bits for write enable
and to initiate the read or write operation. There is also
a bit to indicate a write error has occurred, possibly due
to a reset condition happening while a write operation
is in progress. Figure 1 shows the register map for
EECON1
.
The
EECON2
register is not a physical register. Reading
it will result in all '0's. This register is used exclusively
in the EEPROM and FLASH write sequences.
Listing 1
shows the code snippet to initiate a write operation on
the PIC16F87X devices.
TABLE 1
PIC16F87X FAMILY FEATURES
Key Features
PIC16F873
DC - 20 MHz
POR, BOR
4K
192
128
13
Ports A,B,C
3
2
MSSP, USART
5 input channels
PIC16F874
DC - 20 MHz
POR, BOR
4K
192
128
14
Ports A,B,C,D,E
3
2
MSSP, USART
PSP
8 input channels
PIC16F876
DC - 20 MHz
POR, BOR
8K
368
256
13
Ports A,B,C
3
2
MSSP, USART
5 input channels
PIC16F877
DC - 20 MHz
POR, BOR
8K
368
256
14
Ports A,B,C,D,E
3
2
MSSP, USART
PSP
8 input channels
Operating Frequency
Resets
Flash Prog Memory (14-bit words)
Data Memory (bytes)
EEPROM Data Memory
Interrupts
I/O Ports
Timers
Capture/Compare/PWM modules
Serial Communications
Parallel Communications
10-bit Analog-to-Digital Module
©
1998 Microchip Technology Inc.
DS91025A-page 1

技术资料推荐更多

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

 
机器人开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 大学堂 TI培训 Datasheet 电子工程 索引文件: 1716  2823  1425  735  2755  35  57  29  15  56 

器件索引   0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2026 EEWORLD.com.cn, Inc. All rights reserved