| ??? 12/08/07 21:22 Read: times |
#147991 - Try This For Near Exact Responding to: ???'s previous message |
If you were to use a SiLabs C8051F120/1/2/3/4/5/6/7 or a C8051F130/1/2/3 and clock the device from a 22.1184 MHz crystal or oscillator it is then possible to use the UART0 on these devices as follows:
- Setup the UART0 to use the Timer2, Timer3 or Timer4 as the baud rate source. - Select the timer clock prescaler in such way that the timer clock is the 22.1184 MHz system clock frequency. - Then the 16-bit timer reload value for 9600 baud is 65392 for an exact 9600 baud rate clock. - Then the 16-bit timer reload value for 10400 baud is 65403 which results in an actual baud rate of 10393.984 which is only off by a factor of 0.0578 percent. Close enough I would say. Michael Karas |
| Topic | Author | Date |
| Unusual Baud Rate! | 01/01/70 00:00 | |
| Nothing special | 01/01/70 00:00 | |
| the same as for the so-called "standard" | 01/01/70 00:00 | |
| Yes! | 01/01/70 00:00 | |
| How do you mean both? | 01/01/70 00:00 | |
| Not at the same time! | 01/01/70 00:00 | |
| OBD requirement, | 01/01/70 00:00 | |
| SO why the secrecy? | 01/01/70 00:00 | |
| why didn't you just mention it in the first place | 01/01/70 00:00 | |
| more explanation, | 01/01/70 00:00 | |
| Autobaud? | 01/01/70 00:00 | |
| if you'd just need one UART switchable between... | 01/01/70 00:00 | |
| Thanks | 01/01/70 00:00 | |
| Simultaneous solution | 01/01/70 00:00 | |
| ±3% of the desired rate, | 01/01/70 00:00 | |
| maybe you can get by ... | 01/01/70 00:00 | |
| 2nd assumption? | 01/01/70 00:00 | |
| consider how it works | 01/01/70 00:00 | |
| 11.5198 MHz! | 01/01/70 00:00 | |
| Try This For Near Exact | 01/01/70 00:00 | |
| Thanks | 01/01/70 00:00 | |
even better | 01/01/70 00:00 | |
| Two Baud to Uarts :) | 01/01/70 00:00 |



