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

PIC16F777-I/PT 参数 Datasheet PDF下载

PIC16F777-I/PT图片预览
型号: PIC16F777-I/PT
PDF下载: 下载PDF文件 查看货源
内容描述: 28 /40/ 44引脚, 8位CMOS闪存微控制器与10位A / D和纳瓦技术 [28/40/44-Pin, 8-Bit CMOS Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology]
分类和应用: 闪存微控制器
文件页数/大小: 276 页 / 4898 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16F777-I/PT的Datasheet PDF文件第30页浏览型号PIC16F777-I/PT的Datasheet PDF文件第31页浏览型号PIC16F777-I/PT的Datasheet PDF文件第32页浏览型号PIC16F777-I/PT的Datasheet PDF文件第33页浏览型号PIC16F777-I/PT的Datasheet PDF文件第35页浏览型号PIC16F777-I/PT的Datasheet PDF文件第36页浏览型号PIC16F777-I/PT的Datasheet PDF文件第37页浏览型号PIC16F777-I/PT的Datasheet PDF文件第38页  
PIC16F7X7  
3.3  
Reading the Flash Program  
Memory  
3.4  
Operation During Code-Protect  
Flash program memory has its own code-protect  
mechanism. External read and write operations by  
programmers are disabled if this mechanism is  
enabled.  
A program memory location may be read by writing two  
bytes of the address to the PMADR and PMADRH reg-  
isters and then setting control bit, RD (PMCON1<0>).  
Once the read control bit is set, the microcontroller will  
use the next two instruction cycles to read the data. The  
data is available in the PMDATA and PMDATH  
registers after the second NOPinstruction; therefore, it  
can be read as two bytes in the following instructions.  
The PMDATA and PMDATH registers will hold this  
value until the next read operation.  
The microcontroller can read and execute instructions  
out of the internal Flash program memory, regardless  
of the state of the code-protect configuration bits.  
EXAMPLE 3-1:  
FLASH PROGRAM READ  
BSF  
BCF  
STATUS, RP1  
STATUS, RP0  
ADDRH, W  
PMADRH  
ADDRL, W  
PMADR  
;
; Bank 2  
;
MOVF  
MOVWF  
MOVF  
MOVWF  
BSF  
; MSByte of Program Address to read  
;
; LSByte of Program Address to read  
; Bank 3 Required  
STATUS, RP0  
Required  
Sequence  
BSF  
NOP  
NOP  
PMCON1, RD  
; EEPROM Read Sequence  
; memory is read in the next two cycles after BSF PMCON1,RD  
;
BCF  
MOVF  
MOVF  
STATUS, RP0  
PMDATA, W  
PMDATH, W  
; Bank 2  
; W = LSByte of Program PMDATA  
; W = MSByte of Program PMDATH  
TABLE 3-1:  
REGISTERS ASSOCIATED WITH PROGRAM FLASH  
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1  
Value on  
all other  
Resets  
Value on:  
POR, BOR  
Address Name  
Bit 0  
10Dh  
10Fh  
10Ch  
10Eh  
18Ch  
PMADR EEPROM Address Register Low Byte  
PMADRH  
PMDATA EEPROM Data Register Low Byte  
xxxx xxxx uuuu uuuu  
EEPROM Address Register High Byte ---- xxxx ---u uuuu  
xxxx xxxx uuuu uuuu  
PMDATH  
EEPROM Data Register High Byte  
--xx xxxx --uu uuuu  
PMCON1 reserved(1)  
RD 1--- ---0 1--- ---0  
Legend: x= unknown, u= unchanged, — = unimplemented, read as ‘0’. Shaded cells are not used during Flash access.  
Note 1: This bit always reads as a ‘1’.  
DS30498C-page 32  
2004 Microchip Technology Inc.  
 复制成功!