I am trying to read 9 values via the Nios ADC interface and running into some timing issues. Below is the pseudocode for the routine plus the specific API call:
// Configure and start the ADC
adc_stop(ADC_SEQUENCER_CSR_BASE); // ADC must be stopped to change the mode
adc_interrupt_disable(ADC_SEQUENCER_CSR_BASE); // Disable interrupts.
curr_48 = adc_data;
curr_24 = adc_data;
volt_48 = adc_data;
volt_24 = adc_data;
volt_6 = adc_data;
volt_5 = adc_data;
ind_temp = adc_data;
pmic_temp = adc_data;
tsd = adc_data;
I would suggest that you try the Design Store Example Design as a reference and work from there: https://fpgacloud.intel.com/devstore/platform/16.0.0/Standard/adc-data-capture-with-nios-ii-processo...
There are other examples that you may find useful: https://fpgacloud.intel.com/devstore/platform/?search=nios&ip_core=ADC&acds_version=any&family=max-1...
Thanks. I just checked the Design Store and I see several examples for using the ADC, but none of them seem to include a DMA. In fact, it is not explicitly apparent from the descriptions that any of these include an example of DMA transfer from the ADC to memory. Can you please point me to a specific example for that?