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.

Source Clock issue in TI-RTOS based Project: Piccolo TMS320F28069

Other Parts Discussed in Thread: TMS320F28069

Hi All

I have started developing a project taking Piccolo TMS320F28069 Controller. The project is to be developed based on TI-RTOS. I am currently facing a situation in which I am setting up my system clock at 80 MHz (which is maximum for my controller) and I am trying to generate an EPWM3 signal. But due to the involvement of TI-RTOS, the clock is fed from the internal oscillator with frequency of 10 MHz maximum. So I had a solution in which I used the PLL registers and made it to become 80 MHz. I do not think I should do this kind of juggling. So anybody there who can give me a solution so that I can adjust system clock from external oscillator instead of internal oscillator keeping TI-RTOS with the project? Please find attached herewith the project.6232.MyTest.zip

  • Hi Shaunak,

    If you have an external oscillator that you would like to use, then you can select the external oscillator by programming the control registers and then configure TI-RTOS Boot module to program the PLL to a given frequency.

    Here are the steps:

    1) Configure OSCCLKSRC2SEL and OSCCLKSRCSEL bits of Clock Control (CLKCTL) register to select external osicllator as the OSCCLK clock source.
    2) Change the "Boot.pllOSCCLK" field in the cfg script to match the external oscillator frequency.
    3) Adjust the DIV (Boot.pllcrDIV) and DIVSEL (Boot.pllstsDIVSEL) values to arrive at the desired PLL output frequency

    Here's a link to the C28x Boot module cdoc for F28069 devices:

    software-dl.ti.com/.../Boot.html

    Best,

    Ashish