Hi,
I would like to read two channels with Trigger_Always. The samples I have low prioritized. If I implement this as below, then the interrupt is triggered with the end of the second sample. It works. My problem is:
When the first sample is triggered(64x Oversampling), the second sample is not detected for 256us(1(250kHz/64)).
When the second sample is triggered(64x Oversampling),, the first sample for is not detected for 256us. How can I oversampling at the same time? (For your information: ADC0 is reserved and works with Processor_Trigger)
HWREG(ADC1_BASE + ADC_O_PC) = (ADC_PC_SR_250K); ADCHardwareOversampleConfigure(ADC1_BASE, 64); ADCIntRegister(ADC1_BASE, 2, adcget2_isr_continuous); ADCSequenceConfigure(ADC1_BASE, 2, ADC_TRIGGER_ALWAYS, 2); ADCSequenceStepConfigure(ADC1_BASE, 2, 0, ADC_CTL_CH0); ADCSequenceStepConfigure(ADC1_BASE, 2, 1, ADC_CTL_CH1 | ADC_CTL_IE | ADC_CTL_END); void adcget2_isr_continuous(void) { uint32_t data[4]; ADCIntClear(ADC1_BASE, 2); ADCSequenceDataGet(ADC1_BASE, 2, data); adc_data_004[(adcChannel_t)LARGE_ADC_20].adcValue = data[0]; adc_data_004[(adcChannel_t)LARGE_ADC_7].adcValue = data[1]; //Toggle output for test if(iopin_get(IOPIN_MASTER_SUPPLY_DISABLE) == true) { iopin_set(IOPIN_MASTER_SUPPLY_DISABLE, false); } else { iopin_set(IOPIN_MASTER_SUPPLY_DISABLE, true); } }
Thank you.