How to Implement Dealy in coding

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

How to Implement Dealy in coding

921 次查看
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.

标签 (1)
0 项奖励
回复
2 回复数

906 次查看
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 项奖励
回复

906 次查看
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 项奖励
回复