Any NXP SDK API to provide delay in microseconds resolution?

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

Any NXP SDK API to provide delay in microseconds resolution?

809件の閲覧回数
misterbee
Contributor II

I wonder if NXP SDK for LPC5411X provides any HAL API to introduce delay in microseconds resolutions?

0 件の賞賛
4 返答(返信)

785件の閲覧回数
jay_heng
NXP Employee
NXP Employee

There is common API: SDK_DelayAtLeastUs(), it might not be accurate,but the resolution is us.

0 件の賞賛

804件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

HI misterbee 

SDK doesn't have such an API

We suggest using timer to get a accurate delay.

Thanks,

Jun Zhang

0 件の賞賛

789件の閲覧回数
misterbee
Contributor II

Thank you but how timer can be used as delay?

I am talking about delay that needed in between e.g. I2C command. I don't think timer is relevant.

0 件の賞賛

784件の閲覧回数
jay_heng
NXP Employee
NXP Employee

Enable HW timer first, then poll timer counter value until the delay time is met.

0 件の賞賛