2010 Microchip Technology Inc.
DS70102K-page 47
dsPIC30F Flash Programming Specification
11.9
Writing Data EEPROM
The procedure for writing data EEPROM is very similar
to the procedure for writing code memory, except that
fewer words are programmed in each operation. When
writing data EEPROM, one row of data EEPROM is
programmed at a time. Each row consists of sixteen
16-bit data words. Since fewer words are programmed
during each operation, only working registers W0:W3
are used as temporary holding registers for the data to
be programmed.
Table 11-9 shows the ICSP programming details for
writing data EEPROM. Note that a different NVMCON
value is required to write to data EEPROM, and that the
TBLPAG register is hard-coded to 0x7F (the upper byte
address of all locations of data EEPROM).
TABLE 11-9:
SERIAL INSTRUCTION EXECUTION FOR WRITING DATA EEPROM
Command
(Binary)
Data
(Hexadecimal)
Description
Step 1: Exit the Reset vector.
0000
040100
000000
GOTO 0x100
NOP
Step 2: Set the NVMCON to write 16 data words.
0000
24005A
883B0A
MOV
#0x4005, W10
MOV
W10, NVMCON
Step 3: Initialize the write pointer (W7) for TBLWT instruction.
0000
2007F0
880190
2xxxx7
MOV
#0x7F, W0
MOV
W0, TBLPAG
MOV
#<DestinationAddress15:0>, W7
Step 4: Load W0:W3 with the next 4 data words to program.
0000
2xxxx0
2xxxx1
2xxxx2
2xxxx3
MOV
#<WORD0>, W0
MOV
#<WORD1>, W1
MOV
#<WORD2>, W2
MOV
#<WORD3>, W3
Step 5: Set the read pointer (W6) and load the (next set of) write latches.
0000
EB0300
000000
BB1BB6
000000
BB1BB6
000000
BB1BB6
000000
BB1BB6
000000
CLR
W6
NOP
TBLWTL [W6++], [W7++]
NOP
TBLWTL [W6++], [W7++]
NOP
TBLWTL [W6++], [W7++]
NOP
TBLWTL [W6++], [W7++]
NOP
Step 6: Repeat steps 4-5 four times to load the write latches for 16 data words.
相关PDF资料
PIC16LF767-I/ML IC PIC MCU FLASH 8KX14 28QFN
PIC18LF2320-I/SO IC MCU FLASH 4KX16 EEPROM 28SOIC
PIC18F4458-I/ML IC PIC MCU FLASH 12KX16 44QFN
DSPIC33FJ64GP706A-I/PT IC DSPIC MCU/DSP 64K 64-TQFP
PIC16F874-20/P IC MCU FLASH 4KX14 EE 40DIP
DSPIC33FJ64GP706-I/PT IC DSPIC MCU/DSP 64K 64TQFP
PIC24HJ128GP210-I/PT IC PIC MCU FLASH 128KB 100TQFP
84854-101LF METRAL 1000 RCPT 5ROW PRESS FIT
相关代理商/技术参数
dsPIC30F2023-30I/PT 功能描述:数字信号处理器和控制器 - DSP, DSC 12KB 512bytes-RAM 30MIPS 35I/O 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
DSPIC30F2023-30I/PTD32 功能描述:IC DSPIC MCU/DSP 12K 44-TQFP RoHS:是 类别:集成电路 (IC) >> 嵌入式 - 微控制器, 系列:dsPIC™ 30F 产品培训模块:The Ultra-Low Power MSP430 MSP430 Overview MSP430 Design Tools MSP430 Peripherals MSP430 for Utility Metering Solutions MSP430: How to JTAG MSP430, How To Use the Clock System Grace Software Graphical User Interface MCU Overview Driver Library MSP430Ware Overview 标准包装:60 系列:MSP430F2xx 核心处理器:RISC 芯体尺寸:16-位 速度:12MHz 连通性:SPI,UART/USART 外围设备:欠压检测/复位,PWM,WDT 输入/输出数:11 程序存储器容量:4KB(4K x 8) 程序存储器类型:闪存 EEPROM 大小:- RAM 容量:256 x 8 电压 - 电源 (Vcc/Vdd):1.8 V ~ 3.6 V 数据转换器:A/D 3x24b 振荡器型:内部 工作温度:-40°C ~ 85°C 封装/外壳:24-TSSOP(0.173",4.40mm 宽) 包装:管件
dsPIC30F2023T-30I/ML 功能描述:数字信号处理器和控制器 - DSP, DSC 12KB 512bytes-RAM 30MIPS 35I/O 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
dsPIC30F2023T-30I/PT 功能描述:数字信号处理器和控制器 - DSP, DSC 12KB 512bytes-RAM 30MIPS 35I/O 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
dsPIC30F3010-20E/ML 功能描述:数字信号处理器和控制器 - DSP, DSC 44LD 20MIPS 24 KB 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
dsPIC30F3010-20E/SO 功能描述:数字信号处理器和控制器 - DSP, DSC 28LD 20MIPS 24 KB 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
dsPIC30F3010-20E/SP 功能描述:数字信号处理器和控制器 - DSP, DSC 28LD 20MIPS 24 KB 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
dsPIC30F3010-20I/ML 功能描述:数字信号处理器和控制器 - DSP, DSC 44LD 20MIPS 24 KB 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