KV11z- DAC with LPTMR

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

KV11z- DAC with LPTMR

ソリューションへジャンプ
1,427件の閲覧回数
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 件の賞賛
返信
1 解決策
1,400件の閲覧回数
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 件の賞賛
返信
5 返答(返信)
1,414件の閲覧回数
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 件の賞賛
返信
1,401件の閲覧回数
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 件の賞賛
返信
1,385件の閲覧回数
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.

タグ(1)
0 件の賞賛
返信
1,381件の閲覧回数
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 件の賞賛
返信
1,420件の閲覧回数
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 件の賞賛
返信