[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Simulavr-devel] Problem with TCNT1H on at90s8535
From: |
Detlef Vollmann |
Subject: |
[Simulavr-devel] Problem with TCNT1H on at90s8535 |
Date: |
Mon, 05 Feb 2007 04:03:43 +0100 |
Hello,
simulavrxx doesn't seem to count correctly timer1 on an at90s8535.
I use the following simple program timertest.c:
#include <inttypes.h>
#include <avr/io.h>
#include <avr/interrupt.h>
int
main(void)
{
/* setup timer 1 */
TCCR1A = 0;
TCCR1B = _BV(CS10);
/* enable Port D as output */
DDRD = 0xff;
/* loop forever, monitoring TCNT1H */
while (1) PORTD = TCNT1H;
return (0);
}
And I start simulavr:
simulavr -f timertest -d at90s8515 -W 0x32,q
Now, I get only zeros written into q :-(
(If I change 'PORTD = TCNT1H' to 'PORTD = TCNT1L' I see the count
going up in my output file 'q'.)
Is timer1 not supported?
(I used the latest CVS source from
cvs.savannah.nongnu.org:/sources/simulavr).
Thanks for any help,
Detlef
BTW, the 'TIMER0, OVF' doesn't seem to work either...
--
Detlef Vollmann vollmann engineering gmbh
Linux and C++ for Embedded Systems http://www.vollmann.ch/
Linux for PXA270 Colibri module: http://www.vollmann.ch/en/colibri/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Simulavr-devel] Problem with TCNT1H on at90s8535,
Detlef Vollmann <=