| ??? 12/06/07 22:19 Read: times |
#147953 - Simultaneous solution Responding to: ???'s previous message |
Salaam Mehdi,
You will need to solve for the appropriate register values for each baud rate you want to use, given the frequency of your crystal/oscillator. If memory serves, the values must result in a baud rate within ±3% of the desired rate. In any case, you'll need to calculate the appropriate initialization values for a given clock frequency, iterating clock frequencies until you find one that lets you achieve both baud rates within the 3% tolerance. Then just write a routine that will switch between the two baud rates and call it when you need to change. Good luck, Joe |
| 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 |



