Using TimerUnit_LDD in polling mode with MKE02

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

Using TimerUnit_LDD in polling mode with MKE02

839件の閲覧回数
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 返信

521件の閲覧回数
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 件の賞賛
返信