PIC12F1840 remappable pin function

Please add any feature requests for Flowcode version 7 here

Moderator: Benj

Post Reply
Zane
Flowcode v5 User
Posts: 199
Joined: Thu Sep 10, 2009 10:57 pm
Location: New Zealand
Has thanked: 93 times
Been thanked: 76 times
Contact:

PIC12F1840 remappable pin function

Post 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

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: PIC12F1840 remappable pin function

Post 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.

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: PIC12F1840 remappable pin function

Post 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 291 times
RS232.fcpx
(15.49 KiB) Downloaded 267 times

Zane
Flowcode v5 User
Posts: 199
Joined: Thu Sep 10, 2009 10:57 pm
Location: New Zealand
Has thanked: 93 times
Been thanked: 76 times
Contact:

Re: PIC12F1840 remappable pin function

Post 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

Zane
Flowcode v5 User
Posts: 199
Joined: Thu Sep 10, 2009 10:57 pm
Location: New Zealand
Has thanked: 93 times
Been thanked: 76 times
Contact:

Re: PIC12F1840 remappable pin function

Post 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

Post Reply