Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Timer1 Problems

2005-07-07 by Aaron

Aaron wrote:

>This AVR newbie is using a tiny2313 and studio 4.11.
>
>I have timer1 configured for CTC with OCR1A.   OCIE1A is set in TIMSK.  
>Global interrupts are enabled.  Stepping thru the code in the simulator 
>shows OCF1A being set for 1 cycle but my interrupt vector is not being 
>jumped to.   My code is not clearing OCF1A and the datasheet says that 
>OCF1A will not be cleared until execution of the interrup vector.  Any 
>thoughts on what I am doing wrong?  Code below.
>  
>
Hello all,

Thanks to all those who responded both on and off list.

The original code was fine -- it was a bug in the Studio 4.11's 
simulator.  I downloaded and installed service pack 3 for studio 4.11 
and the problem went away.   (Release notes for SP3 don't even mention 
this fix.)

About makes this newbie want to go back to PICs.  At least I've never 
had an issue with MPLAB's simulator...

Aaron

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.