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

PIC16F872-I/SS 参数 Datasheet PDF下载

PIC16F872-I/SS图片预览
型号: PIC16F872-I/SS
PDF下载: 下载PDF文件 查看货源
内容描述: 28引脚, 8位CMOS闪存微控制器 [28-Pin, 8-Bit CMOS FLASH Microcontroller]
分类和应用: 闪存微控制器
文件页数/大小: 160 页 / 2454 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16F872-I/SS的Datasheet PDF文件第30页浏览型号PIC16F872-I/SS的Datasheet PDF文件第31页浏览型号PIC16F872-I/SS的Datasheet PDF文件第32页浏览型号PIC16F872-I/SS的Datasheet PDF文件第33页浏览型号PIC16F872-I/SS的Datasheet PDF文件第35页浏览型号PIC16F872-I/SS的Datasheet PDF文件第36页浏览型号PIC16F872-I/SS的Datasheet PDF文件第37页浏览型号PIC16F872-I/SS的Datasheet PDF文件第38页  
PIC16F872  
4.7  
Write Verify  
4.9  
Operation during Code Protect  
Depending on the application, good programming  
practice may dictate that the value written to the mem-  
ory should be verified against the original value. This  
should be used in applications where excessive writes  
can stress bits near the specification limit.  
Each reprogrammable memory block has its own code  
protect mechanism. External Read and Write opera-  
tions are disabled if either of these mechanisms are  
enabled.  
4.9.1  
DATA EEPROM MEMORY  
Generally a write failure will be a bit which was written  
as a ’1’, but reads back as a ’0’ (due to leakage off the  
bit).  
The microcontroller itself can both read and write to the  
internal Data EEPROM, regardless of the state of the  
code protect configuration bit.  
4.8  
Protection Against Spurious Write  
4.9.2  
PROGRAM FLASH MEMORY  
4.8.1  
EEPROM DATA MEMORY  
The microcontroller can read and execute instructions  
out of the internal FLASH program memory, regardless  
of the state of the code protect configuration bits. How-  
ever, the WRT configuration bit and the code protect  
bits have different effects on writing to program mem-  
ory. Table 4-1 shows the various configurations and  
status of reads and writes. To erase the WRT or code  
protection bits in the configuration word requires that  
the device be fully erased.  
There are conditions when the device may not want to  
write to the data EEPROM memory. To protect against  
spurious EEPROM writes, various mechanisms have  
been built-in. On power-up, the WREN bit is cleared.  
Also, the Power-up Timer (72 ms duration) prevents  
EEPROM write.  
The write initiate sequence and the WREN bit together  
help prevent an accidental write during brown-out,  
power glitch, or software malfunction.  
4.8.2  
PROGRAM FLASH MEMORY  
Note: The PIC16F872 devices can perform self  
writes to any location in program memory  
when not code protected or fully code  
protected.  
To protect against spurious writes to FLASH program  
memory, the WRT bit in the configuration word may be  
programmed to ‘0’ to prevent writes. The write initiate  
sequence must also be followed. WRT and the config-  
uration word cannot be programmed by user code, only  
through the use of an external programmer.  
TABLE 4-1:  
READ/WRITE STATE OF INTERNAL FLASH PROGRAM MEMORY  
Configuration Bits  
Internal  
Read  
Internal  
Write  
Memory Location  
ICSP Read ICSP Write  
CP1  
CP0  
WRT  
0
0
0
0
0
0
1
1
1
1
1
1
0
0
1
1
1
1
0
0
0
0
1
1
1
0
0
0
1
1
0
0
1
1
0
1
All program memory  
All program memory  
Unprotected areas  
Protected areas  
Yes  
Yes  
Yes  
Yes  
Yes  
Yes  
Yes  
Yes  
Yes  
Yes  
Yes  
Yes  
Yes  
No  
No  
No  
Yes  
No  
No  
No  
Yes  
No  
No  
Yes  
No  
No  
No  
No  
No  
No  
No  
No  
No  
No  
No  
No  
Yes  
Yes  
Yes  
No  
Unprotected areas  
Protected areas  
Yes  
No  
Unprotected areas  
Protected areas  
Yes  
No  
Unprotected areas  
Protected areas  
Yes  
No  
All program memory  
All program memory  
Yes  
Yes  
DS30221A-page 34  
Preliminary  
1999 Microchip Technology Inc.  
 复制成功!