AnsweredAssumed Answered

FRDMKL02Z Clock configuration

Question asked by Andres L. Bleda on Apr 22, 2016
Latest reply on Apr 25, 2016 by Andres L. Bleda

Hi everyone, I hope you can help me to solve my doubts.  They are silly doubts for you, for sure, but I started with the kinetis MCU some weeks ago and I don't know how to change it yet.

This is my case, I have a FRDMKL02Z kit and IAR as software development tool. I would like to change the clock configuration of my project.

I started with the "Hardware Timer Demo" example supplied by NXP, I have seen the NXP documentation and I know there are two different clock modules (MCG and OSC) and so on. But in the practical way I wanted to change my program for another clock configuration (I would like to have an interrupt every 10 microseconds and also enough time for signal processing between interrupts happen, if possible).

There is a "BOARD_ClockInit" function and also a "BOARD_InitOsc0" function to configure the OSC module, but how can I change these functions to configure this demo example for a desired frequency?

 

Thanks a lot in advance.

Outcomes