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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
442 Views
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 Kudos
1 Solution
3 Replies
413 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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

0 Kudos
411 Views
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 Kudos
408 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 Kudos