[an error occurred while processing this directive]
|
#define ENABLE_BIT_DEFINITIONS
#include
#include
void main() {
// set bound rate
UBRR = 25; //9600, Fq = 4M
//Enable transmitter
UCR = (1 << TXCIE)|(1 << TXEN);
UDR = 'q';
__enable_interrupt();
while(1) {}
}
#pragma vector=UART_UDRE_vect
__interrupt void intTX(void)
{ //just has send a byte
UDR = 'q';
}
E-mail: info@telesys.ru