Hi All,
For some background, we have the ADCs running, driven by a EPWM. Now, our problem is setting the EPWM registers such that we would achieve a sampling rate of exactly 1.024 MHz. Moreover, we are running at 60 MHz ( TBCLK = SYSCLKOUT), therefore, the closest sampling rate we can achieve with the EPwm2Regs.TBPRD counter is a rate of 1.034 Mhz ( 60 / ( (59 -1) ). Furthermore, we are aware of the following TBCLK = SYSCLKOUT / (HSPCLKDIV × CLKDIV) and both the DIV values are set to 1. Any hints to alleviate the problem would be appreciated.
Thanks,
Arya B.