LPC51U68 ADC maximum performance

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

LPC51U68 ADC maximum performance

ソリューションへジャンプ
1,597件の閲覧回数
bonsani
Contributor II

Hi

Referring to the LPC51U68 datasheet, it is said to have ADC 5MSPS, but it actually comes out to about 200KSPS. Based on 2 channels
Is there an example code to refer to?

0 件の賞賛
返信
1 解決策
1,571件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I just modified the lpc_adc_dma with burst mode so that you can sample ADC  channel multiple times.

It appears working.

BR

XiangJun Rong

元の投稿で解決策を見る

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

Hi,

As the following screenshot, the ADC clock can reach up to 80mhz, one ADC conversion needs 15 clock cycles, so the ADC sampling rate can be 80Mhz/15=5MSPS.

 

xiangjun_rong_0-1692171220074.png

If you want to get maximum 5MSPS, you can not use the interrupt mode, because the LPC51U68 interrupt rate can not reach up to 5mhz.

You can use DMA to transfer the ADC result if the ADC conversion rate is up to 5MHz.

Hope it is helpful

BR

XiangJun Rong

 

1,573件の閲覧回数
bonsani
Contributor II
The ADC DMA example included in SDK 2.8.2 does not work until 5MSPS. DMA interrupt occurs.
0 件の賞賛
返信
1,519件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

The answer is yes, in burst mode, the ADC will continue to sample one by one, so in burst mode, you can not control the ADC conversion rate.

In Fig 79 ADC block diagram, the SCT0 output 7 can trigger ADC, if you want to control the ADC sampling frequency, you have to disable the burst mode, use the hardware triggering mode, the hardware triggering source is SCT0 output 7, so the SCT0 can define the ADC conversion rate. But you have to develop code for the SCT0 output 7 so that it can output PWM signal to trigger ADC.

The SDK has both SCT and ADC code

Hope it can help you

BR

XiangJun Rong

0 件の賞賛
返信
1,572件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I just modified the lpc_adc_dma with burst mode so that you can sample ADC  channel multiple times.

It appears working.

BR

XiangJun Rong

1,557件の閲覧回数
bonsani
Contributor II


Example checked.
The example seems to be 100*50000 for 5MSPS.
It works fine.
The problem will not be debugged if you set it to 10 or 1 in SAMPLENUM 100.
Increasing SAMPLENUM causes memory problems
I'll take that into consideration. Thank you.
0 件の賞賛
返信