dsPIC30F Flash Programming Specification
DS70102K-page 38
2010 Microchip Technology Inc.
Table 11-4 shows the ICSP programming process for
bulk-erasing program memory. This process includes
the ICSP command code, which must be transmitted
(for each instruction) to the Least Significant bit first
using the PGC and PGD pins (see Figure 11-2).
If an individual Segment Erase operation is required,
the NVMCON value must be replaced by the value for
Note:
Program memory must be erased before
writing any data to program memory.
the corresponding Segment Erase operation.
TABLE 11-4:
SERIAL INSTRUCTION EXECUTION FOR BULK ERASING PROGRAM MEMORY
(ONLY IN NORMAL-VOLTAGE SYSTEMS)
Command
(Binary)
Data
(Hexadecimal)
Description
Step 1: Exit the Reset vector.
0000
040100
000000
GOTO 0x100
NOP
Step 2: Set NVMCON to program the FBS Configuration register.(1)
0000
24008A
883B0A
MOV
#0x4008, W10
MOV
W10, NVMCON
Step 3: Initialize the TBLPAG and write pointer (W7) for TBLWT instruction for Configuration register.(1)
0000
200F80
880190
200067
MOV
#0xF8, W0
MOV
W0, TBLPAG
MOV
#0x6, W7
Step 4: Load the Configuration Register data to W6.(1)
0000
EB0300
000000
CLR
W6
NOP
Step 5: Load the Configuration Register write latch. Advance W7 to point to next Configuration register.(1)
0000
BB1B86
TBLWTL W6, [W7++]
Step 6: Unlock the NVMCON for programming the Configuration register.(1)
0000
200558
200AA9
883B38
883B39
MOV
#0x55, W8
MOV
#0xAA, W9
MOV
W8, NVMKEY
MOV
W9, NVMKEY
Step 7: Initiate the programming cycle.(1)
0000
0000
A8E761
000000
000000
A9E761
000000
BSET NVMCON, #WR
NOP
Externally time 2 ms
NOP
BCLR NVMCON, #WR
NOP
Step 8: Repeat steps 5-7 one time to program 0x0000 to RESERVED2 Configuration register.(1)
Step 9: Set the NVMCON to erase all Program Memory.
00000
0000
2407FA
883B0A
MOV
#0x407F, W10
MOV
W10, NVMCON
Step 10: Unlock the NVMCON for programming.
Note 1: Steps 2-8 are only required for the dsPIC30F5011/5013 devices. These steps may be skipped for all other
devices in the dsPIC30F family.
相关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