From: hackbard Date: Mon, 8 Dec 2003 16:40:22 +0000 (+0000) Subject: test X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=d4721ee2e986b09abe5df32b47029f282ec6c6f0;p=my-code%2Fatmel.git test --- diff --git a/beginners/test_int.asm b/beginners/test_int.asm index 0b55959..bc2c951 100644 --- a/beginners/test_int.asm +++ b/beginners/test_int.asm @@ -22,7 +22,7 @@ reti reti ; T1 OVF1 -reti +rjmp T1_OVF1 ; T0 OVF0 reti @@ -39,6 +39,14 @@ reti ; ANA_COMP reti +T1_OVF1: +out DDRD, r17 +rol r17 +sbrs r17, 7 +reti +ldi r17, 4 +reti + UART_RX: in r16, UDR andi r16, $7C @@ -58,6 +66,14 @@ sbi UCR, (RXEN|TXEN|RXCIE) ; enable tx at uart control register ldi r16, 0x7C out DDRD, r16 +ldi r17, 4 + +ldi r16, 5 +out TCCR1B, r16 + +ldi r16, (1<