Using TimerUnit_LDD in polling mode with MKE02

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

Using TimerUnit_LDD in polling mode with MKE02

857 次查看
alessandrofabbr
Contributor I

Hi all,

I am new at using Kinetis and a microprocessor.

I am using MKE02 and I need to configure a timer in order to obtain a simple WAIT function for my code.

I am thinking about using the component TimerUnit_LDD but I'm not able to make it work in polling mode (without interrupt).

Thank you in advance,

Alessandro

0 项奖励
回复
1 回复

539 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Alessandro,

Yes, you can use the component of Timer_LDD , and if you do not want use the interrupt ,

you can disable it on the configuration of the Timer_LDD component view :

pastedImage_0.png

Then you can configure the Period of timer to 1ms, then write a WAIT function to check the flag of timer,

when the flag set to 1, it meaning delay 1ms.

And there is a WAIT function use this component of Timer_LDD , it use the interrupt , while the principle is the same , i think you can refer to .

Dear Sir/Mam,

After you write your function , if it still have any question about this, please contact me !

Hope it helps


Have a great day,
Alice Yang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复