테스트 환경AVR Studio 4.14ATmega128 (16MHz) [뉴티씨 AB-M128Pro-A] UART에서 printf()함수 사용. #include #include #include void UartTx(char message) { while ((UCSR0A&0x20) == 0); UDR0 = message; UCSR0A |= 0x20; } static int Putchar(char c, FILE *stream) { UartTx(c); return 0; } void Uart_Init(void) { UCSR0B = 0x08; UBRR0H = 0x00; UBRR0L = 0x67; } void Device_Init(void) { Uart_Init(); fdevopen(Putchar,0); } int ..