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.

Clock Configuration Startup file

Other Parts Discussed in Thread: MSP430F6436, MSP430F6438, MSP430WARE

Hi all

I am using MSP430F6436 and using IAR to do coding for the drivers.

I want to confirm if there is a clock configuration startup file provided by IAR or TI.

I was previously using Atmel sam3n2a with keil and they provided a clock configuration startup file which had all the configurations done for the clock module. This was called from the startup file before main.

thanks and regards

Amardeep

  • Amardeep,

    the IAR compiler will not do clock configuration during startup. You need to do it manually in your code's main().

    If you need some basic library to work with, I would recommend to look at the MSP430ware driverlib. It has a library for ths UCS clock system module on the MSP430F6438 you are using.

  • I don't know the sam3n2a, but the ATMega does the clock configuration by separate fuses which cannot be changed at runtime.
    The MSP clock system is freely reconfigurable and starts with a default configuration at power-on. See the users guide for clock system register initial values. The usual default is running from the internal DCO with roughly 1MHz. (less on 1x family). From this point on, you can configure and reconfigure the clock system as you application demands.

**Attention** This is a public forum