AnsweredAssumed Answered

kl43z timer issue

Question asked by Kenneth Graakjær on Mar 4, 2015
Latest reply on Mar 6, 2015 by Kenneth Graakjær

Hi

 

I'm trying to do a bare bones timer setup on the frdm kl43z board.

 

In my source I have:

 

#include "fsl_device_registers.h"

 

int main() {

     TPM2_SC |= TPM_SC_PS(0x7);    // prescaler at 128.

     /* other stuff */

}

 

However when I encounter the above line in debug mode it triggers the default interrupt handler. This is the same for all timers TPM0 - 2.

 

Any ideas as to what I'm missing?

Outcomes