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.

:MSP430F2274: Clock Control Buttons in IAR

A customer is using IAR Embedded Workbench with a TI MSP-FET430UIF.  The IAR tool has a Clock Control button that when selected, displays a dialog with ACLK, SMCLK, and TACLK that are defaulted as being checked.  He couldn't find any IAR documentation on what these mean so he called IAR and they refered him to TI.  He looked around and couldn't find any info on what it means to check or uncheck these.  Can anyone explain what these buttons mean?  Thanks!

  • Hi,

    Clock control is a very powerful tool of the IDE’s (IAR & CSS). If the checkboxes are set in IAR the Clock will be stopped when the debugger stops the device (for example in a Breakpoint). If you deselect it the clock source will keep on running when the device hits the example breakpoint.

     

    Image you have to run an timer running in the background (also when you are in a breakpoint). If you stop the timer during the breakpoint you won’t get the Timer event.

     

    There are different levels of clock control the Global Clock control just for the 3 clocks (F2274) or the Module Clock Control where you could stop the clock of every device module (F23xx).

     

    Regards Florian

     

  • Hi,

    Thanks for the information.  Unfortunately, I'm still experiencing an issue.  I'm running a F2272.  My SMCLK is sourced from the DCOCLK.  None of the checkboxes in the IAR IDE's General Clock Control are checked.  I'm trying to observe SMCLOCK on P1.4.  P1DIR.4 = 1 and P1SEL.4 = 1.  If I stop the device via breakpoint or a "run to," the SMCLK stops.  If a run in an infinite loop, the clock operates.

    What I'm trying to do is to turn on the SMCLK at P1.4, then stop via breakpoint or a "run to" on the instruction after the P1DIR and P1SEL settings are configured, and observe the clock running.  Any idea as to what I may be doing wrong to accomplish this?  My Expectations were that I could accomplish this by having the SMCLK box unchecked.

    Thanks, Clay

  • Oops!  Make that a F2274.

    Sorry, Clay

**Attention** This is a public forum