Page 1 of 1

PIC12F1840 remappable pin function

Posted: Wed Oct 11, 2017 5:39 am
by Zane
Hi

I have started a project using a PIC12F1840. The PIC has remappable pins for different functions on the chip. Is it possible when using the UART component to be able to incorporate this remap pin function for this chip as is done with other chips supported by FC7? If so that would be most appreciated.

Thanks

Zane

Re: PIC12F1840 remappable pin function

Posted: Wed Oct 11, 2017 10:04 am
by Benj
Hi Zane,

If you use the CAL UART component from the Tools Component Menu instead of the UART component then it has options to allow you to use the Alt pins on the 12F1840 device. It looks like these options haven't yet been exposed in the UART component.

Re: PIC12F1840 remappable pin function

Posted: Wed Oct 11, 2017 10:12 am
by Benj
I found a bug with the CAL UART where the TX Alt setting was controlling both the TX and RX pins. Should be fixed now.

I've also brought the settings through to the UART component now too.

Simply copy the attached into your "Flowcode 7/components" folder and restart Flowcode.
cal_uart.fcpx
(11.07 KiB) Downloaded 336 times
RS232.fcpx
(15.49 KiB) Downloaded 341 times

Re: PIC12F1840 remappable pin function

Posted: Wed Oct 11, 2017 10:20 am
by Zane
Hi Ben,

Thanks once again for your good work. I will give this a try tomorrow and let you know how it goes.

Thanks

Zane

Re: PIC12F1840 remappable pin function

Posted: Wed Oct 11, 2017 5:59 pm
by Zane
Hi Ben,

I have tried the two separate components. The CAL_UART component works fine. The RS232 component when selecting the alternate pins, the TX and RX pin connections do not update.

Thanks

Zane