KV11z-DAC

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

KV11z-DAC

Jump to solution
721 Views
CMooN
Contributor I

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.

0 Kudos
Reply
1 Solution
710 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

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

View solution in original post

0 Kudos
Reply
3 Replies
701 Views
CMooN
Contributor I

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 ?

0 Kudos
Reply
692 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply
711 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply