EmbeddedRelated.com
Forums

Atmel AVR, too slow encoder tics counting

Started by Umpa May 6, 2004
On Fri, 7 May 2004 14:20:41 +0200, "Alexander Peter"
<apeter@musicandsales.com> wrote:

>Umpa schrieb: >>> How fast do you want to go? >> >> 10 kHz would be enough. >> But, above two people have said that >> my ATmega16 works with 1MHz >> frequency, and I need to attach >> cristal. I think, it solves my problem. > >You can set up your internal RC to 8 or 16MHz by progamming the corrseponding fuses. Look at the datasheet! > >Alexander
Internal RC can be set to 1MHz (Defult), 2,4 and 8 MHz. If you want higher than that you need to use one of the other clock options. With the 8MHz clock, you can probably handle up to 38.4kbaud. Regards Anton Erasmus