[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Problem with timer0 overflow interrupt in c language.
Re: [avr-gcc-list] Problem with timer0 overflow interrupt in c language..
Thu, 6 Dec 2007 17:17:13 -0600
On Thu, Dec 06, 2007 at 09:50:30PM +0100, Clemens Koller wrote:
> Tried to remove the cli(); ?
> You won't get any interrupts after cli();
The interrupt enable bit in SREG should be restored to its prior value
on exit from the ISR().
I think setting the stack pointer is one big potential problem. The
other is that his LED is flashing too fast to see, assuming its wired
David Kelly N4HHE, address@hidden
Whom computers would destroy, they must first drive mad.