CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

PIC Dont work at 19200kbs

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jaime



Joined: 25 Nov 2005
Posts: 56
Location: Porto - Portugal

View user's profile Send private message Visit poster's website

PIC Dont work at 19200kbs
PostPosted: Thu Mar 23, 2006 7:39 am     Reply with quote

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







PostPosted: Thu Mar 23, 2006 7:46 am     Reply with quote

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

View user's profile Send private message Send e-mail

Re: PIC Dont work at 19200kbs
PostPosted: Thu Mar 23, 2006 7:48 am     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Thu Mar 23, 2006 7:52 am     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Thu Mar 23, 2006 8:00 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group