00001 // This file has been prepared for Doxygen automatic documentation generation. 00023 #include "xmodem.h" 00024 00025 void init(void) 00026 { 00027 TCCR1A = 0x00; // timer/counter 1 PWM disable 00028 TCCR1B = 0x00; // timer/counter 1 clock disable 00029 00030 TIMSK1 = 0x01; // enable timer counter 1 interrupt on overflow 00031 00032 UCSR0B = 0x98; // enable receiver, transmitter, and receiver interrupt 00033 00034 // UBRR0 = 23; // 19.2k with 7.3728Mhz crystal 00035 // UBRR0 = 11; // 38.4k with 7.3728Mhz crystal 00036 // UBRR0 = 7; // 57.6k with 7.3728Mhz crystal 00037 // UBRR0 = 3; // 115.2k with 7.3728Mhz crystal 00038 00039 // UBRR0 = 11; // 19.2k with 3.6864Mhz crystal 00040 // UBRR0 = 7; // 38.4k with 3.6864Mhz crystal 00041 // UBRR0 = 3; // 57.6k with 3.6864Mhz crystal 00042 // UBRR0 = 1; // 115.2k with 3.6864Mhz crystal 00043 00044 // UBRR0 = 51; // 9k6 with 8Mhz clock 00045 // UBRR0 = 25; // 19k2 with 8Mhz clock 00046 UBRR0 = 12; // 38k4 with 8Mhz clock 00047 }
1.4.4