I am working on PIC24HJ64GP502 and checked my ..\MPLAB IDE\Device\ directory for the *.dev files. Apparently in the PIC24HJ64GPx02.dev files the special function registers have different address from what the datasheet indicated:
sfr (key=NVMCON addr=0x762 size=2 access='rs rw rw u u u u u u rw u u rw rw rw rw')
sfr (key=NVMKEY addr=0x768 size=2 access='u u u u u u u u w w w w w w w w')
sfr (key=PMD1 addr=0x772 size=2 access='rw rw rw rw rw rw rw rw rw rw rw rw rw u rw rw')
sfr (key=PMD2 addr=0x774 size=2 access='rw rw u u u u rw rw u u u u rw rw rw rw')
sfr (key=PMD3 addr=0x776 size=2 access='u u u u u rw rw rw u u u u u u rw u')
From the datasheet, for instance, NVMKEY should be located at 0x766 instead of 0x768. Looking through other device files of the same family, they are all pointing to address 0x766.
I just want to confirm that the device files are wrong and the datasheet is correct. Please verify for me, thanks.
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Sat Nov 15, 2008 11:43 pm
If you have a question about MPLAB files, you should ask it in one of
the Microchip forums, not the CCS forum. Here's the link:
http://forum.microchip.com/
You want this section:
Quote:
[16 bit Microcontrollers & Digital Signal controllers]
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum