[an error occurred while processing this directive]
|
#include "iom161.h"
#include "ina90.h"
interrupt [UART0_RX_vect] void UART0_RX_interrupt(void) {
PORTB = 0x0f;
}
void main(void) {
DDRB = 0xFF;
UCSR0B = 0x18; // TXEN=1 RXEN=1
UBRR0 = 23; // 23 - 9600 for 3.6864 MHz
PORTB = 0xAA;
UCSR0B = (1##TXEN0) | (1##RXEN0) | (1##RXCIE0) | (1##UDRIE0);
_SEI();
for(;;) { }
}
E-mail: info@telesys.ru