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.

enabling external oscillator on control card

Other Parts Discussed in Thread: MOTORWARE

Hi,
I've got one of the F2806x iso controlcards and I'd like to run using the external crystal that is installed on this board. Are there any code examples for using this instead of the internal RC? I spent a few minutes looking at the datasheet to understand the clock tree but figured someone else must have done this already. Thanks,

-Steve

  • Steve,

    There are functions available in MotorWare that should allow you to change the oscillator source from external to external.  Try looking at these functions in the clock driver:

    //! \brief Sets the oscillator clock source
    //! \param[in] clkHandle The clock (CLK) object handle
    //! \param[in] src The oscillator clock source
    extern void CLK_setOscSrc(CLK_Handle clkHandle,const CLK_OscSrc_e src);

    //! \brief Sets the oscillator 2 clock source
    //! \param[in] clkHandle The clock (CLK) object handle
    //! \param[in] src The oscillator 2 clock source
    extern void CLK_setOsc2Src(CLK_Handle clkHandle,const CLK_Osc2Src_e src);

    BR,

  • Hi Trey,

    Yes, I've seen these functions. I was hoping there was an example I could copy without having to sort through the clock tree documentation myself. I've spent just a little time on it so far without success.

    -Steve