AnsweredAssumed Answered

HOW TO CHANGE ADC CLOCK IN MQX?

Question asked by OLIVIA CHRISTY VARGHESE on Mar 26, 2017
Latest reply on Apr 4, 2017 by Daniel Chen

Hi guys.

I am doing an ADC code in MQX for FRDMK64. I used the LWADC example and made some changes an the code is working. But i want the ADC to run in full speed. I tried to change the clock by using

 

_lwadc_set_attribute(&lwadc_inputs[i],LWADC_FREQUENCY,12000000);

 

but after this command when i am printing this clock to see whether it changed. it shows 8Mhz clock. 

I tried to change the vref using this function then there is no change but whe i changed it in the BSP it is working.

#define BSP_ADC_VREF_DEFAULT            (3300)

 

But i dont know where to change the ADC clock in BSP.

 

 

Please help

Regards,

Olivia

Outcomes