dsPIC30F Flash Programming Specification
DS70102K-page 28
2010 Microchip Technology Inc.
8.5.7
ERASEB COMMAND
15
12 11
2
0
Opcode
Length
Reserved
MS
Field
Description
Opcode
0x7
Length
0x2
Reserved 0x0
MS
Select memory to erase:
0x0 = All Code in General Segment
0x1 = All Data EEPROM in General
Segment
0x2 = All Code and Data EEPROM in
General Segment, interrupt vectors and
FGS Configuration register
0x3 = Full Chip Erase
0x4 = All Code and Data EEPROM in
Boot, Secure and General Segments,
and FBS, FSS and FGS Configuration
registers
0x5 = All Code and Data EEPROM in
Secure and General Segments, and
FSS and FGS Configuration registers
0x6 = All Data EEPROM in Boot
Segment
0x7 = All Data EEPROM in Secure
Segment
The ERASEB command performs a Bulk Erase. The MS
field selects the memory to be bulk erased, with options
for erasing Code and/or Data EEPROM in individual
memory segments.
When Full Chip Erase is selected, the following
memory regions are erased:
All code memory (even if code-protected)
All data EEPROM
All code-protect Configuration registers
Only the executive code memory, Unit ID, device ID
and Configuration registers that are not code-protected
remain intact after a Chip Erase.
Expected Response (2 words):
0x1700
0x0002
Note:
A Full Chip Erase cannot be performed in
low-voltage programming systems (VDD
less than 4.5 volts). ERASED and ERASEP
must be used to erase code memory,
executive memory and data memory.
Alternatively, individual Segment Erase
operations may be performed.
8.5.8
ERASED COMMAND
15
12 11
8 7
0
Opcode
Length
Num_Rows
Addr_MSB
Addr_LS
Field
Description
Opcode
0x8
Length
0x3
Num_Rows Number of rows to erase (max of 128)
Addr_MSB
MSB of 24-bit base address
Addr_LS
LS 16 bits of 24-bit base address
The ERASED command erases the specified number of
rows of data EEPROM from the specified base
address. The specified base address must be a
multiple of 0x20. Since the data EEPROM is mapped
to program space, a 24-bit base address must be
specified.
After the erase is performed, all targeted bytes of data
EEPROM will contain 0xFF.
Expected Response (2 words):
0x1800
0x0002
Note:
The ERASED command cannot be used to
erase the Configuration registers or
device ID. Code-protect Configuration
registers can only be erased with the
ERASEB command, while the device ID is
read-only.
相关PDF资料
PIC24FJ64GB002-I/ML IC MCU 16BIT 64KB FLASH 28QFN
52746-1270 CONN FFC 12POS .5MM R/A ZIF SMD
TS80C31X2-MCE IC MCU 8BIT 40/20MHZ 44-VQFP
52746-0870 CONN FFC 8POS .5MM R/A ZIF SMD
PIC24FJ128GA008-I/PT IC PIC MCU FLASH 128K 80TQFP
PIC16F737-I/SP IC PIC MCU FLASH 4KX14 28DIP
PIC18F86K22-I/PTRSL MCU PIC 64K FLASH XLP 80TQFP
PIC16C63A-04I/SP IC MCU OTP 4KX14 PWM 28DIP
相关代理商/技术参数
DSPIC30F1010-30I/W 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:28/44-Pin High-Performance Switch Mode Power Supply Digital Signal Controllers
DSPIC30F1010AT-20E/PF 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:High-Performance, 16-Bit Digital Signal Controllers
DSPIC30F1010AT-20I/PF 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:High-Performance, 16-Bit Digital Signal Controllers
DSPIC30F1010AT-30I/PF 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:High-Performance, 16-Bit Digital Signal Controllers
DSPIC30F1010BT-20I/PF 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:High-Performance, 16-Bit Digital Signal Controllers
DSPIC30F1010BT-30I/PF 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:High-Performance, 16-Bit Digital Signal Controllers
DSPIC30F1010CT-20I/PF 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:High-Performance, 16-Bit Digital Signal Controllers
DSPIC30F1010CT-30I/PF 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:High-Performance, 16-Bit Digital Signal Controllers