24FxxKA10x missing RB2 and RB7

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

kejam
Posts: 3
Joined: Sat Oct 27, 2018 5:04 am
Been thanked: 1 time
Contact:

24FxxKA10x missing RB2 and RB7

Postby kejam » Sun Oct 28, 2018 12:50 am

I'm developing a product with low cost low power 24F16KA family and I'm not able to use full I/O in port functions. RB2 and RB7 are unselectable.
Would prefer not to use supplementary code if at all possible.

Can someone check for me, start a new project and add an LED and try to attach it to either of these pins.

Is there anywhere I can edit the pin maps?

Thanks.
Kevin.

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

Re: 24FxxKA10x missing RB2 and RB7

Postby Benj » Mon Oct 29, 2018 11:01 am

Hi Kevin,

Yes the pins are editable by loading the .fcd definition file into a text editor.

FCD files are located here: "Flowcode 5\dsPIC\FCD"

The file contains sections like this.

[Pins]
Pin1 = "MCLR / RA5"
Pin2 = "AN0 / VREF+ / RA0"
....

[Ports]
PortPin1=0x0005
PortPin2=0x0000
....

[PortMasks]
PortMask0=0x007F
PortMask1=0xF313


Pins section - lets you set the user label of the pin
Ports section - lets you assign a chip pin to a port
portmasks section - indicates which bits of a port are available.

kejam
Posts: 3
Joined: Sat Oct 27, 2018 5:04 am
Been thanked: 1 time
Contact:

Re: 24FxxKA10x missing RB2 and RB7

Postby kejam » Tue Oct 30, 2018 6:05 am

Thank you Benj for your reply, I'll give it a go, and thanks also for the help you gave here, viewtopic.php?f=54&t=15269&p=62505&hilit=Nvmadr#p62505

I couldn't compile because of this error also, after adding the type2 version to the eprom.c file all worked OK.
Pitty a compile error search doesn't cover all forums at once.

Cheers
Kev.
These users thanked the author kejam for the post:
Benj (Tue Oct 30, 2018 3:23 pm)
Rating: 5.26%