• AVR Freaks

Hot!PIC32MZ Quad word Programming without PE

Author
Wangxin
New Member
  • Total Posts : 24
  • Reward points : 0
  • Joined: 2018/03/16 05:03:15
  • Location: 0
  • Status: offline
2019/11/14 21:44:02 (permalink)
0

PIC32MZ Quad word Programming without PE

PIC32MZ Quad word Programming without PE
 
how to load
 NVMDATA3:NVMDATA2:NVMDATA1:NVMDATA0 register with XferInstruction (op code).
post edited by Wangxin - 2019/11/14 23:26:42
#1

1 Reply Related Threads

    Wangxin
    New Member
    • Total Posts : 24
    • Reward points : 0
    • Joined: 2018/03/16 05:03:15
    • Location: 0
    • Status: offline
    Re: PIC32MZ Quad word Programming without PE 2019/11/15 21:46:41 (permalink)
    0
    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
    #2
    Jump to:
    © 2019 APG vNext Commercial Version 4.5