dsPIC30F Flash Programming Specification
DS70102K-page 40
2010 Microchip Technology Inc.
11.6
Erasing Program Memory in
Low-Voltage Systems
The procedure for erasing program memory (all code
memory and data memory) in low-voltage systems
(with VDD between 2.5 volts and 4.5 volts) is quite
different than the procedure for erasing program
memory in normal-voltage systems. Instead of using a
Bulk Erase operation, each region of memory must be
individually erased by row. Namely, all of the code
memory, executive memory and data memory must be
erased one row at a time. This procedure is detailed in
Due to security restrictions, the FBS, FSS and FGS
register cannot be erased in low-voltage systems.
Once any bits in the FGS register are programmed to
‘0’, they can only be set back to ‘1’ by performing a Bulk
Erase in a normal-voltage system. Alternatively, a Seg-
ment Erase operation can be performed instead of a
Bulk Erase.
Normal-voltage systems can also be used to erase
program memory as shown in Table 11-5. However,
since this method is more time-consuming and does
not clear the code-protect bits, it is not recommended.
Note:
Program memory must be erased before
writing any data to program memory.
TABLE 11-5:
SERIAL INSTRUCTION EXECUTION FOR ERASING PROGRAM MEMORY
(EITHER IN LOW-VOLTAGE OR NORMAL-VOLTAGE SYSTEMS)
Command
(Binary)
Data
(Hexadecimal)
Description
Step 1: Exit the Reset vector.
0000
040100
000000
GOTO 0x100
NOP
Step 2: Initialize NVMADR and NVMADRU to erase code memory and initialize W7 for row address updates.
0000
EB0300
883B16
883B26
200407
CLR
W6
MOV
W6, NVMADR
MOV
W6, NVMADRU
MOV
#0x40, W7
Step 3: Set NVMCON to erase 1 row of code memory.
0000
24071A
883B0A
MOV
#0x4071, W10
MOV
W10, NVMCON
Step 4: Unlock the NVMCON to erase 1 row of code memory.
0000
200558
883B38
200AA9
883B39
MOV
#0x55, W8
MOV
W8, NVMKEY
MOV
#0xAA, W9
MOV
W9, NVMKEY
Step 5: Initiate the erase cycle.
0000
0000
A8E761
000000
000000
A9E761
000000
BSET NVMCON, #WR
NOP
Externally time ‘P13a’ ms (see Section 13.0 “AC/DC Characteristics and
NOP
BCLR NVMCON, #WR
NOP
相关PDF资料
PIC18F24J10-I/SP IC PIC MCU FLASH 8KX16 28-DIP
PIC18LF23K22-I/SO IC PIC MCU 8KB FLASH 28SOIC
PIC16F639-E/P IC MCU FLASH 2KX14 20DIP
PIC12F635T-I/MF IC MCU FLASH 1KX14 8DFN
PIC12F635-E/MF IC MCU FLASH 1KX14 8DFN
DSPIC30F6014T-20I/PF IC DSPIC MCU/DSP 144K 80TQFP
DSPIC30F6013T-20I/PF IC DSPIC MCU/DSP 132K 80TQFP
DSPIC30F6012T-30I/PF IC DSPIC MCU/DSP 144K 64TQFP
相关代理商/技术参数
DSPIC30F2010T-20I/SOG 功能描述:数字信号处理器和控制器 - DSP, DSC DIG SIG CONTR Lead Free Package RoHS:否 制造商:Microchip Technology 核心:dsPIC 数据总线宽度:16 bit 程序存储器大小:16 KB 数据 RAM 大小:2 KB 最大时钟频率:40 MHz 可编程输入/输出端数量:35 定时器数量:3 设备每秒兆指令数:50 MIPs 工作电源电压:3.3 V 最大工作温度:+ 85 C 封装 / 箱体:TQFP-44 安装风格:SMD/SMT
dsPIC30F2010T-30I/MM 功能描述:数字信号处理器和控制器 - DSP, DSC 16B MCU DSP 28LD 20MIPS 12KB FLASH RoHS:否 制造商:Microchip Technology 核心:dsPIC 数据总线宽度:16 bit 程序存储器大小:16 KB 数据 RAM 大小:2 KB 最大时钟频率:40 MHz 可编程输入/输出端数量:35 定时器数量:3 设备每秒兆指令数:50 MIPs 工作电源电压:3.3 V 最大工作温度:+ 85 C 封装 / 箱体:TQFP-44 安装风格:SMD/SMT
DSPIC30F2010T-30I/MMG 功能描述:数字信号处理器和控制器 - DSP, DSC 16 Bit MCU/DSP 28LD 30M 12KB FL RoHS:否 制造商:Microchip Technology 核心:dsPIC 数据总线宽度:16 bit 程序存储器大小:16 KB 数据 RAM 大小:2 KB 最大时钟频率:40 MHz 可编程输入/输出端数量:35 定时器数量:3 设备每秒兆指令数:50 MIPs 工作电源电压:3.3 V 最大工作温度:+ 85 C 封装 / 箱体:TQFP-44 安装风格:SMD/SMT
DSPIC30F2010T-30I/SO 功能描述:数字信号处理器和控制器 - DSP, DSC 20MHz 12KB Flash RoHS:否 制造商:Microchip Technology 核心:dsPIC 数据总线宽度:16 bit 程序存储器大小:16 KB 数据 RAM 大小:2 KB 最大时钟频率:40 MHz 可编程输入/输出端数量:35 定时器数量:3 设备每秒兆指令数:50 MIPs 工作电源电压:3.3 V 最大工作温度:+ 85 C 封装 / 箱体:TQFP-44 安装风格:SMD/SMT
DSPIC30F2010T-30I/SOG 功能描述:数字信号处理器和控制器 - DSP, DSC 16 Bit MCU/DSP 28LD 30M 12KB FL RoHS:否 制造商:Microchip Technology 核心:dsPIC 数据总线宽度:16 bit 程序存储器大小:16 KB 数据 RAM 大小:2 KB 最大时钟频率:40 MHz 可编程输入/输出端数量:35 定时器数量:3 设备每秒兆指令数:50 MIPs 工作电源电压:3.3 V 最大工作温度:+ 85 C 封装 / 箱体:TQFP-44 安装风格:SMD/SMT
DSPIC30F2011 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:High-Performance, 16-Bit Digital Signal Controllers
DSPIC30F2011_06 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:High-Performance, 16-Bit Digital Signal Controllers
DSPIC30F2011_08 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:High-Performance, 16-bit Digital Signal Controllers