Configure ADC for fixed conversion rate

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

Configure ADC for fixed conversion rate

876 Views
martindusek
Contributor V

Hi, what is the easiest way to configure KL25 ADC to output conversions at a fixed rate of 50 Hz? Is it possible to achieve this using only the ADC module or do I have to use timer module to trigger each conversion at the correct moment?

Labels (2)
0 Kudos
Reply
1 Reply

743 Views
mjbcswitzerland
Specialist V

Hello Martin

If you set the ADC in continuous conversion mode with highest accuracy, slowest ADC clock, maximum HW averaging and longest time added it will fire at about 650Hz.

Therefore, the method to use to get accurate 50Hz triggering is to use hardware trigger mode based on a PIT timer.

Regards

Mark

Kinetis: µTasker Kinetis support

KL25: µTasker Kinetis FRDM-KL25Z support  / µTasker Kinetis TWR-KL25Z48M support
ADC/DAC: http://www.utasker.com/docs/uTasker/uTaskerADC.pdf

For the complete "out-of-the-box" Kinetis experience and faster time to market