KV11z-DAC

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KV11z-DAC

跳至解决方案
710 次查看
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 项奖励
回复
1 解答
699 次查看
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 项奖励
回复
3 回复数
690 次查看
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 项奖励
回复
681 次查看
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 项奖励
回复
700 次查看
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 项奖励
回复