Dann versuche es mal so.
Code:$regfile = "m16def.dat" ' ATmega16 $crystal = 8000000 ' for STK500 $baud = 19200 '**************** TIMER 1 ****************************** Config Timer1 = Timer , Compare A = Toggle , Prescale = 1 , Clear Timer = 1 Compare1a = 100 Config Pind.5 = Output '**************** END TIMER 1 *************************** On Compare1a InterruptR Enable Timer1 Enable Interrupts InterruptR IF Compare1a=100 THEN Compare1a=200 ELSE Compare1a=100 END
Danke, prima idee.
Lesezeichen