ADC Conversion

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

ADC Conversion

2,394件の閲覧回数
kajolvarma
Contributor I

We have written code for eQADC_A in mpc5777c and set to 1.2Msps (verified using input sine wave and plotting graph of it). 

 

In eQADC_A we are using continuous scan method, with software pit3 as trigger source of 20.8us and use of DMA to request data from rfifo to the system memory.

 

For 50Hz input sine wave with pit3 timer  practically 480 samples are used instead of 960 samples which is calculated as theortically.

For 10KHz input sine wave with same pit3 timer, 5 samples are required.In order to increase the number of samples, we have used timer of 2us for 50 samples .But we are unable to obtain samples for 10KHz.

 

タグ(1)
0 件の賞賛
返信
3 返答(返信)

2,243件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi,

I don't understand too much mention about 20.8us PIT trigger. Continuous scan just expected ADC conversions run continuously i.e. it is triggered once.

Another point is whether you are using both converters simultaneously (ADC0 and ADC1) what's precondition of achieving of maximum sampling rate.

0 件の賞賛
返信

2,243件の閲覧回数
kajolvarma
Contributor I

We are using pit tigger for DMA operation.Yes we are using ADC0 and ADC1 alternately.

0 件の賞賛
返信

2,243件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

This is incorrect indeed.

Result draining needs to be trigger by eQADC itself, DMA channels 1, 3, 5. 7, 9 and 11.

pastedImage_2.png

0 件の賞賛
返信