From: hackbard Date: Fri, 5 Dec 2003 00:29:44 +0000 (+0000) Subject: corrected addresses, seems to not work with atmel register names :( X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=30183fca9fd29d2a3aa7eff0deaf8b84bafab9eb;p=my-code%2Fatmel.git corrected addresses, seems to not work with atmel register names :( --- diff --git a/beginners/test_uart.asm b/beginners/test_uart.asm index c785c36..53974a3 100644 --- a/beginners/test_uart.asm +++ b/beginners/test_uart.asm @@ -3,15 +3,15 @@ ; baudrate einstellen ldi r16, 11 ; "38400 bps wert" in r16 -out UBRR, r16 ; write to uart baudrate register -sbi UCR, TXEN ; enable tx at uart control register +out 0x09, r16 ; write to uart baudrate register +sbi 0x0a, 3 ; enable tx at uart control register ; transmit 0x23 all the fucking time ... ldi r16, 0x23 ; load 0x23 to register -out UDR, r16 ; write that to uart data register port +out 0x0c, r16 ; write that to uart data register port LOOP: -sbis USR, UDRE +sbis 0x0b, 5 rjmp LOOP -out UDR, r16 +out 0x0c, r16 rjmp LOOP