| ??? 05/11/03 00:17 Read: times |
#45208 - RE: Baud Rate Calculator Responding to: ???'s previous message |
I visited the page yesterday. Thanks for putting in the time to create a resource like this!
When I tried it, it didn't quite work as I thought it would. I expected to set the MCU clock, baudrate clock source, and desired baudrate and then it spits out the closest reload value. It took me a minute to figure out it doesn't work that way (maybe I am just slow).. Maybe I am just spoiled by Infineon's DAvE configuration program. Using DAvE as the main inspiration (and your calculator, of course!) I made a quicky VB form to illustrate what I think would be a more flexible approach to the problem:
The user sets the Microcontroller Clock, Baudrate Clock Source, Required Baudrate, and optionally changes Timer Clock Divisor. One of the important additions is the adjustable Timer Clock Divisor. This is important because many variants have varying (and progammable) peripheral clock divisors. I believe the standard Timer 1 divisor is 1, while Timer 2 standard divisor is 2. The divisor would automatically be set to the corresponding standard value when a Baudrate Clock Source is chosen. The only label that needs to be automatically changed is Reload Value--for Timer 1 is should be "Reload Value (T1H)", Timer 2 should be "Reload Value (RCAP2H, RCAP2L)". This looks like a job for Java, which of course I don't know. If Keil gives me a free C51 compiler I might be willing to learn Java though... - Lee |
| Topic | Author | Date |
| Baud Rate Calculator | 01/01/70 00:00 | |
| RE: Baud Rate Calculator | 01/01/70 00:00 | |
| RE: Baud Rate Calculator | 01/01/70 00:00 | |
| RE: Baud Rate Calculator | 01/01/70 00:00 | |
| RE: Baud Rate Calculator | 01/01/70 00:00 | |
RE: Baud Rate Calculator | 01/01/70 00:00 |



