BL0011 Baud Rate problem

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
pilot321
Posts: 8
Joined: Tue Nov 17, 2020 8:29 pm
Been thanked: 1 time
Contact:

BL0011 Baud Rate problem

Post by pilot321 »

Hi
I am using a BL0011 development board, I have connected a Click board RS232 interface module to Port C, configured as channel1, using RTS/CTS and Flow Control.
C6 is TX Pin, C5 is RX Pin, C1 and C2 as RTS/CTS.
If I set the Baud Rate to 9600, I find that about 20% of the time the first character of the string is not transmitted, and very occasionally the string gets corrupted totally.
If I set the Baud Rate to 4800, it all works perfectly.
Is this a limitation of my setup, or am I doing something wrong?
Regards.

User avatar
Benj
Matrix Staff
Posts: 15186
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4759 times
Been thanked: 4294 times
Contact:

Re: BL0011 Baud Rate problem

Post by Benj »

Hello,

Please can you post your program or a simple program that deminstrates the problem and we will have a look for you.

pilot321
Posts: 8
Joined: Tue Nov 17, 2020 8:29 pm
Been thanked: 1 time
Contact:

Re: BL0011 Baud Rate problem

Post by pilot321 »

Hi
I have created a new program to demonstrate the problem, I have C1 strapped to C2 for RTS/CTS.

If you look at the screenshot you can see it has missed of the initial S once, and Changed the initial S to a W twice.

Hope this helps, or could it be a problem with my hardware?

Thanks.
Attachments
Rs23 Section12.fcfx
(10.97 KiB) Downloaded 12 times
Screenshot (5).png
Screenshot (5).png (125.97 KiB) Viewed 441 times

User avatar
Benj
Matrix Staff
Posts: 15186
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4759 times
Been thanked: 4294 times
Contact:

Re: BL0011 Baud Rate problem

Post by Benj »

Hello,

That's very interesting thanks.

The S character is very similar to the W character in terms of the binary value 0x53 compared to 0x57 which is only a single binary bit out.

I'm curius to see if it's something to do with the flow control. If you turn it off do you still get the corruption occuring?

I'll also see if I can lay my hands on a BL0011 board and try to replicate the problem.

Can you post a link to the click module you're using just to see if there is potentially something wrong creeping in here.

You could also try adding a delay of say 10-20ms after your output icon to ensure the click module gets chance to see the RTS signal going low.

pilot321
Posts: 8
Joined: Tue Nov 17, 2020 8:29 pm
Been thanked: 1 time
Contact:

Re: BL0011 Baud Rate problem

Post by pilot321 »

Hi
Thanks for your reply, I have removed RTS/CTS Flow control completely from my test program, but unfortunately I am still getting the same issue, with the first character not being sent, only occasionally.
The link for the Click RS232 is below.
https://download.mikroe.com/documents/a ... l-v100.pdf

Thanks.

User avatar
LeighM
Matrix Staff
Posts: 2156
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: BL0011 Baud Rate problem

Post by LeighM »

Do you have a DVM to check the power supply voltage on the Click module?
Also check the RS232 Tx output voltage.
Presumably the Click RS232 is connected to COM1 PC port?

pilot321
Posts: 8
Joined: Tue Nov 17, 2020 8:29 pm
Been thanked: 1 time
Contact:

Re: BL0011 Baud Rate problem

Post by pilot321 »

Hi
Thanks for your reply, I have proved that the problem is with the Click RS232 board.
I have used two BL0011 development boards connected together pin C6 TX on one chip to pin C5 on the other board, thus eliminating the Max232 chip.
I have been able to use a baud Rate of 115200 error free between processors.

Post Reply