|
|
Rockbox mail archiveSubject: Baud rate calculationsFrom: Björn Stenberg (bjorn_at_haxx.se) Date: 2001-12-09
I need a second pair of eyes here. Maybe I haven't slept enough this
I'm looking at the setup code for serial port 1. It sets SMR1 to 0 which means
The BRR setting is calculated as follows (p359):
B: Bit rate (bits/s)
So what bit rate do we have? Breaking out B from the above should be:
B = [f / N / (64 * 2^(2n-1)] * 10^6 - 1
N=255, n=0, f=12 gives me:
12/255/(64*(2^-1))*10^6-1 = 1469.588 bps
1470 bps? Please someone doublecheck my math.
/Björn
Page was last modified "Mar 9 2008" The Rockbox Crew |