Many thanks your suggestion. Unfortunately using a different device is
not possible because the hardware has already been build. Finally I
solved the problem by not dividing the clock anymore (initially a slow
SPI device required a slow system clock but thats now operated by hand
anyhow).
On Wed, Apr 22, 2009 at 11:35:53AM +0200, Jan Menzel wrote:
Many thanks your suggestion. Unfortunately using a different device is
not possible because the hardware has already been build. Finally I
solved the problem by not dividing the clock anymore (initially a slow
SPI device required a
Hi!
Many thanks for this hint. Yes, the code was not ideal in that point.
I now setup a completely new project with just the lines below and - as
expected - the flags are set correctly. Then I started putting back the
other code I previously had and found, the the sequence of changing
Jan Menzel men...@peperoni-light.de wrote:
When the system clock is divided, Timer/Counter0 can
be used with Asynchronous clock only. (page 37)
I didn't know this...
Is there any workaround
for this? (the datasheet does not say anything...)
Switch to an ATmega1281?
--
cheers, Jorg
Hi all!
I'm trying to generate interrupts using timer0 on a Mega128 but
unfortunately can't see any change in overflow and capture/compare
flags. This is the code I tried (compiled using WinAVR 20081205):
TCCR0 = _BV(CS02);
cli();
while (1)
{
if (TIFR _BV(OCF0))
{