Hi @CMooN,
If your goal is to increase the DAC value in each interrupt, inside the handler you will need to implement a function or flag to check so you increase the value each time an interrupt is taken place.
Hi @Julián_AragónM ,
Thanks for your answer. I have merged lptmr and dac functionalities together. My purpose is to increase dacValue from 0 to 4095 in 3 seconds. What should I do in the function called 'LPTMR_LED_HANDLER' ?
Hi @CMooN,
If your goal is to increase the DAC value in each interrupt, inside the handler you will need to implement a function or flag to check so you increase the value each time an interrupt is taken place.
Hi @CMooN,
In the SDK examples, you can find a project with GPIO initialization and toggle function under "driver_examples" -> "gpio" -> "gpio_input_interrupt".
I hope you find this useful!
Best regards, Julián
Hi @CMooN,
The timer handler is used in the SDK example you mention, which will prove useful for your application. You will need to merge these projects to use lptmr and dac functionalities together.
I hope you find this useful! Best regards, Julian