lpcware

how to change sampling frequency

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by SantiagoElias on Tue Nov 15 13:16:55 MST 2011
Hello.

I am new on LPC, and I'm trying to change the sampling frequency on a LPC1114.

I tried so far changing some variables, such as

  LPC_ADC->CR = ((SystemCoreClock/LPC_SYSCON->SYSAHBCLKDIV)/ADC_Clk-1)<<8;
or
  #define ADC_CLK2400000/* set to 2.4Mhz */

but it did not success.:mad:

How can I test it?
Thank you so much!

S.

Outcomes