View previous topic :: View next topic |
Author |
Message |
jaime
Joined: 25 Nov 2005 Posts: 56 Location: Porto - Portugal
|
PIC Dont work at 19200kbs |
Posted: Thu Mar 23, 2006 7:39 am |
|
|
I have a litle program with a pic and a mobile phone siemens me45, that works at 9600kbs, but dont work at 19200kbs.
I test the phone with hyperterminal and the phone works at 9600kbs and 19200kbs (the phone auto select baud rate)
i connect the pic to hyperterminal and the pic sends tha commands at 19200...
What should be the problem?
Thanks |
|
|
Ttemah Guest
|
|
Posted: Thu Mar 23, 2006 7:46 am |
|
|
What PIC?.
What crystal frequency?.
Have you checked what extra commands may be needed to autobaud?. Most of the units, require that you send something like the line-feed character a couple of times as the first characters, to trigger the automatic switch.
Best Wishes |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
Re: PIC Dont work at 19200kbs |
Posted: Thu Mar 23, 2006 7:48 am |
|
|
jaime wrote: | I have a litle program with a pic and a mobile phone siemens me45, that works at 9600kbs, but dont work at 19200kbs.
I test the phone with hyperterminal and the phone works at 9600kbs and 19200kbs (the phone auto select baud rate)
i connect the pic to hyperterminal and the pic sends tha commands at 19200...
What should be the problem?
Thanks |
You might be trying to send data back-back without enough delay. You should be sending command - wait for response, command - wait for response. Post a small test program. |
|
|
jaime
Joined: 25 Nov 2005 Posts: 56 Location: Porto - Portugal
|
|
Posted: Thu Mar 23, 2006 7:52 am |
|
|
well
PIC16f628A at 20MHz
i send the command and then i wait the response... i only send another command after receive the ok...
It's working good at 9600KBS
With hyperterminal, i just change the baudrate and no need to send nothing after the command. |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Thu Mar 23, 2006 8:00 am |
|
|
Did you miss the part where I said post a small test program? Obviously the PIC can talk at 19.2K since Hyperterminal works so most likely the problem is in your code. |
|
|
|