LPTMR to Trigger ISR every second

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

LPTMR to Trigger ISR every second

595 Views
jadeanthonydela
Contributor I

Hello all,

I am trying to write an application that uses the LPTMR module of the FRDM-KL26Z to toggle an LED every second.

However, the LED is just lighting steadily. I am not sure if the ISR that I have created has been triggered or is correct. Below is the code for my LPTMR module.

question.PNG

The "DELAY_MS" has a value of 1000 in my header file.

RESET = 0 in my header file.

I got an idea that the ISR that I have created needs to be added in the startup file written in assembly.

Can anyone help me?

Thank you in advanced.

Best Regards,

Jade

Tags (4)
0 Kudos
Reply
1 Reply

435 Views
ivadorazinova
NXP Employee
NXP Employee

Hi Jade.

Please, could you upload whole project?

Thank you in advance!

Best Regards,

Iva

0 Kudos
Reply