Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC16LF870/SP Datasheet(PDF) 44 Page - Microchip Technology

Part # PIC16LF870/SP
Description  28/40-Pin 8-Bit CMOS FLASH Microcontrollers
PDF  156 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16LF870/SP Datasheet(HTML) 44 Page - Microchip Technology

Back Button PIC16LF870/SP Datasheet HTML 40Page - Microchip Technology PIC16LF870/SP Datasheet HTML 41Page - Microchip Technology PIC16LF870/SP Datasheet HTML 42Page - Microchip Technology PIC16LF870/SP Datasheet HTML 43Page - Microchip Technology PIC16LF870/SP Datasheet HTML 44Page - Microchip Technology PIC16LF870/SP Datasheet HTML 45Page - Microchip Technology PIC16LF870/SP Datasheet HTML 46Page - Microchip Technology PIC16LF870/SP Datasheet HTML 47Page - Microchip Technology PIC16LF870/SP Datasheet HTML 48Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 44 / 156 page
background image
PIC16F870/871
DS30569A-page 44
Preliminary
© 1999 Microchip Technology Inc.
4.7
Write Verify
Depending on the application, good programming prac-
tice may dictate that the value written to the memory
should be verified against the original value. This
should be used in applications where excessive writes
can stress bits near the specification limit.
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).
4.8
Protection Against Spurious Write
4.8.1
EEPROM DATA MEMORY
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
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 configu-
ration word cannot be programmed by user code, only
through the use of an external programmer.
4.9
Operation during Code Protect
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.
When data memory is code protected (CONFIG<8>=0)
any further external programming access of program
memory is disabled. To reenable programming access
to program memory, both bulk erase and removal of
code protection must be performed on program and
data memory.
4.9.2
PROGRAM FLASH 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.
TABLE 4-1:
READ/WRITE STATE OF INTERNAL FLASH PROGRAM MEMORY
Configuration Bits
Memory Location
Internal
Read
Internal
Write
ICSP Read ICSP Write
CP1
CP0
WRT
00
1
All program memory
Yes
Yes
No
No
00
0
All program memory
Yes
No
No
No
11
0
All program memory
Yes
No
Yes
Yes
11
1
All program memory
Yes
Yes
Yes
Yes



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com