;; (C) David Vajda ;; 2024-12-20 ;; RS-232, Recieve .include "m8def.inc" ldi r16, HIGH (RAMEND) out SPH, r16 ldi r16, LOW (RAMEND) out SPH, r16 ldi r16, 0xff out DDRB, r16 ldi r16, HIGH (25) out UBRRH, r16 ldi r16, LOW (25) out UBRRL, r16 ldi r16, (1 << URSEL) | (1 << UCSZ1) | (1 << UCSZ0) out UCSRC, r16 ldi r16, (1 << RXEN) out UCSRB, r16 urecieve: sbis UCSRA, RXC rjmp urecieve in r16, UDR out PORTB, r16 rjmp urecieve |
root@work:/home/david/vhdl20241220/m820241220# echo "01735807467david@dvajda.de" > /dev/ttyS3 root@work:/home/david/vhdl20241220/m820241220# |