< avr양방향_하이퍼 > #include <avr/io.h> #define CPU_CLOCK 16000000 #define BAUD_RATE 19200 #define BAUD_RATE_L (CPU_CLOCK /(16l*BAUD_RATE))-1 #define BAUD_RATE_H ((CPU_CLOCK /(16l*BAUD_RATE))-1)>>8 void USART_Transmit(unsigned char ch); char USART_Receive(void); int main(void) { DDRF=0xFF; PORTF=0xFF; DDRE=0xFF; PORTE=0xFF; char ch; UBRR1L = (unsigned char)BAUD_RATE_L; U..