How to get periodic scheduled tasks (on the order of 10us)?

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

How to get periodic scheduled tasks (on the order of 10us)?

ソリューションへジャンプ
1,005件の閲覧回数
stephen_eng
Contributor III

Hello!

I've got the i.MX 8m Mini EVK, and for my application, I need to be able to schedule periodic tasks, with triggers on the order of 10s of microseconds. Now I realize that since the timing is short, and I also need it to be very consistent, I'm assuming that I'll have to be using the Cortex M4 core to handle these events. I've already played around with some of the MCUXpresso SDK examples, and I'm able to get a bunch of those examples running. There's a FreeRTOS SW Timer example which use the xTimerCreate function call, but after trying a few things out, and reading up on it, it seems that I will only be able to get tasks occurring every 1ms or so if I were to tune some parameters.

I guess my other options look like:

  • Find another FreeRTOS API to schedule tasks. I don't know if one exists, but if you know of something, please educate me
  • Use some kind of higher-rate hardware timer to provide interrupts for me. I don't know if the 8m Mini EVK provides something built in, or if I need to provide an external stimulus through a GPIO pin.

If anyone else has done something similar, let me know.

Thanks!

ラベル(2)
0 件の賞賛
返信
1 解決策
960件の閲覧回数
stephen_eng
Contributor III

I think I might have found it. It looks like I can leverage the GPT timer example in the MCUXpresso SDK.

MCUXpresso SDK API Reference Manual: GPT: General Purpose Timer 

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
961件の閲覧回数
stephen_eng
Contributor III

I think I might have found it. It looks like I can leverage the GPT timer example in the MCUXpresso SDK.

MCUXpresso SDK API Reference Manual: GPT: General Purpose Timer 

0 件の賞賛
返信