KV31 ADC Sample Rate with Hardware Averaging

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KV31 ADC Sample Rate with Hardware Averaging

跳至解决方案
1,221 次查看
ohiogt
Contributor III

I'm using the PIT to hardware trigger the ADC module.  I was able to successfully capture a 1 kHz test signal at a 100 kSPS rate.  I then implemented hardware averaging.  I expected the sample rate to drop to the base sample rate divided by the number of averages (i.e. 100 kSPS / 4 avg. = 25 kSPS).  Instead it dropped by a factor of 3 (33.33 kSPS).  I found the other settings resulted in sample rates that were (3/4 * number of avg's).  So an average of 8 resulted in a sample rate reduction of 6.  Has anyone else confirmed this?  Is the intended behavior?

No Averaging - 100 kSPS Assumed Sample Rate, 1 kHz Test Signal

time no avg.jpg

freq no avg.jpg

Averaging of 4 - 25 kSPS Assumed Sample Rate, 1 kHz Test Signal

time 4 avg.jpg

freq 4 avg.jpg

Averaging of 4 - 33.33 kSPS Assumed Sample Rate, 1 kHz Test Signal

time 4 avg 33.jpg

freq 4 avg 33.jpg

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
878 次查看
alexeyusoltsev
Contributor IV

 Hi!

When you are using hardware avereging your PIT just starts a burst of a conversion. Each burst consist of number of hardware averege. Inside each of burs acting rules of continios conversion.

 The time of such a burst depends on your ADC clock speed, sample time settings and ADC resolution.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
879 次查看
alexeyusoltsev
Contributor IV

 Hi!

When you are using hardware avereging your PIT just starts a burst of a conversion. Each burst consist of number of hardware averege. Inside each of burs acting rules of continios conversion.

 The time of such a burst depends on your ADC clock speed, sample time settings and ADC resolution.

0 项奖励
回复
878 次查看
ohiogt
Contributor III

Alexey/Jorge,

Thanks for the response.  I was incorrectly assuming the PIT initiated each sample input to the hardware average function.

Shawn

0 项奖励
回复
878 次查看
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Shawn Mason

Sorry for the late reply. It is difficult to us determinate the problem here if we don't have knowledge of how you setup the ADC conversions. How are you setting your sample time? and how is your Base conversion time? is it possible that you share your complete project or the part that setup your ADC conversion?

I recommend you to check section 31.4.3.5 Sample time and total conversion time in the reference manual. Here you could find:

pastedImage_7.png

So, ConversionTime could be affected by time added due to long sample or High-speed.

Hope this information help you, please don't hesitate to tell me if you have more question of this.

Best Regards

Jorge Alcala

0 项奖励
回复