Page 1 of 1

rs232 baud rate problem

Posted: Fri Aug 12, 2011 11:20 am
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?

Re: rs232 baud rate problem

Posted: Fri Aug 12, 2011 1:03 pm
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.

Re: rs232 baud rate problem

Posted: Fri Aug 12, 2011 10:05 pm
by greentech
yes benj i have tried that, but it seems to be ok. i matched the blinking speed with stop watch on.

Re: rs232 baud rate problem

Posted: Mon Aug 15, 2011 9:47 pm
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?????? :?: :?: :?: :?: :?: :?: :?:

rs232 baud rate problem

Posted: Tue Aug 16, 2011 1:41 pm
by greentech
ne 1 there?

Re: rs232 baud rate problem

Posted: Tue Aug 16, 2011 1:51 pm
by Steve
Ben's away for a week, sorry.

Re: rs232 baud rate problem

Posted: Tue Aug 16, 2011 1:59 pm
by greentech
oh ic, is everything alright with him?

Re: rs232 baud rate problem

Posted: Tue Aug 16, 2011 2:30 pm
by DavidA
Hes fine hes just on a break :)

Rs232 baud rate problem

Posted: Thu Aug 18, 2011 12:01 am
by greentech
:)K David. May i know if there's gsm component gonna be out for ds pic?