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.

TMS320F28027F: code for initializing quartz clock source

Part Number: TMS320F28027F

Hi,

I'm using the TMS320F28027F and want to use an external quartz as the clock source.

- Is there a list of recommended (and tested) quartz?

- Is there a software example / code snippet how to initialize this setup?

Currently, I'm using this code to use the internal clock source, but I want to change to a more (temperature) stable clock:

//Select the internal oscillator 1 as the clock source and choose frequency
CLK_setOscSrc(myClk, CLK_OscSrc_Internal);
PLL_setClkFreq(myPll, PLL_ClkFreq_60_MHz);
CLK_setLowSpdPreScaler(myClk, CLK_LowSpdPreScaler_SysClkOut_by_4); // 60 MHz SYSCLK -> 60MHz/4 = 15 MHz LSPCLK

  • - Is there a list of recommended (and tested) quartz?

    We do not "recommend" a part. The specs are published in the datasheet, using which you need to pick a part.

    - Is there a software example / code snippet how to initialize this setup?

    You need to use XtalOscSel (void) for external quartz crystal or ceramic oscillator

    You need to use ExtOscSel (void) for external oscillator.

    You can find both functions in f2802x_sysctrl.c