test2
authorhackbard <hackbard>
Mon, 8 Dec 2003 16:45:05 +0000 (16:45 +0000)
committerhackbard <hackbard>
Mon, 8 Dec 2003 16:45:05 +0000 (16:45 +0000)
beginners/test_int.asm

index bc2c951..191716c 100644 (file)
@@ -61,14 +61,15 @@ out SPL, r16
 ; baudrate einstellen
 ldi r16, 11 ; "38400 bps wert" in r16
 out UBRR, r16 ; write to uart baudrate register
-sbi UCR, (RXEN|TXEN|RXCIE) ; enable tx at uart control register
+ldi r16, ((1<<RXEN)|(1<<TXEN)|(1<<RXCIE)
+out UCR, r16
 
 ldi r16, 0x7C
 out DDRD, r16
 
 ldi r17, 4
 
-ldi r16, 5
+ldi r16, 3
 out TCCR1B, r16
 
 ldi r16, (1<<TOIE1)