Skip to content

Opening book details…

About this document

Serial Port Communication with ATmega324 by Salty Salty is a document available to read on EtoBox.

Here is the program to transmit the 10-byte string stored at location $100 to USART0: USART_INIT: ;USART initialization LDI R16,(1<<TXEN0)|(1<<RXEN0) STS UCSR0B,R16 LDI R16,(1<<UCSZ01)|(1<<UCSZ00) STS UCSR0C,R16 LDI R16,0x00 STS UBRR0H,R16 LDI R16,2 STS UBRR0L,R16 TX_LOOP: LDI R26,LOW(100) LDI

Author
Salty Salty
Language
EN