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

Post Reply
kejam
Posts: 7
Joined: Sat Oct 27, 2018 5:04 am
Has thanked: 1 time
Been thanked: 8 times
Contact:

24FxxKA10x missing RB2 and RB7

Post by kejam »

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: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: 24FxxKA10x missing RB2 and RB7

Post by Benj »

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: 7
Joined: Sat Oct 27, 2018 5:04 am
Has thanked: 1 time
Been thanked: 8 times
Contact:

Re: 24FxxKA10x missing RB2 and RB7

Post by kejam »

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.

Post Reply