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.

msp430f1611 DCO

Other Parts Discussed in Thread: MSP430F1611

Hi,

I am trying to initialize the clock for my msp430f1611 microcontroller. I found a sample code for the msp430g2xxx microcontroller

BCSCTL1 = CALBC1_16MHZ;                

DCOCTL = CALDCO_16MHZ;

BCSCTL2 &= ~(DIVS_3);     

I can't find in the data sheet CALCB_16MHZ and CALCDCO_16MHZ since they are specific of the g2xxx micro since they refer to a particular segment (segment A) of the flash memory I think. Is there any equivalent initialization for the msp430f1611 (equivalent constant names) or I need to use the RSELx bits and set the maximum frequency? 
I think the last row (BCSCTL2 &= ~(DIVS_3); it's the only one that I can use in my code (right?). Does it set the divider for the SMCLK to 8 (I can't really understand how the bit are set with this declaration) ? 
Thanks
Claudio

  • This device doesn't seem to have those calibrated frequencies. You have to set the DCO yourself.

    BCSCTL2 &= ~DIVS_3;


    clears bit 1 and 2 in the BCSCTL2 register which does not make much sense if it is written in the init of the DCO directly after startup since both bits are cleared after reset. If you want to set a divider of 8 you have to write

    BCSCTL2 |= DIVS_3;


    Dennis

  • The 1x family has no calibration values for the DCO.

    The 1x family DCO has a maximum frequency of about 6.5MHz.
    The maximum 1x family CPU speed (with external crystal) is 8MHz (requiring VCC=3.6V).

    Details about the DCO and the 1x family basic clock system are found in the 1x family users guide. You can download it form the MSP430F1611 product page.

**Attention** This is a public forum