欢迎访问ic37.com |
会员登录 免费注册
发布采购

PIC16F873A-I/SP 参数 Datasheet PDF下载

PIC16F873A-I/SP图片预览
型号: PIC16F873A-I/SP
PDF下载: 下载PDF文件 查看货源
内容描述: 40分之28引脚增强型闪存微控制器 [28/40-pin Enhanced FLASH Microcontrollers]
分类和应用: 闪存微控制器和处理器外围集成电路光电二极管PC时钟
文件页数/大小: 222 页 / 3815 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16F873A-I/SP的Datasheet PDF文件第32页浏览型号PIC16F873A-I/SP的Datasheet PDF文件第33页浏览型号PIC16F873A-I/SP的Datasheet PDF文件第34页浏览型号PIC16F873A-I/SP的Datasheet PDF文件第35页浏览型号PIC16F873A-I/SP的Datasheet PDF文件第37页浏览型号PIC16F873A-I/SP的Datasheet PDF文件第38页浏览型号PIC16F873A-I/SP的Datasheet PDF文件第39页浏览型号PIC16F873A-I/SP的Datasheet PDF文件第40页  
PIC16F87XA  
following the “BSF EECON1,RD” instruction to be  
ignored. The data is available in the very next cycle, in  
the EEDATA and EEDATH registers; therefore, it can be  
read as two bytes in the following instructions. EEDATA  
and EEDATH registers will hold this value until another  
read or until it is written to by the user (during a write  
operation).  
3.5  
Reading FLASH Program Memory  
To read a program memory location, the user must write  
two bytes of the address to the EEADR and EEADRH  
registers, set the EEPGD control bit (EECON1<7>),  
and then set control bit RD (EECON1<0>). Once the  
read control bit is set, the program memory FLASH con-  
troller will use the next two instruction cycles to read the  
data. This causes these two instructions immediately  
EXAMPLE 3-3:  
FLASH PROGRAM READ  
BSF  
BCF  
STATUS, RP1  
STATUS, RP0  
MS_PROG_EE_ADDR  
EEADRH  
LS_PROG_EE_ADDR  
EEADR  
STATUS, RP0  
EECON1, EEPGD  
EECON1, RD  
;
; Bank 2  
;
MOVLW  
MOVWF  
MOVLW  
MOVWF  
BSF  
; MS Byte of Program Address to read  
;
; LS Byte of Program Address to read  
; Bank 3  
; Point to PROGRAM memory  
; EE Read  
BSF  
BSF  
;
NOP  
NOP  
; Any instructions here are ignored as program  
; memory is read in second cycle after BSF EECON1,RD  
;
BCF  
STATUS, RP0  
EEDATA, W  
DATAL  
EEDATH, W  
DATAH  
;
MOVF  
MOVWF  
MOVF  
MOVWF  
; W = LS Byte of Program EEDATA  
;
; W = MS Byte of Program EEDATA  
;
DS39582A-page 34  
Advance Information  
2001 Microchip Technology Inc.