KV11z-DAC

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
858件の閲覧回数
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 解決策
847件の閲覧回数
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 返答(返信)
838件の閲覧回数
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 件の賞賛
返信
829件の閲覧回数
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 件の賞賛
返信
848件の閲覧回数
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 件の賞賛
返信