Software RS232 Baud Rate Problem

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
Brian Walsh
Posts: 29
Joined: Thu Jan 14, 2010 10:43 pm
Has thanked: 3 times

Software RS232 Baud Rate Problem

Post by Brian Walsh »

I've just tried the bit banged version of the RS232 component and the output on my terminal program (PuTTY) was garbled. Looking on the scope revealed that the bit time was only 89.5% of what it should be, i.e. the rate is high.

This behaviour was consistent for 9600 and 19200 baud rates.

Fooling the component by reducing the baud rates to 8592 and 17184 respectively using the custom baud rate setting solves the problem but I still need an acknowledgement that this is a bug or that I am doing something wrong.

tia

Brian.

Sean
Valued Contributor
Valued Contributor
Posts: 548
Joined: Tue Jun 26, 2007 11:23 am
Has thanked: 6 times
Been thanked: 44 times

Re: Software RS232 Baud Rate Problem

Post by Sean »

hello Brian,

We have tried to develop delay calculations for the software uart to cover a range of devices, baud rates, and clock frequencies. It appears that some combinations do not work as well as others.
The reference configuration is a PIC16F877 running at 19.6608MHz, communicating at 9600 baud

'Tweaking' the baud rate setting is a good way to apply correction to calculations that are inaccurate.

We will improve the calculations in future releases of Flowcode.

Post Reply