我在一个项目中使用PIC32MX550F256H,现在我尝试从UART1 Rx到UART2 Tx获取任何东西,反之亦然。简单,对吧?与和谐1.062它工作正常,现在版本1.08我不能做到这一点。我需要帮助。问题是,一旦从UART2读取一个字符,它就好像不清除任何中断标志(应该清除),因为它总是重新进入ISR(即使每次读取NULL字符),所以我无法让它工作。甚至从旧的和声代码中复制部分到这个新的和声代码中,但仍然有。<代码>void>void_u ISR(_UART_1_VECTOR,ipl1AUTO)Inl1AUTO_IntHandHandHandDrVVVVVVVVVVVVVVVVVVVVVV读Byte()1;如果(!)DRV_USART1_TransmitBufferIsFull()){DRV_USART1_WRT1写入字节(接收字符)}{DRV_USART1_WRT1_Writ字节(接收字符)}{DRV_USART1_发送(DRV_USART1_传输BuRT1_传输缓冲器_传输缓冲器(接收字符);}DRV_DRV_USART_USART1_USART1_WRT1_WRTRTRTRTRT1_任务发送_任务发送(接收字符)}}}DRV_DRV_DRV_USART_USART_USART1_USART1_USART1_USART1_USART1_VVVVV1_VVVVV1_发送缓冲区1_发送DrvUsar
tinstance1(void){char ReceivedChar=DrviUsART1IReBead();DRV_USART0_TransmitBufferIsFull()){DRV_USART0_WriteByte(ReceivedChar);}DRV_USART_TasksTransmit(sysObj.drvUsart1);DRV_USART_TasksReceive(sysObj.drvUsart1);DRV_USART_TasksError(sysObj.drvUsart1);};ISR代码希望您能帮助我,并提前感谢