cancel
Showing results for 
Search instead for 
Did you mean: 

G071RB oversampler

eslavko
Associate

Hello...

I wish to setup ADC oversampler but seems that i really dont understand if its capable to do what i want. this is what i wish to got:

 

ADC triggered
Sample adc0, 1 of 4 in oversampler
Sample adc1, 1 of 4 in oversampler

ADC triggered
Sample adc0, 2 of 4 in oversampler
Sample adc1, 2 of 4 in oversampler

ADC triggered
Sample adc0, 3 of 4 in oversampler
Sample adc1, 3 of 4 in oversampler

ADC triggered
Sample adc0, 4 of 4 in oversampler -> result to dma
Sample adc1, 4 of 4 in oversampler -> result to dma

next loop:

ADC triggered
Sample adc0, 1 of 4 in oversampler
Sample adc1, 1 of 4 in oversampler

ADC triggered
Sample adc0, 2 of 4 in oversampler
Sample adc1, 2 of 4 in oversampler

ADC triggered
Sample adc0, 3 of 4 in oversampler
Sample adc1, 3 of 4 in oversampler

ADC triggered
Sample adc0, 4 of 4 in oversampler -> result to dma
Sample adc1, 4 of 4 in oversampler -> result to dma

But whatever i try i fail. There is no clear statement if oversampler does that per adc channel, or it need to be locked whole time on single adc channel (cant oversample interleaced chanels)

 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Super User

The hardware oversampler is not able to do a scheme like this. There is a single DR data register for all channels, not one for each. It fully samples one channel before moving on. You will need to implement oversampling in software.

 

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2
TDK
Super User

The hardware oversampler is not able to do a scheme like this. There is a single DR data register for all channels, not one for each. It fully samples one channel before moving on. You will need to implement oversampling in software.

 

If you feel a post has answered your question, please click "Accept as Solution".

Thanks, sadly already discovered that probably only one accumulator is present.