Hello,
Can someone help me about how can I create a periodic interrupt timer for KV11z ? I am using dac_basic.c. I want to increase a voltage from 0V to 3.3V with 100mV increase for each 100ms.
Solved! Go to Solution.
Hi @CMooN,
There is an application of the Low-Power Timer in the KV11Z SDK called "lptmr" under "driver_examples", which show how to use the timer. I hope you find that example useful.
For the specific time interval, I suggest you also take a look at this guide for the PIT modules: https://www.nxp.com/docs/en/supporting-information/Periodic-Interrupt-Timer-Training.pdf
Hi Julian,
Thanks for your answer. In lptmr, the LED is controlled. But, in my project, I want to control different pin which is PTE30. Can you help me how can I built the configuration ?
Hi @CMooN,
In the SDK example, there is a toggle function called "LED_TOGGLE" under the interrupt "LPTMR_LED_HANDLER", this is what controls the LED in each interrupt. In your case, you would need to implement the application you want to do with PTE30 inside this interrupt handler.
Best regards, Julian
Hi @CMooN,
There is an application of the Low-Power Timer in the KV11Z SDK called "lptmr" under "driver_examples", which show how to use the timer. I hope you find that example useful.
For the specific time interval, I suggest you also take a look at this guide for the PIT modules: https://www.nxp.com/docs/en/supporting-information/Periodic-Interrupt-Timer-Training.pdf