LPC-Link2 HSADC Sample Rate vs Clock Speed

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

LPC-Link2 HSADC Sample Rate vs Clock Speed

1,808 次查看
tristanhegseth
Contributor II

So the user manual for the LPC4370 chip I am using for a project states that the 12-bit ADC can take up to 80 MSamples per second, but I am having trouble even getting half of this. In the example code for the HSADC they spend time setting up the clock speed and the descriptor tables to drive the sampling speed, but to my understanding the sample rate can be changed directly by the ADC speed register with the CRS and DGEC. Can someone help explain what I am missing? Thanks for your time

标签 (1)
0 项奖励
回复
1 回复

1,801 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello  tristanhegseth,

 

About config ADC conversion clock, please refer the function of  void setupClock() under LPCopen.

Download LPCopen from:

https://www.nxp.com/design/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcop... 

And there is a thread about 80M ADC, you can have a look:

https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-HSADC-does-not-work-correctly-with-clockin...

 

BR

Alice

标记 (1)
0 项奖励
回复