KV11z- DAC with LPTMR

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

KV11z- DAC with LPTMR

Jump to solution
1,096 Views
CMooN
Contributor I

Hi,

I am trying to built a interrupt timer for dac_basic.c . For this purpose, I want to use the logic of lptmr.c and  control voltage produced by DAC. Can someone help me for this ? 

0 Kudos
1 Solution
1,069 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

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.

View solution in original post

0 Kudos
5 Replies
1,083 Views
CMooN
Contributor I

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' ?

0 Kudos
1,070 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

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.

0 Kudos
1,054 Views
CMooN
Contributor I

Hi,

Can you please help me about how to init GPIO and to toggle it?

I want to init PTE16 and toggle it i LPTMR.

Tags (1)
0 Kudos
1,050 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

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

0 Kudos
1,089 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

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

0 Kudos