This program provides a small subroutine to put a string via USART. This code is a part of pAVRlib.
In examples/ you'll find a small test program.
Requirement
Subroutine
void USART_PUTS(char *str) (in: r25:r24, out: (none))
puts a string via USART. r25:r24 is a start address of the string to be sent. The string must be null-teminated.
Example
ldi r25, high(STR_HELLO)
ldi r24, low (STR_HELLO)
rcall USART_PUTS
STR_HELLO:
.db "Hello, World!", 0x0d, 0x0a, 0