AnsweredAssumed Answered

Does the an2781(software uart) must use the tx

Question asked by chris.cgha on Oct 10, 2011
Latest reply on Oct 10, 2011 by chris.cgha
I found if i disable the SWUART_TRANSMIT_USED ,it will hang in TIMERx_UPD_OVF_BRK_IRQHandler and can not run out of it. In this function:
#ifdef SWUART_TRANSMIT_USED
 uart_Tx_timing();
#endif
 The clear_owerflow_flag define is called in uart_Tx_timing, so should i move this sentence out?
void TIM2_UPD_OVF_BRK_IRQHandler(void) interrupt 13
{
clear_owerflow_flag;
#ifdef SWUART_TRANSMIT_USED
 uart_Tx_timing();
#endif
}

Thanks,
Cgha

Outcomes