On Wed, Jun 01, 2011 at 10:14:19AM +0200, Salvatore Frizzoli - IMS Italy wrote: > thank you for the accurate response. We use a Coldfire 5234. I have > seen on the Coldfire manual and the uClinux code (kernel 2.6.x). > Making some computations, we have seen that our 57600 baudrate is > changed by our micro to 57165 bps. In fact, the formula to compute > the divisor is: > > Divisor = BusClock / (32 * baudrate) > > In our case, BusClock = 75 Mhz, baudrate = 57600, so Divisor = 41. > Thus, the real baudrate is 75000000 / (32 * 41) = 57165 bps. > We could try to change divisor to 40 to have a 58594 bps baudrate, > but it's not so useful for our purposes. > We will try other solutions.
57165 should be fine. As long as you are within +/- 2% it should be working. You are 0.7% off. We run a 5270 with a 75MHz bus clock and 57600 has never been an issue. 115200 is a bit flacky. If the other device is really badly designed and expects amazingly accurate baud then it isn't RS232 compliant (not that the standard really applies about 20000 anyhow, but still). -- Len Sorensen _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev