Source Code:

    

      
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* * 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