mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-05-02 14:16:28 -04:00
FPGA: Increase clock frequency to 21 MHz
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
parent
00599549e3
commit
75b028505f
3 changed files with 9 additions and 9 deletions
|
@ -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: 21 MHz, 62500 bps
|
||||
// Divisor = 21E6 / 62500 = 336
|
||||
// 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'd336;
|
||||
localparam DEFAULT_DATA_BITS = 4'h8;
|
||||
localparam DEFAULT_STOP_BITS = 2'h1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue