How to create delays in FRDM-KE02Z

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create delays in FRDM-KE02Z

1,184 Views
abdulhayee
Contributor II

Hi guys

I am using FRDM-KE02Z board. I wanna ask how do i create delays in FRDM-KE02Z without using interrupts.

for example if i want 1uS delay, 5mS delay, 1Sec delay etc. How do i write a function for that?

suppose i want to toggle an LED with a rate of 30mS then how i generate this 30mS delay?

Thanks and best regards

Abdul hayee

0 Kudos
Reply
2 Replies

1,048 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Abdul hayee,
You can refer the function posted by Erich.
This is related to the frequency of Core, so you need to know the configuration of ICS module.

Figure 5-1. Clocking diagram.png

Best Regards,

Robin

0 Kudos
Reply

1,048 Views
BlackNight
NXP Employee
NXP Employee

Have a look at the Wait component of the McuOnEclipse project:

McuOnEclipseLibrary/McuWait.c at master · ErichStyger/McuOnEclipseLibrary · GitHub 

I hope this helps,

Erich

0 Kudos
Reply