I have a problem with the timer interrupt. I made a very easy interrupt (I thought). It is almost simlair to a interrupt that I use in the atttiny24A, with some changes like sts instead of out.
Now I use the atmega328.
The meaning of this small program now is that the interrupt happens every 8msec and during that interrupt a pin (PD0) is set high and around 4msec later the pin (PD0) is set low.
So the conclusion is that there will be a square wave of around 4msec high and 4msec low on pin PD0.
But this is not happening I only see a line to zero.
I tied AVcc to Vcc and put Aref with 100nF to GND.
I included the Main file PT544.asm and the interrupt1.asm.
Maybe one of you can help me to find out what I'm doing wrong.
I looked over the datasheet for almost a week now and I start to lose it :cry:
Thanks for the help,