Accuracy of general purpose timer in i.MX6Q USB

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

Accuracy of general purpose timer in i.MX6Q USB

1,592件の閲覧回数
torus1000
Contributor V

Hi,

According to the i.MX6Q reference manual, there is a general purpose timer in the USB module.
So I want to make sure the relationship between SOF(125us) and this timer(1~1677215us).

Those two are completely synchronized?

For example, if I programmed the timer duration as 1000us, the interrupt will constantly generate each 8 micro frames(8x125us)?

Can anybody help me?

Thanks.

ラベル(1)
0 件の賞賛
返信
5 返答(返信)

1,424件の閲覧回数
torus1000
Contributor V

Dear Victor,

Thank you for replying.

EPIT you mentioned is one of the candidates to realize what I want to do.

But I've been searching for the simplest way.
For me, internal timer in the USB module is more attractive.

Does anyone know clock source of this timer?

BR

0 件の賞賛
返信

1,424件の閲覧回数
torus1000
Contributor V

Could someone help me please?

I'd be happy if someone could clarify the usage of this general purpose timer which I believed to synchronize to SOF.

0 件の賞賛
返信

1,424件の閲覧回数
b36401
NXP Employee
NXP Employee

You can refer "30.4 Functional Description" chapter of i.MX 6D/Q Processor Reference Manual regarding to GPT usage.

Have a great day,
Victor

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,424件の閲覧回数
torus1000
Contributor V

Dear Victor,

I think you refer to GPT however I asked about not GPT but USB_x_GPTIMER0/1. Please see attached.

If you know something, please let me know. I need your help.

Thanks.

---

usb_GPT.png

0 件の賞賛
返信

1,424件の閲覧回数
b36401
NXP Employee
NXP Employee

You can use High Resolution Timer for more accuracy time measuring.
Please refer these notes:

https://community.nxp.com/thread/314550

Have a great day,
Victor

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------