equal
deleted
inserted
replaced
18 ; Flags for output |
18 ; Flags for output |
19 ldi r16, (1 << PORTB4) |
19 ldi r16, (1 << PORTB4) |
20 |
20 |
21 ; Setup Timer 0 |
21 ; Setup Timer 0 |
22 ; Count to 64k |
22 ; Count to 64k |
23 ldi r18, HIGH(0xffff) |
23 ldi r18, HIGH(0xffff/2) |
24 ldi r19, LOW(0xffff) |
24 ldi r19, LOW(0xffff/2) |
25 sts OCR1AH, r18 |
25 sts OCR1AH, r18 |
26 sts OCR1AL, r19 |
26 sts OCR1AL, r19 |
27 |
27 |
28 ; Normal port operation for both comperators |
28 ; Normal port operation for both comperators |
29 ; Bits WGM10:1 zero |
29 ; Bits WGM10:1 zero |