RS232 data corruption
Posted: Fri Aug 23, 2019 11:03 am
Hi,
I installed FC8 recently and experienced the same issues as those experienced by mnf. I uninstalled and reinstalled FC8, without success and then followed Daniels advice which resolved the problem (viewtopic.php?f=78&t=21435).
After experiencing some problems with RS232 communications on a custom board, I went back to basics and, using FC8.2.1.13, Eblocks and an example flowchart (that just echoed typed characters back to source, downloaded from https://www.matrixtsl.com/wiki/images/5 ... mple3.fcfx), I got the following results:
PIC16F877A - default settings - Typed char echoed correctly
dsPIC30F4013 - UART channel 1 - Typed char echoed correctly
PIC24FJ128GA202 - UART channel 1, pins B0 and B5 - Typed char echoed correctly
PIC24FJ128GA202- UART channel 1, pins B8 and B13 - Typed char echoed correctly
PIC24FJ128GA202- UART software channel (still on pins B8 and B13), Tx and Rx Alt pin selection = No, - garbage returned
PIC24FJ128GA202- UART software channel (still on pins B8 and B13), Tx and Rx Alt pin selection = Yes - garbage returned
PIC24FJ256GA406 - Custom PCB with all UARTs set to software channels, using various pins, - garbage returned
It seems that the problem only exists when using the UART software channel option and I found that the typed characters are corrupted on receipt by the MCU. I have tested the UARTs specifically but the problem also appears to be with the SPI.
I repeated these tests using FC7.3.0.7 and the results were exactly the same as above. It seems that whatever caused the problem has effected both FC7 and FC8, so I’m pretty well stuck.
Is there a way to resolve this, please?
Kind regards.
Leo
I installed FC8 recently and experienced the same issues as those experienced by mnf. I uninstalled and reinstalled FC8, without success and then followed Daniels advice which resolved the problem (viewtopic.php?f=78&t=21435).
After experiencing some problems with RS232 communications on a custom board, I went back to basics and, using FC8.2.1.13, Eblocks and an example flowchart (that just echoed typed characters back to source, downloaded from https://www.matrixtsl.com/wiki/images/5 ... mple3.fcfx), I got the following results:
PIC16F877A - default settings - Typed char echoed correctly
dsPIC30F4013 - UART channel 1 - Typed char echoed correctly
PIC24FJ128GA202 - UART channel 1, pins B0 and B5 - Typed char echoed correctly
PIC24FJ128GA202- UART channel 1, pins B8 and B13 - Typed char echoed correctly
PIC24FJ128GA202- UART software channel (still on pins B8 and B13), Tx and Rx Alt pin selection = No, - garbage returned
PIC24FJ128GA202- UART software channel (still on pins B8 and B13), Tx and Rx Alt pin selection = Yes - garbage returned
PIC24FJ256GA406 - Custom PCB with all UARTs set to software channels, using various pins, - garbage returned
It seems that the problem only exists when using the UART software channel option and I found that the typed characters are corrupted on receipt by the MCU. I have tested the UARTs specifically but the problem also appears to be with the SPI.
I repeated these tests using FC7.3.0.7 and the results were exactly the same as above. It seems that whatever caused the problem has effected both FC7 and FC8, so I’m pretty well stuck.
Is there a way to resolve this, please?
Kind regards.
Leo