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?
rs232 baud rate problem
Moderator: Benj
- 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
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.
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.
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
- 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
yes benj i have tried that, but it seems to be ok. i matched the blinking speed with stop watch on.
- 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
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??????
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??????