Any NXP SDK API to provide delay in microseconds resolution?

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

Any NXP SDK API to provide delay in microseconds resolution?

802 次查看
misterbee
Contributor II

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

0 项奖励
4 回复数

778 次查看
jay_heng
NXP Employee
NXP Employee

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

0 项奖励

797 次查看
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 项奖励

782 次查看
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 项奖励

777 次查看
jay_heng
NXP Employee
NXP Employee

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

0 项奖励