“ DISI #5 ; Block all interrupts with priority <7
; for next 5 instructions
MOV.B #0x55, W0
MOV W0, NVMKEY ; Write the 0x55 key
MOV.B #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”
这是我启动擦、写时的启动序列,查了好多资料,提供的例程也都和这个是一样的。只是一直不明白为什么执行“BSET NVMCON, #WR ”后WR位没有置1.
|