Question
Does the an2781(software uart) must use the tx
Posted on October 10, 2011 at 03:26
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