I've been working on several new microcontroller designs and found that I was using a calculator too often to compute optimal parameters for the microcontroller timers. So, I built a small library to automate the computations and now it's quite quick to pick a optimal master clock speed, timer prescalar, timer compare value, and UART divisors.
The library is called cluck (Common Lisp μcontroller ClocK calculator) and is available at http://files.b9.com/cluck. Its initial functions include:
- displaying range of frequencies and periods for 8, 16, and 32-bit timers values for a given clock speed
- displaying prescaler, compare values, and error percentage for a desired millisecond interrupt period
- displaying UART divisors and error percentage for common serial port speeds

Comments (1)
i like to get new updated library.
Posted by chan | March 10, 2007 6:50 AM
Posted on March 10, 2007 06:50