You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my understanding of verilog code, it seems like (prescale * 8) * 9 bits * baud = Fclk. *8 because prescale_reg <= (prescale << 3) in verilog code. *9 because of the transferred 9 bits in 1 symbol.
I'm confused about
The prescale input determines the data rate - it should be set to Fclk / (baud * 8).
Do I understand the code in a wrong way?
The text was updated successfully, but these errors were encountered:
The code waits for prescale*8 clock cycles for each bit transferred. And for RS-232, one bit is one symbol so the baud rate is the same as the bit rate.
In my understanding of verilog code, it seems like
(prescale * 8) * 9 bits * baud = Fclk
.*8
becauseprescale_reg <= (prescale << 3)
in verilog code.*9
because of the transferred 9 bits in 1 symbol.I'm confused about
Do I understand the code in a wrong way?
The text was updated successfully, but these errors were encountered: