Baud Rate Questions
Andy_ouhsc
Posts: 17
Hello!
I have seen most of the SPIN programs were using 115200 and 9600 Baud Rates.
I was wondering how this works and have a few questions if anyone can help me:
1. "The higher the Baud Rate, the faster the program." Is this correct?
2. How do you calculate the speed (of the program or calculations), given:
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
and baud rate is 9600
3. What is the optimized Baud Rate? Pros and Cons of using very large and very small values for Baud Rates? What are the recommendations?
4. Any other additional information I should know about setting the Baud Rates?
Very easy questions, Thanks for your time!
-Andy
I have seen most of the SPIN programs were using 115200 and 9600 Baud Rates.
I was wondering how this works and have a few questions if anyone can help me:
1. "The higher the Baud Rate, the faster the program." Is this correct?
2. How do you calculate the speed (of the program or calculations), given:
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
and baud rate is 9600
3. What is the optimized Baud Rate? Pros and Cons of using very large and very small values for Baud Rates? What are the recommendations?
4. Any other additional information I should know about setting the Baud Rates?
Very easy questions, Thanks for your time!
-Andy
Comments
Fortunately with the Prop's multiple Cogs having a slower TX rate is even less likely to get in the way of other processes, than a single cored (with interupts) solution.
Baud rate refers to the speed at which characters are transmitted from one device to another, not the program speed of the transmitter.
A1. Not necessarily. Baud Rate and program speed are not directly linked this way. Change that statement to "The higher the baud rate, the less time the program has to service other items."
A2. (See 1) The baud rate has no influence on the speed of the program.
A3. In my opinion faster is better. The higher baud rates transmit data faster but have special problems transmitting at a distance. The slower baud rates take longer to transmit data but are more reliable at distance. Recommendations? Find a baud rate that both receiver and transmitter are comfortable with (for me the faster the better).
A4. Google search for "baud rate"....
Solved!