Kris-Sekula / NABU

Collection of random stuff for the NABU computer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crystal selection

leonkiriliuk opened this issue · comments

DJ Sures shared how the baud rate is generated in his latest video. Here's the exact spot: https://youtu.be/wwaBKyNNwCw?t=79

Using the formula: Baudrate = X hz crystal / 2 / 16

If we use the crystal you have here, X = 1843200 (1.8432 Mhz) results in baud rate of 57600. Shouldn't we use a crystal that's exactly 2X to get 115200? Something like a 3.6864 Mhz? According to the video, the oem crystal is 3.5795 Mhz so this would mean over clocking.

in the NABU computer the division by 2 happens before the clock reaches the serial chip ... so if you are feeding clock directly, you only need to divide by 16.