.include "c:\avrtools\m64def.inc" .def temp=r16 .def data=r17 .equ port0=$1000 .equ port1=$1100 .equ port2=$1200 .equ port3=$1300 .equ port4=$1400 .equ port6=$1600 .equ port7=$1700 ldi temp,low(RamEnd) out SPL,temp ldi temp,High(RamEnd) out SPH,temp ldi temp,0 out TCCR0,temp out TCNT0,temp out OCR0,temp out TCCR1A,temp out TCCR1B,temp out TCNT1H,temp out TCNT1L,temp out ICR1H,temp out ICR1L,temp out OCR1AH,temp out OCR1AL,temp out OCR1BH,temp out OCR1BL,temp ldi temp,0xC0 out MCUCR,temp ldi temp,2 sts XMCRA,temp ldi temp,0 out TIMSK,temp ldi temp,0x80 out ACSR,temp ;ÈÍÈÖÈÀËÈÇÀÖÈß V9990 ldi temp,0xff out DDRD,temp cbi portd,7 ldi temp,0 wa: dec temp brne wa sbi portd,7 st: rjmp st wait: ldi temp,0 loop: dec temp brne loop ret