In built delay function

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

In built delay function

3,382件の閲覧回数
durgasivakrishn
Contributor III

Hi,

I am using MK66FN2M0VLQ18 for my application I need to use milliseconds and microseconds delay in the application I want to use inbuilt delay functions as in STM32F7 (HAL_Delay) I am not interested to use PIT Timers for this purpose can anyone suggest me something. And is there any inbuilt function to have such kind of delay in MK66 SDK.

Looking forward to your reply,

Regards,

B.Durga sivakrishna

ラベル(2)
0 件の賞賛
返信
3 返答(返信)

3,000件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi Durga,

No, NXP Kinetis SDK hasn't such a function. But I think this is not a big problem. HAL_Delay use Systick to count time. It looks like

__weak void HAL_Delay(__IO uint32_t Delay)
{
  uint32_t tickstart = 0;
  tickstart = HAL_GetTick();
  while((HAL_GetTick() - tickstart) < Delay)
  {
  }
}

You can do it by yourself.

Regards,

Jing

3,000件の閲覧回数
durgasivakrishn
Contributor III

Hi Jing,

Thanks for your reply, my doubt clarified.

Regards,

B.Durga sivarkrishna

0 件の賞賛
返信

3,000件の閲覧回数
mjbcswitzerland
Specialist V
0 件の賞賛
返信