Re: PIC18F4685 UART Baud rate
|
||||
---|---|---|---|---|
資深會員
|
把表格看完
只有圖中的右下角那個設定可以達到115200 但是ERROR RATE高達 2.12% 不建議使用 我認為你可以把fosc往上提升速度。 Attach file: (0.00 KB)
發表於: 2020/6/16 10:02
|
|||
|
Re: PIC18F4685 UART Baud rate
|
||||
---|---|---|---|---|
版主
|
參考一下網友 linwangco 的建議:
將 Fosc 的速度提升到 20Mhz 在 115.2Kbps 的速度下,Baud-Rate 的誤差就降為 0.94% 這是可以接受的誤差範圍。 如果是用內建的 FRC 8MHz 的話,其誤差約 2% 這就不太適合高速的 UART 傳輸。建議改用 4MHz Crystal 配合 PLL 電路提高頻率,這樣UART 才會穩定。
發表於: 2020/6/16 12:13
|
|||
|
Re: PIC18F4685 UART Baud rate
|
||||
---|---|---|---|---|
初級會員
|
謝謝大家的回覆
因為搭配硬體設計,Baud rate設定 19200
發表於: 2020/6/17 22:14
|
|||
|