Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20736 Discussions

MAX10 ADC sample store with threshold violation detection core

Altera_Forum
Honored Contributor II
1,033 Views

Hi, 

I succesfully followed this example http://www.alterawiki.com/uploads/c/cd/max10_adc_with_threshold_violation_detection_v1.pdf

Now trying to do something "usefull": to turn on a LED when out of thesholds. 

I wrote a controller with Avalon ST Sink interface for the threshold related signals and Avalon MM Master interface to write to a PIO Avalon MM Slave. (find attached). 

On my board the controller runs a 25MHz system clock, the ADC gets 2MHz from PLL and peform 25KHz sampling. I monitor 4 channels so it should take about 1000 clocks of the controller to expect the sequencer to finish the cycle and decide about threshold violation. 

Since I want the LED to stay on while thrshold violated I "latch" the valid signal with a 25bit counter that should give more than a second for another valid to come. It doesn't work! 

Can someone take a look at this?
0 Kudos
0 Replies
Reply