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
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 :
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 .
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!
-----------------------------------------------------------------------------------------------------------------------