Fix wrong number of data bits
EvilLord666 opened this issue · 1 comments
EvilLord666 commented
According to SerialEcho project i discovered one thing: number of Data bits was set incorrect, should as follows:
DATA_BITS_EXCHANGE_STATE:
begin
tx <= tx_buffer[tx_data_bit_counter];
tx_bit_counter <= tx_bit_counter + 1;
if (tx_bit_counter == TICKS_PER_UART_BIT)
begin
tx_bit_counter <= 0;
tx_data_bit_counter <= tx_data_bit_counter + 1;
if (tx_data_bit_counter == DEFAULT_BYTE_LEN /*- 1*/)
begin
tx_state <= PARITY_BIT_EXCHANGE_STATE;
tx_data_copied <= 1'b0;
end
end
end
EvilLord666 commented
done