Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] [dspic30f] NVMKEY doesn't change value

Status
Not open for further replies.

Adriano Pizzolante

Newbie level 3
Joined
Jan 10, 2014
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
13
Hi,
I read about flashing program memory in datasheet (dspic30f5013 and dspic30f family).
I tried to write in PM doing erase row and then write row but when we change the key sequence (NVMKEY register) its value doesn't change in the mplab watch (MPLAB runs in debug mode).
e.g.

Code:
MOV #0x55,W0
MOV W0,NVMKEY ; Write the 0x55 key
MOV #0xAA,W1 ;
MOV W1,NVMKEY ; Write the 0xAA key
BSET NVMCON,#WR ; Start the erase sequence
NOP ; Insert two NOPs after the erase
NOP ; command is asserted

Why doesn't NVMKEY change?

Thanks
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top