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
User avatar
greentech
Flowcode V4 User
Posts: 158
Joined: Mon Jan 31, 2011 2:11 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

rs232 baud rate problem

Post by greentech »

Hi there,

I am experiencing a strange problem with rs232 component baud rates. I have successfully communicated with the pc, but there is a strange problem going on, when i choose 19200 baud rate i have to downgrade the baud rate to 9600 in hyper terminal, and suppose i have chosen 9600 baud rate then to communicate with pc ill have to choose 4800 baud rate in hyper terminal. whats going on, i cant really understand.

flow code 19200 = 9600 hyper terminal
flowcode 9600 = 4800 hyper terminal.

why cant i select same baud rates at both sides?

User avatar
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: rs232 baud rate problem

Post by Benj »

Hello,

Sounds like your hardware is not running at the speed you think it is. Have you tried the 1 second flasher test on your hardware to see if this is running correctly at 1 second.

You do this by creating a infinite loop at the start of your program.

loop
output 255 to a port
delay 1 second
output 0 to a port
delay 1 second
end loop

If the hardware is not flashing at a rate of 1 second on the hardware then either your clock speed or configuration settings in Flowcode are incorrect for your hardware setup.

User avatar
greentech
Flowcode V4 User
Posts: 158
Joined: Mon Jan 31, 2011 2:11 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: rs232 baud rate problem

Post by greentech »

yes benj i have tried that, but it seems to be ok. i matched the blinking speed with stop watch on.

User avatar
greentech
Flowcode V4 User
Posts: 158
Joined: Mon Jan 31, 2011 2:11 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: rs232 baud rate problem

Post by greentech »

HI THERE,

I have checked, and rechecked the program using led flasher program, the program seems to be working fine as i am using matrix eboard eb006-007 xtal set to 19.66xx, i can send the chars without a problem but while receiving things change. Could this be coz im receiving transmission from a gsm module? any idea?????? :?: :?: :?: :?: :?: :?: :?:

User avatar
greentech
Flowcode V4 User
Posts: 158
Joined: Mon Jan 31, 2011 2:11 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

rs232 baud rate problem

Post by greentech »

ne 1 there?

User avatar
Steve
Matrix Staff
Posts: 3426
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: rs232 baud rate problem

Post by Steve »

Ben's away for a week, sorry.

User avatar
greentech
Flowcode V4 User
Posts: 158
Joined: Mon Jan 31, 2011 2:11 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: rs232 baud rate problem

Post by greentech »

oh ic, is everything alright with him?

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: rs232 baud rate problem

Post by DavidA »

Hes fine hes just on a break :)

User avatar
greentech
Flowcode V4 User
Posts: 158
Joined: Mon Jan 31, 2011 2:11 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

Rs232 baud rate problem

Post by greentech »

:)K David. May i know if there's gsm component gonna be out for ds pic?

Post Reply