How to Implement Dealy in coding

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

How to Implement Dealy in coding

923 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kalevikrant on Wed Feb 12 08:18:13 MST 2014
I have written code for sensing input and then  output port to respond. I want to add delay
between the two actions. Can any one help me out.

Labels (1)
0 Kudos
Reply
2 Replies

908 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MarcVonWindscooting on Sun May 11 15:03:57 MST 2014
Only appeared recently im UM rev. 1.5: MRT 'one-shot bus stall' .
0 Kudos
Reply

908 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rocketdawg on Wed Feb 12 11:29:46 MST 2014
how long a delay?
very short delays can be done with a string of nop or in a loop.
any long delay should be done with a callback from a timer ISR.

remember, a spin in place delay loop is wasting CPU cycles and is not deterministic since any ISR can change the timing.



0 Kudos
Reply