[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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…