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.

MSP430F2012 MCLK usage

we’re planning to use the internal clock of the MSP430F2012IRSAT micro. Per Figure 5-1 on page 274 of the User’s Guide (SLAU144J), we thought about using the MCLK output for this. It appears that we should be able to set the appropriate registers to create an internal MCLK w/o an external output. Did I read that correct?

 

Is there anything special that we should do with the unused XIN pin (pin 12)? I looked in the Data Sheet and User’s Guide, but it didn’t jump out at me. Sorry if I missed that. Sometimes they ask to tie the unused pins to GND, etc.

  • Kirk,
    Please see this code example zip file:


    In the "C" folder in this zip file (\slac080m.zip\MSP430F20xx_Code_Examples\C), you will find an example code "msp430x20x3_clks.c" and this example shows you how to configure MCLK to output it on a pin.

    Regarding XIN/XOUT: Since the XIN/XOUT pins are multiplexed with GPIOs and can act as a GPIO pins I would recommend for the for the sake of simplicity switching them to output mode by clearing P2SEL.6 and P2SEL.7 and driving them either high or low. If nothing is connected to those pins then just tie them to GND after switching them to GPIOs.

     

**Attention** This is a public forum