Re: PIC32MZ Quad word Programming without PE
2019/11/15 21:46:41
(permalink)
Solved by myself
1.Set register a0 to the base address of the NVM register (0xBF80_0600).
XferInstruction (32'h3c04bf80).
XferInstruction (32'h34840600).
2. Set the NVMDATAx register
XferInstruction (0x3c10<data31:16> ). //lui s0, <DATA(31:16)>
XferInstruction (0x3610<data15:00>). //ori s0,s0,<DATA(15:0)>
XferInstruction (ac9000<offset). ///sw s0,offset(a0)
Note: NVMDATA0:NVMDATA1:NVMDATA2:NVMDATA3 Registet offset :=30/ 40/ 50 /60