In case you find yourself in the exact same circumstances as me--needing use the ATMega16's Timer1 in compare mode, specifically, Clear Timer on Compare (CTC) mode, you might find this quick calculator I hacked together (for Windows) useful. It generates the C code required to set up Timer1, including prescaler settings and 16 bit compare values.
It's VB6, so be warned.
In the unlikely event that you decide to add to this rather than start from scratch, please let me know. :)
Friday, July 16, 2010
Subscribe to:
Posts (Atom)