For future design reference, an alternative way of doing this.
I think this can be done in 8 chips total, only external passives
would be LED current limit resistors, and a bypass cap or two per
chip.
On chip there are two dig filter channels, two SARs. In addition I created a 16 bit shift reg on
the chip to drive the LEDs. So output of filter goes to code that detects peak, and thats used
to control LED shift register for that channel
Filter looks like (example at 1 Khz) :
And shift reg looks like :
So this is all on one chip, except LEDs and LED R's.
Compiler and IDE (PSOC Creator) free, boards to use for two channels and programming
it / prototype is $15
Food for thought next time you want to do something like this.
Note alternative could have done it with same board as FFT generator, and
then a chip for each 4 channels with 4 16 bits shift registers in the chip.
Regards, Dana.