From ecb1374f509a1b74d1d5e582a3d30591ae6bfbf6 Mon Sep 17 00:00:00 2001 From: Forty-Bot Date: Sun, 4 Oct 2020 15:33:41 -0400 Subject: [PATCH] doc: Fix incorrect clock rate The baud rate on my BusPirate v3 calculated based on a 16 MHz clock, not a 32 MHz clock. I tried calculating a new baud divider using a 32MHz clock, but got incorrect values. Using a 16 MHz clock gives dividers which match the default baud settings [1]. [1] http://www.nicksoft.info/el/calc/?ac=spbrg&submitted=1&mcu=+Generic+16bit+BRG&Fosc=16&FoscMul=1000000&FoscAutoSelector=0&MaxBaudRateError=1 --- Documentation/uart.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/uart.md b/Documentation/uart.md index d30a43c6..a48eef4e 100644 --- a/Documentation/uart.md +++ b/Documentation/uart.md @@ -135,7 +135,7 @@ A custom baud rate is set with the BRG option in firmware v5.5+. Use a [PIC UART ![Baud Rate Calculator](images/BP-uart-custom-baud.png) -Set the calculator with the Bus Pirate values: PIC24, 32MHz clock. Enter the desired baud rate and hit calculate. Use the value from the BRGH=1 section. For 9700bps enter 411 at the Bus Pirate BRG prompt. +Set the calculator with the Bus Pirate values: PIC24, 16MHz clock. Enter the desired baud rate and hit calculate. Use the value from the BRGH=1 section. For 9700bps enter 411 at the Bus Pirate BRG prompt. Macros ------------------