--- Date main.asm --- .nolist .include "m16def.inc" .list .def temp = R16 .def midi_status = R17 .def midi_daten = R18 .equ CLOCK = 4000000 .equ BAUD = 31250 .equ UBRRVAL = CLOCK/(BAUD*16)-1 .equ MIDI_PRG = 0xC0 ; .org $00 rjmp main .org $030 ; Hauptprogramm main: ldi temp, LOW(RAMEND) out SPL, temp ldi temp, HIGH(RAMEND) out SPH, temp ; Baudrate einstellen ldi temp, LOW(UBRRVAL) out UBRRL, temp ldi temp, HIGH(UBRRVAL) out UBRRH, temp ; Frame-Format: 8 Bit ldi temp, (1<