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.

msp430 clock

Other Parts Discussed in Thread: MSP430G2553

Hello,

Actually i am started to studying msp430g2553 . it has more than one clock source.

What is the need of many clock source in msp430?

what difference does it make when compare to single clock sourced controller ?

thanks in advance

  • veeraputhiran Thangavel said:
    what difference does it make when compare to single clock sourced controller ?

    Flexibility.

    You can run CPU from one clock (MCLK) while peripherals from another (ACLK, SMCLK). For example clock/watch/timekeeping application usually needs 32kHz oscillator. For single clock microcontroller it would mean that your CPU clock also shall run slooooow using 32kHz clock. This is not the case with msp430 where for clock timer peripheral you can use 32kHz while for CPU have fast 16 MHz or 24 MHz  built-in DCO oscillator clock.

  • Multiple clock sources provide flexibility in choosing clock sources for different modules within an MCU.

    For example, the MSP430G2553 has three clocks:
    ACLK: Auxiliary clock
    MCLK: Master clock. 
    SMCLK: Sub-main clock

    If you browse through the MSP430 Family User Guide, you will find that the different peripheral modules like TIMERS, UART, SPI,etc can be driven using any of the above mentioned clock signals, along with the DCO(Digitally Controlled Oscillator)

    The reason being is, if you want to achieve a precise low- frequency for a TIMER output, you will need a clock source with low-frequency to do so. In this case, you can go for the ACLK, after soldering the 32kHz crystal that comes with the Launchpad Kit.

    And, precise baud rates for UART applications can also be derived from specific clocks. 

    There are many other reasons to why we require multiple clock sources, an important one being the Low Power Modes(LPM), as far the MSP Family is concerned.

    Regards 

  • Hi Ilmars ,

    I didn't see your reply coming !

    I was in the process of typing my answer to the query, only after posting it, that I saw your reply.

    Anyway, happy to share the space with professionals like you :D

    Regards

  • llmars summed this up into a single word beautifully: Flexibility.

    Having multiple clocks also gives MSP430 the ability to trade off between performance and power savings. Higher frequency clocks are important when processing at full speed but they can also be turned off in low power modes to reduce current consumption. Looking at the datasheet (http://www.ti.com/lit/ds/symlink/msp430g2553.pdf pg. 23) shows which clocks are turned off in each low power mode (i.e. LPM0: mclk = 0 MHz) and how much this affects current consumption (keep in mind these numbers are estimates, actual current consumption must be measured).

     For more information on MSP430 clocks feel free to check out the user guide: http://www.ti.com/lit/ug/slau144j/slau144j.pdf section 5.

     

    -Nate

  • Kevin Jerome said:
    I didn't see your reply coming !

    I finished first because my post was shorter.

    Kevin Jerome said:
    Anyway, happy to share the space with professionals like you :D

    Lol, thanx :) To be honest - forum points is more like post counter than assurance of professionality ;)

  • Kevin, the same thing just happened to me! haha. Thank you both for adding your insight and making the forums a better resource!

  • veeraputhiran Thangavel said:
    What is the need of many clock source in msp430?

    Different clock requirements for different hardware components.

    veeraputhiran Thangavel said:
    what difference does it make when compare to single clock sourced controller ?

    Sourcing everything from one source requires a source that fits all requirements. And therefore cannot be specialized for a specific requirement.

    For timing, you might need a very precise clock. So you can use a high-precision high frequency crystal and use a lot of power to drive it, just to then scale the frequency down as you only need to run an RTC from it while the CPU (which would need the high frequency) is sleeping most of the time and doesn't need high precision.
    So there is  an internal variable speed clock source (the DCO), which isn't very precise, but built-in and cheap, an external crystal input for a high-speed crystal (if required), another one for (usually) a low-power watch crystal and depending on family, even more. Like the very low power low speed oscillator, which is very unprecise, but consumes almost no power. You can pick the clock source that fits your needs best and leave the others off until you need them (if at all). Remember, the MSP series is built for ultra-low power consumption, not for ultra-high coder convenience :)

  • Kevin Jerome said:
    I didn't see your reply coming !

    Same for me. I didn't notice I had the thread opened for about 2 hours before I finished answering. SO I missed all the replies (when I hit the 'reply' button, there was only the original question on screen)
    Working interleaved increases throughput (as one can clearly see by my post count) but obviously rises synchronization problems :)

**Attention** This is a public forum