PIC16F87X Datasheet

  • PIC16F87X

  • 28/40-pin 8-Bit CMOS FLASH Microcontrollers

  • 1377.31KB

  • Microchip

扫码查看芯片数据手册

上传产品规格书

PDF预览

PIC16F87X
4.8
4.8.1
Protection Against Spurious Write
EEPROM DATA MEMORY
4.9
Operation during Code Protect
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
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
The microcontroller itself can both read and write to the
internal Data EEPROM, regardless of the state of the
code protect configuration bit.
4.9.2
PROGRAM FLASH MEMORY
To protect against spurious writes to FLASH program
memory, the WRT bit in the configuration word may be
programmed to 鈥?鈥?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.
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 memory.
Table 4-1 shows the various configurations and status
of reads and writes. To erase the WRT or code protec-
tion bits in the configuration word requires that the
device be fully erased.
TABLE 4-1:
READ/WRITE STATE OF INTERNAL FLASH PROGRAM MEMORY
Memory Location
Internal
Read
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Internal
Write
No
No
No
Yes
No
No
No
Yes
No
No
Yes
ICSP Read ICSP Write
No
Yes
No
Yes
No
Yes
No
Yes
No
Yes
Yes
No
No
No
No
No
No
No
No
No
Yes
Yes
Configuration Bits
CP1
0
0
0
0
0
1
1
1
1
1
1
CP0
0
1
1
1
1
0
0
0
0
1
1
WRT
x
0
0
1
1
0
0
1
1
0
1
All program memory
Unprotected areas
Protected areas
Unprotected areas
Protected areas
Unprotected areas
Protected areas
Unprotected areas
Protected areas
All program memory
All program memory
TABLE 4-2:
Address
REGISTERS ASSOCIATED WITH DATA EEPROM/PROGRAM FLASH
Bit 7
GIE
Name
Bit 6
PEIE
Bit 5
T0IE
Bit 4
INTE
Bit 3
RBIE
Bit 2
T0IF
Bit 1
INTF
Bit 0
RBIF
Value on:
POR,
BOR
0000 000x
xxxx xxxx
Value on
all other
resets
0000 000u
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
x--- u000
0Bh, 8Bh,
INTCON
10Bh, 18Bh
10Dh
10Fh
10Ch
10Eh
18Ch
18Dh
8Dh
0Dh
EEADR
EEADRH
EEDATA
EEDATH
EECON1
EECON2
PIE2
PIR2
EEPROM address register
鈥?/div>
鈥?/div>
鈥?/div>
EEPROM address high
xxxx xxxx
xxxx xxxx
EEPROM data resister
鈥?/div>
EEPGD
鈥?/div>
鈥?/div>
EEPROM data resister high
鈥?/div>
鈥?/div>
WRERR
WREN
WR
RD
xxxx xxxx
x--- x000
EEPROM control resister2 (not a physical resister)
鈥?/div>
鈥?/div>
(1)
(1)
鈥?/div>
鈥?/div>
EEIE
EEIF
BCLIE
BCLIF
鈥?/div>
鈥?/div>
鈥?/div>
鈥?/div>
CCP2IE
CCP2IF
-r-0 0--0
-r-0 0--0
-r-0 0--0
-r-0 0--0
Legend:
x
= unknown,
u
= unchanged, r = reserved,
-
= unimplemented read as 鈥?鈥? Shaded cells are not used during FLASH/
EEPROM access.
Note 1:
These bits are reserved; always maintain these bits clear.
DS30292B-page 46
1999 Microchip Technology Inc.

PIC16F87X相关型号PDF文件下载

  • 型号
    版本
    描述
    厂商
    下载
  • 英文版
    8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
    MICROCHIP
  • 英文版
    8-Pin, 8-Bit CMOS Microcontroller with EEPROM Data Memory
    MICROCHIP ...
  • 英文版
    8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEP...
    MICROCHIP ...
  • 英文版
    8-Pin, 8-Bit CMOS Microcontrollers
    MICROCHIP ...
  • 英文版
    EPROM Memory Programming Specification
    MICROCHIP ...
  • 英文版
    8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
    MICROCHIP ...
  • 英文版
    Microcontroller
    MICROCHIP
  • 英文版
    Microcontroller 
    Microchip
  • 英文版
    Microcontroller
    ETC
  • 英文版
    EPROM-Based 8-Bit CMOS Microcontroller
    MICROCHIP
  • 英文版
    8-Pin, 8-Bit CMOS Microcontrollers
    MICROCHIP
  • 英文版
    8-Pin, 8-Bit CMOS Microcontrollers
    MICROCHIP ...
  • 英文版
    ETC
  • 英文版
    EPROM Memory Programming Specification
    MICROCHIP
  • 英文版
    EPROM Memory Programming Specification
    MICROCHIP ...
  • 英文版
    28-Pin Programmable Mixed Signal Controller
    Microchip
  • 英文版
    EPROM Memory Programming Specification
    Microchip
  • 英文版
    Microcontroller
    ETC
  • 英文版
    Microcontroller
    ETC
  • 英文版
    EPROM/ROM-Based 8-Bit CMOS Microcontroller Series
    MICROCHIP

扫码下载APP,
一键连接广大的电子世界。

在线人工客服

买家服务:
卖家服务:

0571-85317607

客服在线时间周一至周五
9:00-17:30

关注官方微信号,
第一时间获取资讯。

建议反馈

联系人:

联系方式:

按住滑块,拖拽到最右边
>>
感谢您向阿库提出的宝贵意见,您的参与是维库提升服务的动力!意见一经采纳,将有感恩红包奉上哦!