Page 1 of 1

PIC24FJ128GC006 RF7 unuseable

Posted: Mon Oct 02, 2017 5:16 pm
by Quartz
Hi

Benj previously posted the necessary files so we can use the PIC24FJ128GC006 with FC7.

However using them I am unable to use pin 7 of port F (VBUS & RF7) as a digital port pin .

PIC24FJ128GC006.jpg
PIC24FJ128GC006.jpg (89.35 KiB) Viewed 1729 times



Regards

Re: PIC24FJ128GC006 RF7 unuseable

Posted: Tue Oct 03, 2017 6:02 pm
by Benj
Hello,

Hmm the datasheet is a little unclear on this for the 006 devices the pin is simply marked as VBUS. For the 010 devices the pin is marked VBUS/RF7.

I have tweaked the definition file so let us know how you get on with it, simply copy it into your "Flowcode 7/FCD/PIC16" folder and restart Flowcode.

24FJ128GC006.fcdx
(46.1 KiB) Downloaded 38 times

Re: PIC24FJ128GC006 RF7 unuseable

Posted: Tue Oct 03, 2017 8:10 pm
by Quartz
Hi Thanks for that

I'll give it a go later today.

I understand what you say about the datasheet but I can't explain why it's not correct.
I have a board populated with a PIC24FJ128GC006 and a gLCD with a Red, Green & Blue LED backlights, one of which is connected to pin 34 (VBUS) and using that as F7 output in MPLABX works fine.

The code configurator of MPLABX allows pins 0, 1, 3, 4, 5 & 7 of the F register to be configured as input or output, so there is a difference between their software and their datasheet.

I'll let you know how I get on with the new definition file.

Thanks again

Re: PIC24FJ128GC006 RF7 unuseable

Posted: Tue Oct 03, 2017 9:48 pm
by Quartz
Hi Benj

I have used the new chip definition file in FC7. On the PIC24FJ128GC006 I used port F7 to flash a led, I programmed the chip from FC7 and the code works fine with that port pin thank you.

I'm trying to get to know the chip and the board it's on so that I can reprogram it to do some of the things it does now a bit smarter so I'll be building on the parts of the chip I use as time goes on. If I come across any other issues I'll post them

Regards

Re: PIC24FJ128GC006 RF7 unuseable

Posted: Wed Oct 04, 2017 10:01 am
by Benj
Many thanks for letting us know it works. I'll roll out the change to the rest of the devices in the family.

Let me know if you spot anything else that looks incorrect.