How to Implement Dealy in coding

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

How to Implement Dealy in coding

931件の閲覧回数
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 返答(返信)

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

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