Adding onto what Jim said... What language/compiler are you using? That ask, I learned a lot from using CodeVisionAVR Demo version. Its CodeWizard can do the setup initialization. Then in the ISR (Interrupt Service Routine), you always re-load the timer, then do the whatever it is that that subroutine needs to do. --- In AVR-Chat@yahoogroups.com, "klassasin" <klassasin@b...> wrote: > I recently obtained a STK500 and two ATtiny13V's. I've done basic I/O > with them already, but I want to try something a little more advanced. > I've been researching interrupts, yet I fail to find any particularly > large amount of information on ATtiny13 interrupts. Specifically, I > want to use 8-bit timer that it comes equipped with. I've looked > through it's datasheet, yet the section on interrupts is confusing me. > I am unable to understand how to initialize interrupts (or the > timer). I also am having trouble understanding how to respond to a > timer overflow interrupt. Simply put, I need to initialize the timer > interrupt so I can do a certain action every time it overflows. > Can anybody please help me with sample code to utilize timer > interrupts on tiny13's or with a site that could help me with them? > > Thanks for any help, > > Kevin
Message
Re: Help with using interrupts and ATtiny13.
2005-08-04 by brewski922
Attachments
- No local attachments were found for this message.