How we can configure Timer2 epit to generate 3 to 5 Mhz clock

Dear Team,
I am working on colibri iMX6ULL 512 which has linux in it, now i want to configure the TIMER2_EPIT, to generate in between 3 to 5 MHz clock and give it to my ADC
So could anybody from the team support me to do this

Regards,
Ashish

Hi @Ashish,

Thanks for posting to Toradex Community.

Regarding your query, as per my understanding ept timer is not available to user space. This may have changed but we did’t find any suitable example/doc to share.

Now for solution one can use one of available PWM to generate clock. Please check below article

Additionally some reference post for timer

Best Regards
Ritesh Kumar