X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=hdw-tank%2Fuart.asm;fp=hdw-tank%2Fuart.asm;h=1ca82e08995e55fa26e0c3c14fae516952d60a8d;hb=bc07798b093617e4b907b3fdb2155dc098b03e0b;hp=0000000000000000000000000000000000000000;hpb=04ffc37ce69bf3d8c175ddae51b0fda6d7848310;p=my-code%2Fatmel.git diff --git a/hdw-tank/uart.asm b/hdw-tank/uart.asm new file mode 100644 index 0000000..1ca82e0 --- /dev/null +++ b/hdw-tank/uart.asm @@ -0,0 +1,36 @@ +; uart functions + +UART_INIT: + + ; baudrate + ldi tmp, + out UBRRH,tmp + ldi tmp, + out UBRRL,tmp + + ; enable + ldi tmp,(1<