FRDM-K64F reading the ADC

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

FRDM-K64F reading the ADC

4,269 Views
tedbedard
Contributor I

Hey Everyone,

Im new to the K64F, I have some programming background mostly C, and C++, and I need a little help or at least some direction on where to start, code wise, so I can display or capture information directly from the on board ADC. As a side note I would like to read from the Magnetometer, and accelerometer.

0 Kudos
2 Replies

1,145 Views
mjbcswitzerland
Specialist V

Ted

See https://community.freescale.com/thread/322132

It includes ADC sampling using interrupts as well as DMA (with options to perform a DMA controlled digital delay line between an ADC input and DAC output, plus to save the ADC samples to a WAV file on the SD card).

The accelerometer is also supported in either free-running mode (back-to-back I2C reading) or in interrupt driven mode - options are available to use the accelerometer input to control PWM outputs to adjust RGB colour or to use it as the input to USB tilt-mouse.

Supports FRDM-K64F to build with CW10.x, KDS, IAR, Keil, Rowley, Coo Cox, Atollic or standalone GCC, and simulates the K64 and FRDM-K64F using VisualStudio.

Regards

Mark

µTasker Kinetis support

0 Kudos

1,145 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Ted,

Thank you very much for your focus on Freescale Kinetis product. I'm glad to provide service for you.

I'd like suggest you could find some documents about FRDM-K64F through the linke as follow and these documents could give you a quick overview of FRDM-K64F.

Next you should review the chapter about ADC module in reference manual and download the TWR-K64F120M' demo code.

At last, you could refer to ADC code in TWR-K64F120M' demo code and migrate to FRDM-K64, as the two board both use K64, so it's the migration work is easily.

Hope this reply help.
Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos