Forum Discussion
Altera_Forum
Honored Contributor
15 years agoSampling using the VIC
I want sample the output of an ADC and store it in registers where it can be processed while another sample is taken. After reading through some Nios literature, it seems like the best way to do this is to use the Vectored Interrupt Controller and the Shadow register sets. Does anyone have an opinion about this? I'd like to write the values sampled from the ADC to the shadow registers. Thanks in advance
12 Replies
- Altera_Forum
Honored Contributor
A further clarification on dc filter:
If the dc excess power is well away from your signal bandwidth then you can use less potent filtering. If dc power is also part of your signal then you should use a very sharp filter with measured attenuation so that you only remove excess dc and pass your dc and the rest of power with minimum ripple. The running average subtraction above is a feedback system and must lock in your application i.e. you need to apply correct loop filtering(basically your averaging order and the fraction of feedback) so that you avoid oscillation due to fast/slow subtraction or over/under subtraction. - Altera_Forum
Honored Contributor
Thank you both for the knowledge, I think I'm on the right direction now.
side note: I had thought (was hoping) that because the nios processor is synthesized in the FPGA, it processes data like a circuit as the FPGA does. In any case, it doesn't matter it is a very flexible tool.