Page 1 of 1

24FxxKA10x missing RB2 and RB7

Posted: Sun Oct 28, 2018 12:50 am
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.

Re: 24FxxKA10x missing RB2 and RB7

Posted: Mon Oct 29, 2018 11:01 am
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.

Re: 24FxxKA10x missing RB2 and RB7

Posted: Tue Oct 30, 2018 6:05 am
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.