Page 1 of 1

16F15356 RX interrupt not working.

Posted: Sun Apr 28, 2019 6:06 pm
by medelec35
Attached works with V8 but not with V7
Using UART1 @19200 baud.
Running at VDD of 3V3
Stated baud as if opened in V8 the baud Changes to 9600.

Re: 16F15356 RX interrupt not working.

Posted: Wed May 01, 2019 4:04 pm
by medelec35
Hmmm,
Wonder if it is related to this issue?

Re: 16F15356 RX interrupt not working.

Posted: Wed May 01, 2019 10:02 pm
by medelec35
I'm interested in getting this fixed.
Unfortunately, on further investigation, it does not appear to be the same issue.
With RX1 set to B0,

Code: Select all

RX1DTPPS = 8 & RC1STA = 144
which is correct.
Without trying all the RX remappable pins the only one I can get to work is RC7.
That is also the POR default.

Re: 16F15356 RX interrupt not working.

Posted: Tue May 07, 2019 9:26 am
by medelec35
Unfortunately,
I now require RX interrupt to work on channel 2 as well as on channel 1.
So far had no luck. :(
Using V7 as helping a friend out who has only got V7.

Re: 16F15356 RX interrupt not working.

Posted: Tue May 07, 2019 11:46 am
by Benj
Hi Martin,

Please can you try adding this C code to the top of main and see if this makes any difference.

Code: Select all

ANSELB = 0x00;
Currently missing from the init code section, ports A and C should be ok.

Re: 16F15356 RX interrupt not working.

Posted: Tue May 07, 2019 11:51 am
by medelec35
Hi Ben,
Thank you,
I will try when I get home.
Benj wrote:Currently missing from the init code section, ports A and C should be ok.
medelec35 wrote:Without trying all the RX remappable pins the only one I can get to work is RC7.
I have tried a few of C port and none work apart from RC7

I will compile a table of all the C pins I can't get to work.

Re: 16F15356 RX interrupt not working.

Posted: Tue May 07, 2019 10:26 pm
by medelec35
Hi Ben,
I must have been doing something wrong as with your fix all is good now.
I was probably just having an off day.
The B and C ports seem fine.
Thanks again.