Sampling ADC at 1.2 MHz

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

Sampling ADC at 1.2 MHz

ソリューションへジャンプ
1,991件の閲覧回数
nadine
Contributor III

Hi,

 

I'm using a FRDM-K64 board. I need to sample the ADC at 1.2 MHz.

I have use the PDB timer to program hardware interrupt. The program works but

the interruption function takes almost half of the CPU time (47%), and I need more time

for the data computing in the main program.

Is there a better way to do, for sampling ADC at high speed. I was thinking to an hardware FIFO

where the data conversion of the ADC would be stored.

 

Thanks for your help

Best Regards

Nadine

ラベル(1)
0 件の賞賛
1 解決策
1,047件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Nadine,

Unfortunately, I have not the example code using ADC/DMA/PIT for K64.

Pls refer to the community for the example code:

PIT- ADC- DMA Example for FRDM-KL25z, FRDM-K64F, TWR-K60D100 and TWR-K70

Hope it can help you.

BR

Xiangjun Rong

元の投稿で解決策を見る

4 返答(返信)
1,047件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Nadine,

As you know that the K64 has eDMA module, which can fetch the data from ADC module to memory automatically, after the number of data specified has been transferred, the eDMA can generate an interrupt. in the ISR, you can reconfigure the eDMA so that eDMA can fectch the ADC sample to another memory location, at the same time, you can handle the data the eDMA has fetched, this is called Ping-Pong mode.

Hope it can help you.

BR

XiangJun Rong

0 件の賞賛
1,047件の閲覧回数
nadine
Contributor III

Hi Xiangjun,

Thanks for the answer.

I will try to configure and use the eDMA driver.

Do you know if there is a demo available using the eDMA and the ADC ?

It is very helpful to start with such a program.

For now, it is not obvious for me to link the ADC data and the eDMA

channels.

Best Regards

Nadine

TALUKO

<mailto:CRE@TVT> CRE@TVT NUMERIQUE

Bâtiment A, 1er étage

Place Besagne

83000 Toulon

<http://www.taluko.com> www.taluko.com

Tel : +(33) 4 98 07 74 52

Mobile: +(33) 6 66 27 85 66

0 件の賞賛
1,048件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Nadine,

Unfortunately, I have not the example code using ADC/DMA/PIT for K64.

Pls refer to the community for the example code:

PIT- ADC- DMA Example for FRDM-KL25z, FRDM-K64F, TWR-K60D100 and TWR-K70

Hope it can help you.

BR

Xiangjun Rong

1,047件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I suppose that the K64 ADC sampling frequency can not reach up to 1.2MHz, the maximum ADC sampling frequency is 818KHz with 13 bit resolution.

If you want to get 1.2MHz sampling frequency, I suggest you use KV5x, the KV5X has cyclic ADC,  the cyclic ADC of KV5x can reach up to 1.2MSPS.

Hope it can help you.

BR

Xiangjun Rong

pastedImage_0.png

0 件の賞賛