PIC24FJ128GC006 RF7 unuseable

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

Moderator: Benj

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

PIC24FJ128GC006 RF7 unuseable

Postby Quartz » Mon Oct 02, 2017 5:16 pm

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 2050 times



Regards

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

Re: PIC24FJ128GC006 RF7 unuseable

Postby Benj » Tue Oct 03, 2017 6:02 pm

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 52 times
These users thanked the author Benj for the post:
Quartz (Tue Oct 03, 2017 7:38 pm)
Rating: 5.26%
 

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

Re: PIC24FJ128GC006 RF7 unuseable

Postby Quartz » Tue Oct 03, 2017 8:10 pm

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
These users thanked the author Quartz for the post:
Benj (Wed Oct 04, 2017 10:00 am)
Rating: 5.26%
 

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

Re: PIC24FJ128GC006 RF7 unuseable

Postby Quartz » Tue Oct 03, 2017 9:48 pm

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
These users thanked the author Quartz for the post:
Benj (Wed Oct 04, 2017 10:00 am)
Rating: 5.26%
 

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

Re: PIC24FJ128GC006 RF7 unuseable

Postby Benj » Wed Oct 04, 2017 10:01 am

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.