How to configure ADC frecuency? Freescale K70

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to configure ADC frecuency? Freescale K70

692 Views
guillermorodrig
Contributor I

Hi, i am trying to configure the ADC Module from Freescale K70 TWR MK70FN1M0VMJ12 using Processor Expert for a simple audio processing, but in conversion time i can't set 44Khz sampling for example. I can only choose between a set of possible values of clock. How can i accurate the sampling frecuency to an particular value using PE?

0 Kudos
Reply
2 Replies

594 Views
isaacavila
NXP Employee
NXP Employee

Hello Guillermo,

As previously suggested, you can use PDB module to generate hardware trigger for ADC at 44.1kHz sampling rate.

Here is a basic PDB + ADC + DAC + Processor Expert project that converts data from ADC0 and ADC1 periodically.

I hope this can help you!

Regards,

Isaac

0 Kudos
Reply

594 Views
juanm
Contributor III

You can use a timer with an interrupt rate of 44.1KHz, and then read the ADC input in the timer interrupt service routine.

0 Kudos
Reply