Browsing this Thread:
1 Anonymous Users
|
Re: dsPIC33EV256GM106同時使用兩組UART時無法接收RX訊號相關問題
|
|
版主
Joined
: 2004/4/30 10:53 最後登入時間
: 2021/11/30 18:11
From CAE, Microchip
Group:
站務管理者 註冊會員
Level : 75 HP : 744 / 1861 MP : 5367 / 108866 EXP : 45
|
1. 請檢查一下 U2RX 的中斷優先權是否高於 MCU 的中段優先權 (SPLx)?
2. 確定 U2RX 的中斷功能有開啟。
3. 檢查一下中斷函式的名稱是否與 GLD 檔的名稱一樣?
PIC33EV256GM106.gld 內的中斷函數名稱設定:
LONG( DEFINED(__U2RXInterrupt) ? ABSOLUTE(__U2RXInterrupt) : ABSOLUTE(__DefaultInterrupt)); LONG( DEFINED(__U2TXInterrupt) ? ABSOLUTE(__U2TXInterrupt) : ABSOLUTE(__DefaultInterrupt));
發表於: 2021/2/18 10:50
|
|
|
dsPIC33EV256GM106同時使用兩組UART時無法接收RX訊號相關問題
|
|
新會員
Joined
: 2021/2/17 13:47 最後登入時間
: 2021/2/17 18:43
Group:
註冊會員
Level : 1 HP : 0 / 0 MP : 0 / 0 EXP : 0
|
使用dsPIC33EV256GM106 同時使用UART1及UART2 UART1的TX及RX功能皆正常,UART2的TX功能正常但RX無法進入中斷,用示波器檢查RX腳位確實有資料進入且資料無誤,但利用debug模式查看U2RXREG永遠是0... 想請問是否有人跟我遇到一樣的問題? 有沒有哪裡可能我沒注意到?
發表於: 2021/2/17 15:13
|
|
You can view topic.
你 不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.