Page 1 of 1

PIC12F1840 alternate Rx pin not working

Posted: Mon Oct 30, 2017 4:55 pm
by Zane
Hi,

I have been using a PIC12F1840. I have the cal UART component in use and have found that when using default Rx pin on RA1 the RX interrupt works as expected allowing a comms interrupt routine to be called however when the alternate Rx pin on RA5 is used the Rx interrupt does not seem to work.

The RS232 UART component is still unable to select the alternate pins. The option is there to change them but when selected they do not update.

Thanks

Zane

Re: PIC12F1840 alternate Rx pin not working

Posted: Tue Oct 31, 2017 10:41 am
by Benj
Hi Zane,

Hopefully this should solve the pin problems for you? Simply copy to your "Flowcode 7/components" directory and restart Flowcode.
RS232.fcpx
(15.51 KiB) Downloaded 339 times
Not sure why the interrupt wouldn't be working. I'll investigate this for you.

Re: PIC12F1840 alternate Rx pin not working

Posted: Tue Oct 31, 2017 11:10 am
by Benj
Think I've cracked it now.

First you need the latest CAL UART copying to the "Flowcode 7/CAL/PIC" folder.
PIC_CAL_UART.c
(32.25 KiB) Downloaded 307 times
Next you need the latest CAL UART component copying to the "Flowcode 7/Components" folder. You also need the latest RS232 component from the previous post.
cal_uart.fcpx
(11.32 KiB) Downloaded 278 times
Let us know how you get on.

Re: PIC12F1840 alternate Rx pin not working

Posted: Wed Nov 01, 2017 3:27 am
by Zane
Hi Benj

Thanks for creating the fixes for me. I will be able to try them out tomorrow so i will let you know how i get on then.

Thanks

Zane

Re: PIC12F1840 alternate Rx pin not working

Posted: Wed Nov 01, 2017 9:58 pm
by Zane
Hi Benj,

You have worked your magic again. I have tried using both the cal UART and also the RS232 components to send and receive data to the PIC. I have tried using both the default and the alternate pin selections and they all work as required.

Thanks for your help :D .

Zane