Hello all,
I would like to do some simple and dirty DSP to roughly approximate a RC audio filter.
I think I can do it something like this (PSEUDO code here, ignoring bit depths and multiplier instantiation issues)
I am aiming for a cut of frequency of ~713 Hz
Audio is an 8 bit unsigned output (from a YM2149 audio chip as it happens) Ena_20K is a single clock enable at my desired sampling frequency (Freq)
wait until rising_edge(clk) if (Ena_20K = '1') then Audio_sampled