Ther MCU it's a ATmega644A @8MHz INT OSC. This MCU has TWO USART modules. The code is as follows:
Code: Select all
#define Tx_signal PORTB.B0
void setup(void){
DDRB.B0 = 1;
DDRD.B6 = 1;
Tx_signal = 0;
UART1_Init(19200);
UART2_Init(19200);
Tx_signal = 1; Delay_ms(200); Tx_signal = 0;
}
void main(){
setup();
while(1){
//-----------------TRICKY PART---------------
UART2_Write('A');
//-------------------------------------------
Tx_signal = 1; Delay_ms(200); Tx_signal = 0;
Delay_ms(1000);
}
}
How can I handle that?
Thanks in advance.
Heaklig