Quantcast
Channel: Microchip Taiwan :: 論壇
Viewing full articles (4647 articles)
Browse article index
↧

Re: 16F1824 UR問題發問 [發表者 Ryang]

$
0
0
8-bit PIC (請註明使用元件編號):: 16F1824 UR問題發問
在 Data Sheet 裡,RCIF 的f除機制是讀取 REREG 暫存器後 RCIF 就會自動被清除。

先架設你的 PPS 設定 UART 的腳位是正確的。

建議你直接修改一下SendByteSerially(RCREG); // Echo back received char 為 TXREG=RCREG; 看看。這時只要收什麼就會傳什麼出去。如果還不行就要使用斷點設定來檢測一下中斷是否有發生。
↧

Viewing full articles (4647 articles)
Browse article index

Latest Images

Trending Articles



Latest Images