DSPIC30F5016 Microchip Technology Inc., DSPIC30F5016 Datasheet - Page 60
DSPIC30F5016
Manufacturer Part Number
DSPIC30F5016
Description
Dspic30f5015/5016 Enhanced Flash 16-bit Digital Signal Controller
Manufacturer
Microchip Technology Inc.
Datasheet
1.DSPIC30F5016.pdf
(230 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
DSPIC30F5016-20E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Company:
Part Number:
DSPIC30F5016-20I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Company:
Part Number:
DSPIC30F5016-30I/PT
Manufacturer:
MICROCHIP
Quantity:
624
Company:
Part Number:
DSPIC30F5016-30I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
DSPIC30F5016-30I/PT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
DSPIC30F5016T-20E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Company:
Part Number:
DSPIC30F5016T-20I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
- Current page: 60 of 230
- Download datasheet (4Mb)
dsPIC30F5015/5016
7.3.2
To write a block of data EEPROM, write to all sixteen
latches first, then set the NVMCON register and
program the block.
EXAMPLE 7-5:
7.4
Depending on the application, good programming
practice may dictate that the value written to the mem-
ory should be verified against the original value. This
should be used in applications where excessive writes
can stress bits near the specification limit.
DS70149C-page 58
MOV
MOV
MOV
MOV
TBLWTL
MOV
TBLWTL
MOV
TBLWTL
MOV
TBLWTL
MOV
TBLWTL
MOV
TBLWTL
MOV
TBLWTL
MOV
TBLWTL
MOV
TBLWTL
MOV
TBLWTL
MOV
TBLWTL
MOV
TBLWTL
MOV
TBLWTL
MOV
TBLWTL
MOV
TBLWTL
MOV
TBLWTL
MOV
MOV
DISI
MOV
MOV
MOV
MOV
BSET
NOP
NOP
Write Verify
WRITING A BLOCK OF DATA
EEPROM
#LOW_ADDR_WORD,W0
#HIGH_ADDR_WORD,W1
W1
#data1,W2
W2
#data2,W2
W2
#data3,W2
W2
#data4,W2
W2
#data5,W2
W2
#data6,W2
W2
#data7,W2
W2
#data8,W2
W2
#data9,W2
W2
#data10,W2
W2
#data11,W2
W2
#data12,W2
W2
#data13,W2
W2
#data14,W2
W2
#data15,W2
W2
#data16,W2
W2
#0x400A,W0
W0
#5
#0x55,W0
W0
#0xAA,W1
W1
NVMCON,#WR
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
TBLPAG
[ W0]++
[ W0]++
[ W0]++
[ W0]++
[ W0]++
[ W0]++
[ W0]++
[ W0]++
[ W0]++
[ W0]++
[ W0]++
[ W0]++
[ W0]++
[ W0]++
[ W0]++
[ W0]++
NVMCON
NVMKEY
NVMKEY
DATA EEPROM BLOCK WRITE
; Init pointer
; Get 1st data
; write data
; Get 2nd data
; write data
; Get 3rd data
; write data
; Get 4th data
; write data
; Get 5th data
; write data
; Get 6th data
; write data
; Get 7th data
; write data
; Get 8th data
; write data
; Get 9th data
; write data
; Get 10th data
; write data
; Get 11th data
; write data
; Get 12th data
; write data
; Get 13th data
; write data
; Get 14th data
; write data
; Get 15th data
; write data
; Get 16th data
; write data. The NVMADR captures last table access address.
; Select data EEPROM for multi word op
; Operate Key to allow program operation
; Block all interrupts with priority <7
; for next 5 instructions
; Write the 0x55 key
; Write the 0xAA key
; Start write cycle
7.5
There are conditions when the device may not want to
write to the data EEPROM memory. To protect against
spurious EEPROM writes, various mechanisms have
been built-in. On power-up, the WREN bit is cleared;
also, the Power-up Timer prevents EEPROM write.
The write initiate sequence and the WREN bit together
help prevent an accidental write during brown-out,
power glitch or software malfunction.
Protection Against Spurious Write
© 2007 Microchip Technology Inc.
Related parts for DSPIC30F5016
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
IC DSPIC MCU/DSP 6K 28SOIC
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC DSPIC MCU/DSP 32K 28QFN
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC DSPIC MCU/DSP 16K 28-SOIC
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC DSPIC MCU/DSP 64K 28-SOIC
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC DSPIC MCU/DSP 64K 64-TQFP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC DSPIC MCU/DSP 48K 44TQFP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC DSPIC MCU/DSP 48K 44TQFP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC DSPIC MCU/DSP 66K 64TQFP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC DSPIC MCU/DSP 66K 80TQFP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC DSPIC MCU/DSP 132K 64TQFP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC DSPIC MCU/DSP 144K 64TQFP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC DSPIC MCU/DSP 132K 80TQFP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC DSPIC MCU/DSP 144K 80TQFP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC DSPIC MCU/DSP 144K 80TQFP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC DSPIC MCU/DSP 32K 28SOIC
Manufacturer:
Microchip Technology
Datasheet: