.INCLUDE "M32DEF.INC" LDI R16,0xFF OUT DDRA,R16 OUT DDRB,R16 OUT PORTD,R16 BEGIN:LDI R20,0x00 OUT TCCR1A,R20 LDI R20,0x41 OUT TCCR1B,R20 L1: IN R21,TIFR SBRS R21,ICF1 RJMP L1 OUT TIFR,R21 IN R22,ICR1L OUT PORTA,R22 IN R22,ICR1H OUT PORTB,R22 RJMP BEGIN