PIC24FJ128GC006 RF7 unuseable

An area to discuss 16-bit PIC specific problems and examples

Moderator: Benj

Post Reply
Quartz
Posts: 18
Joined: Sat May 20, 2017 7:39 pm
Has thanked: 5 times
Been thanked: 8 times
Contact:

PIC24FJ128GC006 RF7 unuseable

Post 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 7266 times

Regards

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: PIC24FJ128GC006 RF7 unuseable

Post 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 273 times

Quartz
Posts: 18
Joined: Sat May 20, 2017 7:39 pm
Has thanked: 5 times
Been thanked: 8 times
Contact:

Re: PIC24FJ128GC006 RF7 unuseable

Post 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

Quartz
Posts: 18
Joined: Sat May 20, 2017 7:39 pm
Has thanked: 5 times
Been thanked: 8 times
Contact:

Re: PIC24FJ128GC006 RF7 unuseable

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: PIC24FJ128GC006 RF7 unuseable

Post 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.

Post Reply