View previous topic :: View next topic |
Author |
Message |
Guest
|
Baud Rate error |
Posted: Sun Nov 29, 2009 9:10 am |
|
|
Code: | #use rs232(baud=1200, xmit=PIN_C6, rcv=PIN_C7,STREAM = COM_A) |
How can i set baud rate to 100. While trying to do this i got some error... |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Sun Nov 29, 2009 9:26 am |
|
|
Do you actually mean 100? You should calculate, if it's possible according to the baud rate formula given in the respective PIC datasheet. The value is possibly too low. It should be no problem with software UART. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Nov 29, 2009 1:57 pm |
|
|
Quote: | How can i set baud rate to 100 ? |
Always post your PIC.
You can use the PicBaud program to tell if it's possible to use a desired
baud rate. Download it from this page. Unzip it and put it on your desktop:
http://www.micromagicsystems.com/#/picbaud/4523812801
This web page takes a few seconds to load, and it plays a sound. |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Mon Nov 30, 2009 6:53 pm |
|
|
Dear Guest user,
My guess is you are the same person as in http://www.ccsinfo.com/forum/viewtopic.php?t=40827 ?
If yes, then do not start a new thread for every new question on the same topic.
From the other thread we have concluded your transmitter can not be running at the 20MHz as configured. I think (but haven't checked) you are running at 48MHz. Change the #delay line accordingly to this to fix the problem. |
|
|
|