Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC24F16KA102, Unknown firmware version [solved]
#9
Hello again,
Here's the solution, replace the following code
Code:
        ;----------------------------------------------------------------------        
        ; Erase & write row
        ;----------------------------------------------------------------------        
        ; Erase row
program:tblwtl    WADDR, [WADDR]        ;??? "Set base address of erase block", equivalent to setting nvmadr/u in dsPIC30F?
        mov        #0x4058, W0
        rcall    Write
        ; Load latches
        mov     #ROWSIZEW, WCNT
latlo:    tblwth.b     [WBUFPTR++], [WADDR]     ;upper byte
        tblwtl.b    [WBUFPTR++], [WADDR++]     ;low byte
        tblwtl.b    [WBUFPTR++], [WADDR++]     ;high byte    
        dec     WCNT, WCNT
        bra     nz, latlo
        ; Write row
        mov     #0x4004, W0        
        rcall     Write
Reply


Messages In This Thread
RE: PIC24F16KA102, Unknown firmware version - by Mikael Gustavsson - 2011-01-21, 21:17:47
RE: PIC24F16KA102, Unknown firmware version - by recoo - 2012-03-15, 04:39:56

Forum Jump:


Users browsing this thread: 3 Guest(s)