2 ; portd 3-7 lauflicht mit UART-RX masked byte anzeige
7 .include "../include/2313def.inc"
47 ; skip next operation if beyond last LED
49 reti ; we return if not beyond last LED
50 ; reset LED counter to first LED
55 ; read received byte to r16
57 ; mask with valid LED bits
61 ; set LEDs according to masked byte
71 ldi r16, 11 ; "38400 bps wert" in r16
72 out UBRR, r16 ; write to uart baudrate register
74 ; enable TX, RX, Interrupt on RX
75 ldi r16, ((1<<RXEN)|(1<<TXEN)|(1<<RXCIE))
78 ; PortD Inputs - Enable all LEDs
82 ; Least Significant LED
85 ; Timer1 Prescaler: CLK/64 (inc. Timer1 every 64 CLKs)
89 ; Timer1 Overflow Interrupt enable
93 ; global interrupts enable