ADC clock frequency

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

ADC clock frequency

3,527 次查看
_Ferrari_
Contributor V

Dear all,

I'm developing a project based on LPC5526 CPU. I read in the LPC5526JBD100_User_Manual_11126 UM11126.pdf file:

"The ADC target sampling rate is 1 mega sample per second. See Figure 4." (pag. 789)

It means that the sample period is 1 µs

But if I set 96MHz clock source frequency, Single conversion, 3 ADCK cycles total sample time the sampre time is 31.25 ns and the total conversione time is 213.542 ns for one loop that is lower than 1 µs.

Could you explain it better ?

 

thank you very much for your help and cooperation

regards

 

0 项奖励
回复
4 回复数

3,518 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

For LPC552x, The maximum ADC clock frequency is 24mhz instead of 96mhz.

This is the ADC sampling rate formula:

ADC Conversion rate = ADC clock frequency / (Sample clocks + Conversion clocks)

The conversion mode:

In 12-bit mode conversions. The conversion time is 17.5 ADC clocks,

In 16-bit mode conversions. The conversion time is 20.5 ADC clocks.

The minimum Sample clocks is 3.5 clock cycles.

so we can figure out that the maximum sample frequency is

24MHz/(3.5+20.5)=1MHz in 16 bits mode.

24MHz/(3.5+17.5)=1.14MHz in 12 bits mode.

xiangjun_rong_0-1679656916090.png

 

Hope it can help you

BR

XiangJun Rong

0 项奖励
回复

3,489 次查看
_Ferrari_
Contributor V

Thank you for your email I read it.

Unfortunately what is reported in the config tool is false (please see the attacched file)

Could you explain me better ?

Thank you very much for your help and cooperation

regards

0 项奖励
回复

3,485 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

You have to set up the ADC clock in clock menu so that the ADC clock is equal to or less than 24MHz

xiangjun_rong_0-1679970241223.png

Then you can use the config tools to configure the ADC based on 24MHz ADC clock

xiangjun_rong_1-1679970615266.png

You can see that single conversion time approaches to 1us.

Hope it can help you

BR

XiangJun Rong

 

0 项奖励
回复

3,461 次查看
_Ferrari_
Contributor V

dear @xiangjun_rong 

thank you for your explanation, very clear,

but, as you can see, I can set the ADC clock at 96MHz in the ADC0 tabs of peripherals tool without any error or warning.

May be it is a bug of MCUXpresso config tool.

Thank you very much for your help and cooperation

regards

 

0 项奖励
回复