123456789101112131415161718
/*
* Example15_10.asm
*
* Created: 05/19/2017 08:33:42
* Author: Naimi
*/
SBI DDRD,6
LDI R20,(1<<COM0A0)|(1<<WGM01)
OUT TCCR0A,R20 ;CTC,?toggle on match
BEGIN:
LDI R20,(1<<FOC0A)
OUT TCCR0B,R20 ;timer stopped,?FOC0=1
RJMP BEGIN