Configuring UART for multiple baud rates

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi I am working with PSoC 5 development board 059, I am trying to have an UART or more that are capable of switching their baud rate dynamically.

My master clock is set to 24 MHz, if I divide the master clock by 96, i get the 31250 baud rate, but to get 115200 it is not an even clock division -> 24 MHz / (115200 *8) =

26.041. So if I set the clock divider to 26 this would mean an overall error of 0.16% (Error/RealValue)(0.041 / 26.041) I might think this is enough, but I don't know.

Does anybody knows which is the accepted clock error on UART??

Thanks in advance, José Manuel Romo

Edit: I tested, 115200 works, but does any body knows which is the overall error accepted for clock UART devices?

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

2% is enough, see here why.

Bob

View solution in original post

2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

2% is enough, see here why.

Bob

Anonymous
Not applicable

Thank you Bob! , that was an interesting reading, keeping it down to 2%.

0 Likes