Re: UART 求解
|
||||
---|---|---|---|---|
版主
|
"顯示亂碼" 建議先檢查 Baud-Rate 是否正確,System Clock 的頻率設定 (Configuration Bits) 是否正確? 如有示波器量一下 TxD 的輸出。
發表於: 2009/1/30 22:08
|
|||
|
UART 求解
|
||||
---|---|---|---|---|
新會員
|
請求各位高手 APP021 DSP33FJ128MC708 UART的問題?
以下的程式在終端機只顯示亂碼 : #define BAUD_VALUE 95 void main () { Init_UART () ; putsUART1("i am DSP3F") ; //printf("TOTO DSP33F") ; } void Init_UART () { unsigned int U1MODE_value ; unsigned int U1STA_value ; CloseUART1 () ; ConfigIntUART1 (UART_RX_INT_EN & UART_RX_INT_PR6 & UART_TX_INT_DIS & UART_TX_INT_PR2) ; U1MODE_value = UART_EN & UART_IDLE_STOP & UART_MODE_SIMPLEX & UART_DIS_WAKE & UART_EN_LOOPBACK & UART_EN_ABAUD & UART_BRGH_SIXTEEN & UART_NO_PAR_8BIT & UART_1STOPBIT ; U1STA_value = UART_INT_TX_BUF_EMPTY & UART_TX_ENABLE & UART_INT_RX_CHAR & UART_ADR_DETECT_DIS & UART_RX_OVERRUN_CLEAR ; OpenUART1 (U1MODE_value , U1STA_value , BAUD_VALUE) ; } 請各位高手看一下我只是單純的想在終端機顯示printf的內容而已 請問是那裡出了問題嗎?
發表於: 2009/1/30 20:59
|
|||
|