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.

MSP430G2553: clock system programming in msp430g2553

Part Number: MSP430G2553

Hello everyone,

BCSCTL1 = CALBC1_1MHZ; // Set range
DCOCTL = CALDCO_1MHZ; // Set DCO step + modulation

In a simple dco vlo program,if we want to set the DCO frequency to 1Mhz then why we need to write the first line i.e BCSCTL1 = CALBC1_1MHZ

  • Why are you mentioning the VLO? These calibration values are not for the VLO but the DCO.

    Both registers configure the DCO. BCSCTL1 does not have "DCO" in its name because it also affects other part of the clock system.

    For how the clock module works, see chapter 5 of the User's Guide.

  • Sir the main reason is that I was trying a VLO DCO program where I am using VLO as well as DCO.

    But my main doubt is that we can set DCO by writing the following statement
    DCOCTL = CALDCO_1MHZ; // Set DCO step + modulation

    1)So why to use BCSCTL1 = CALBC1_1MHZ; // Set range isntruction?
    2)What does modulation specifies in this statement DCOCTL = CALDCO_1MHZ; // Set DCO step + modulation?
  • There are three fields that configure the DCO frequency, RSELx, DCOx, and MODx. DCOx and MODx are in the DCOCTL register, RSELx is in the BCSCTL1 register. (If you do you not set BCSCTL1, then you might use a wrong RSEL value.)

    The DCO modulator is explained in section 5.2.6 of the User's Guide.

**Attention** This is a public forum