iMX6ULL, Linux 4.1.15, how to use EPIT to implement accurate periodic interrupts?

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

iMX6ULL, Linux 4.1.15, how to use EPIT to implement accurate periodic interrupts?

ソリューションへジャンプ
800件の閲覧回数
JanieZee
Contributor I

I want to use EPIT to achieve an interrupt every 156us, but actual tests have found that the interrupt interval is not precisely 156us, with some intervals even reaching the millisecond level.

Why is this happening? What should I do to achieve an accurate 156us periodic interrupt?

Thanks

0 件の賞賛
返信
1 解決策
765件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信
3 返答(返信)
771件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

How do you call the epit function in your test? Have you write EPIT driver by yourself?

0 件の賞賛
返信
769件の閲覧回数
JanieZee
Contributor I

Yes, this is the EPIT driver. Additionally, I have set CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y, but the interrupt interval is still not accurate.

0 件の賞賛
返信
766件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信