This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28335: Problems configuring high speed peripheral clocks

Part Number: TMS320F28335


Hi everyone, 

I am using Matlab/Simulink for programing the DSP TMS320F28335 and the problem comes with the clocking frequency.

I have to specify the clock XCLKOUT at 37.5MHz, so that, I put at Simulink the following configuration which is attached with the uploaded photo. But the reality is that, whenever I compile the Simulink file, the frequency is not the one I specified before (in Simulink). 

I have been searching and what I see at the <<MW_c28xx_board.h>> file, the one generated once the compilation is finished is the next one: 

#include "DSP2833x_Device.h"
#include "DSP2833x_Examples.h"
#include "DSP2833x_GlobalPrototypes.h"
#include "rtwtypes.h"
#include "adc_v5.h"
#include "adc_v5_private.h"

void InitXintf16Gpio();
void init_board ()
{
DisableDog();

/* Initialize the PLL control: PLLCR and DIVSEL
* DSP28_PLLCR and DSP28_DIVSEL are defined in DSP2833x_Examples.h
*/
InitPll(10,1);
InitPeripheralClocks();
EALLOW;

/* Configure low speed peripheral clocks */
SysCtrlRegs.LOSPCP.all = 1U;

/* Configure high speed peripheral clocks */
SysCtrlRegs.HISPCP.all = 2U;
EDIS;
EALLOW;

/* Perform additional configuration of the XTINF for speed up */
XintfRegs.XINTCNF2.bit.XTIMCLK = 0; /* XTIMCLK=SYSCLKOUT/1*/
XintfRegs.XINTCNF2.bit.CLKOFF = 0; /* XCLKOUT is enabled*/
XintfRegs.XINTCNF2.bit.CLKMODE = 0; /* XCLKOUT = XTIMCLK*/

So that, what I can see there is that my peripheral clock is conmmuting at SYSCLKOUT frequency, stablished at 150MHz. 

What I wanna know is if someone knows how could I modify the configuration of high speed peripheral clocks to the next one: 

/* Perform additional configuration of the XTINF for speed up */
XintfRegs.XINTCNF2.bit.XTIMCLK = 1; /* XTIMCLK=SYSCLKOUT/1*/
XintfRegs.XINTCNF2.bit.CLKOFF = 0; /* XCLKOUT is enabled*/
XintfRegs.XINTCNF2.bit.CLKMODE = 1; /* XCLKOUT = XTIMCLK*/

So that, I could reach the aimed frequency XCLKOUT=37.5MHZ. 

Thank you for your time!