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.

CCS: how to set CPU1 and CPU2 frequency in c code in TMS320F28377D dual core delfino microcontroller

Other Parts Discussed in Thread: TMS320F28335, TMS320F28377D, C2000WARE

Tool/software: Code Composer Studio

Following is the way to Initialize the CPU frequency in TMS320F28335 processor, how to initialize  CPU1 and CPU2 frequencies in TMS320F28377D dual core delfino microcontroller in CCS

EALLOW;
#if (CPU_FRQ_150MHZ) // Default - 150 MHz SYSCLKOUT
#define ADC_MODCLK 0x3 // HSPCLK = SYSCLKOUT/2*ADC_MODCLK2 = 150/(2*3) = 25.0 MHz
#endif
#if (CPU_FRQ_100MHZ)
#define ADC_MODCLK 0x2 // HSPCLK = SYSCLKOUT/2*ADC_MODCLK2 = 100/(2*2) = 25.0 MHz
#endif
SysCtrlRegs.HISPCP.all = ADC_MODCLK; // HSPCLK = SYSCLKOUT/ADC_MODCLK
EDIS;

  • Shan,

    If you look in the following example path in C2000Ware "C:\ti\c2000\C2000Ware_2_00_00_02\device_support\f2837xd\examples\dual\blinky_dc\ " and load the projects into CCS you can see a similar #define set up in the F2837xD_Examples.h 

    These are used in the F2837xD_SysCtl.c file in the InitSysPll function call.

    Let me know if you have more questions.

    Best,

    Matthew