The EPIT module has 3 possible reference clock sources.
1. Peripheral IPG_CLK_ROOT clock (typical frequency is 66MHz).
2. Peripheral reference PERCLK_CLK_ROOT clock (typical frequency is also 66MHz but can be downscaled with additional 6-bit divider).
For details about the clocks above, please check the CCM clock tree diagram in the Chapter 18 "Clock Controller Module (CCM)" (Page 794) of the i.MX6Dual/Quad Reference Manual Rev.5 document, available on the processor's Documentation web page:
https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/i.mx-appl...
3. 32kHz clock source.
One of the reference clock sources above can be selected by appropriately setting the EPITx_CR[CLKSRC] register field. For details, please refer to the Sections 24.6.1 "Control register (EPITx_CR)" and 24.5.1 "Change of Clock Source" of the document above.
Then, there are the 12-bit clock prescaler and 32-bit counter register within the EPIT module.
So, to generate an interrupt every 1ms, you can, for example, select one of the 66MHz reference clock sources (see above), set the prescaler value to 66 (decimal) and counter value to 1000 (decimal).
Have a great day,
Artur
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------