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
798 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
Reply
1 Solution
3 Replies
769 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
Reply
767 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
Reply
764 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 Kudos
Reply