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.

SMCLK source switching settling time

Hey,

I apologize if this is a redundant question, but i'm not too sure about this. If i start my program by using the SELS bit to switch the SMCLK source from DCOCLKDIV(1.045 MHz), which is its default to DCOCLK, which has a standard frequency of around 2.09 MHz on start up, and then immediately use that SMCLK frequency to toggle an LED using Timer A compare mode, would i need to provide some sort of delay after switching the SMCLK source?

Thanks

  • Aditya Shanker1 said:
    and then immediately use that SMCLK frequency to toggle an LED using Timer A compare mode, would i need to provide some sort of delay after switching the SMCLK source?

    Clock switches are mroe or less instantaneous. In this specific case, old and new clock are synchronous (DCOCLKDIV was derived from DCOCLK), so it is instantaneous. For switching between asynchroneous clocks, I think there was one clock cycle for synchronization.
    I remember seeing a timing diagram in the users guide, clock module section.

**Attention** This is a public forum