isaac12345
Member level 2
Help with algorithm for baud rate decoder with the help of counter
Hi,
I need to make a baud rate decoder which takes a 16bit input from the output of a down counter. The down counter is simply enabled by a controller at a certain point and then stopped after some time, after which the baud rate decoder is enabled which calculates the baud rate and enables one of the 7 output lines, each line signifying a baud rate(300,600,1200 till 19200).
What I cant understand is how can I use the counter's value to calculate the baud rate? As I understand, a counter gives a binary value which represents time. As I know the number of bits that it counts over, should I simply have my baud rate decoder divide the number of bits by the counter's value?
I'm coding in VHDL.
Hi,
I need to make a baud rate decoder which takes a 16bit input from the output of a down counter. The down counter is simply enabled by a controller at a certain point and then stopped after some time, after which the baud rate decoder is enabled which calculates the baud rate and enables one of the 7 output lines, each line signifying a baud rate(300,600,1200 till 19200).
What I cant understand is how can I use the counter's value to calculate the baud rate? As I understand, a counter gives a binary value which represents time. As I know the number of bits that it counts over, should I simply have my baud rate decoder divide the number of bits by the counter's value?
I'm coding in VHDL.