Q: Suppose, You have 8 bit ADC with a sampling rate of 1mS. Design a system that
will sort the output data and keep a statistics of how often
each binary number appears at the output of ADC.
The diagram illustrates the basic idea of a possible solution: using RAM to store a statistic data.
The digital number that is to be stored is considered as a RAM address.
Once digital data at the output of ADC becomes available, memory controller generates RD signal,
and the contence of the memory cell addressed by ADC 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.