Syntax:
SAFEraseBlock ( block_number )
Command Availability:
Available on all PIC micro-controllers with SAFM memory.
Explanation:
SAFEraseBlock is used to erase all data locations within the SAFM block. HEFM data within the HEFM block to the erase state
value of the device.
This Value is 0xFF for each location and will read 0xFFFF if the program memory word is displayed.
Use Caution. Once the SAFM block is erased, the SAFEM data is gone forever and cannot be recovered unless it was previpusly
saved.
The single parameter is as follows:
block_number
represents the block to be erased.
The block_number parameter is used to calculate the physical memory location(s) that are updated.
Example 1:
Erase a specific block of SAFEM.
'... code preamble to select part '... code to setup PPS, if needed '... code to setup serial, if needed 'Erase block 2 of HEFM HEFEraseBlock ( 2)
See also
SAFM Overview,
SAFRead,
SAFReadWord,
SAFWrite,
SAFWriteWord,
SAFReadBlock,
SAFWriteBlock,
SAFEraseBlock