用串口給uart1發(fā)送了一個(gè)0x03,但是UART1_RecvString(RxBuff);這個(gè)代碼讀出來(lái)的數(shù)據(jù)最高位永遠(yuǎn)是1,不管發(fā)送的數(shù)據(jù)是幾,調(diào)試的時(shí)候代碼讀出來(lái)最高位都是1這是什么問(wèn)題
__INTERRUPT __HIGH_CODE void?UART1_IRQHandler(void) { ????volatile?uint8_t?i; ????switch(UART1_GetITFlag()) ????{ ????????case?UART_II_LINE_STAT:?//?線路狀態(tài)錯(cuò)誤 ????????{ ????????????//?UART0_GetLinSTA(); ????????????break; ????????} ????????case?UART_II_RECV_RDY:?//?數(shù)據(jù)達(dá)到設(shè)置觸發(fā)點(diǎn) ????????????break; ????????case?UART_II_RECV_TOUT:?//?接收超時(shí),暫時(shí)一幀數(shù)據(jù)接收完成 ????????????i?=?UART1_RecvString(RxBuff); ????????????LOG_INFO("shoudao%d",RxBuff[0]); ????????????break; ????????case?UART_II_THR_EMPTY:?//?發(fā)送緩存區(qū)空,可繼續(xù)發(fā)送 ????????????break; ????????case?UART_II_MODEM_CHG:?//?只支持串口0 ????????????break; ????????default: ????????????break; ????} }