Skip to content

Commit

Permalink
FPGA: Increase UART baud rate to 500k
Browse files Browse the repository at this point in the history
  • Loading branch information
agren committed Oct 9, 2024
1 parent 2f42989 commit 3b983d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hw/application_fpga/core/uart/rtl/uart.v
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ module uart(
// The default bit rate is based on target clock frequency
// divided by the bit rate times in order to hit the
// center of the bits. I.e.
// Clock: 18 MHz, 62500 bps
// Divisor = 18E6 / 62500 = 288
// Clock: 18 MHz, 500 Kbps
// Divisor = 18E6 / 500E3 = 36
// This also satisfies 1E6 % bps == 0 for the CH552 MCU used for USB-serial
localparam DEFAULT_BIT_RATE = 16'd288;
localparam DEFAULT_BIT_RATE = 16'd36;
localparam DEFAULT_DATA_BITS = 4'h8;
localparam DEFAULT_STOP_BITS = 2'h1;

Expand Down

0 comments on commit 3b983d2

Please sign in to comment.