Is the general purpose timer run at fsclk0 frequency?

I'm using ADSP-SC573 EZ-board.

What clock frequency does the general purpose timer run on?

I have setup a general purpose timer. This is my code to setup a 2.5MHz PWM output. Is it correct that the timer is run on at fsclk0 frequency?

/* Setup timer for generation of 2.5MHz CLK IN */

ADI_TMR_RESULT result;
/* Open timer */
result = adi_tmr_Open(0, sclkTimerMemory, ADI_TMR_MEMORY, 0, 0, &sclkTimerHandle);

/* Set the mode to PWM OUT */
result = adi_tmr_SetMode(sclkTimerHandle, ADI_TMR_MODE_CONTINUOUS_PWMOUT);

/* Get clock frequencies */
uint32_t fsysclk;
uint32_t fsclk0;
uint32_t fsclk1;
adi_pwr_GetSystemFreq(0, &fsysclk, &fsclk0, &fsclk1);

/* Set the Period to 2.5 MHz */
uint32_t period = fsclk0 / 2500000;
result = adi_tmr_SetPeriod(sclkTimerHandle, period);

/* Set the timer width */
uint32_t width = period / 2;
result = adi_tmr_SetWidth(sclkTimerHandle, width);

/* Set the timer delay */
result = adi_tmr_SetDelay(sclkTimerHandle, 0);

/* Enable the timer */
result = adi_tmr_Enable(sclkTimerHandle, true);



Changed code example
[edited by: masip at 9:11 AM (GMT -4) on 11 Aug 2021]