Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Help with using interrupts and ATtiny13.

2005-08-03 by klassasin

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

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.