Q: Suppose, You have 8 bit ADC with a sampling rate of 1mS. Design a system that
will sort the output data and keep statistics of how often
each binary number appears at the output of ADC.
A:
The diagram illustrates the basic idea of a possible solution: using RAM to store statistical data.
The digital number that is to be stored would be a RAM address.
Once digital data at the output of ADC becomes available, memory controller generates RD signal,
and the content of the memory cell addressed by ADC's output latches into D register.
"1" in the D-register enables WR signal to the next memory cell. To calculate how many times a certain number appeared at the output of ADC
it necessary to summarize the content of all memory cells.