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.
16F15356 RX interrupt not working.
Moderator: Benj
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
16F15356 RX interrupt not working.
- Attachments
-
- UART Test 16F15356.fcfx
- (19.76 KiB) Downloaded 237 times
Martin
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: 16F15356 RX interrupt not working.
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, 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.
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
Without trying all the RX remappable pins the only one I can get to work is RC7.
That is also the POR default.
Martin
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: 16F15356 RX interrupt not working.
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.
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.
Martin
- 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: 16F15356 RX interrupt not working.
Hi Martin,
Please can you try adding this C code to the top of main and see if this makes any difference.
Currently missing from the init code section, ports A and C should be ok.
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;
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: 16F15356 RX interrupt not working.
Hi Ben,
Thank you,
I will try when I get home.
I will compile a table of all the C pins I can't get to work.
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.
I have tried a few of C port and none work apart from RC7medelec35 wrote:Without trying all the RX remappable pins the only one I can get to work is RC7.
I will compile a table of all the C pins I can't get to work.
Martin
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: 16F15356 RX interrupt not working.
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.
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.
Martin