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.

MSP430F2274: Port pin configuration

Part Number: MSP430F2274

Hello,

I am trying to configure pin 7 of the MSP430F2274 micro-controller as the SMCLK output pin, which I can then use to measure the SMCLK frequency.

After referring to the Port P2 Pin Schematic: P2.1, Input/Output With Schmitt Trigger and Table 25. Port P2 (P2.1) Pin Functions on page 62 of the MSP430F22x2 & MSP430F22x4 - SLAS504G – JULY 2006 – REVISED AUGUST 2012 document, I came up with following function that would make pin 7 of my MSP430F2274 device output the SMCLK:

void smclk_init(void)
{
	P2DIR |= SMCLK_MASK;			// P2.1 - output at TP121
	P2SEL |= SMCLK_MASK;			// P2.1 - select SMCLK
	P2REN &= ~SMCLK_MASK;			// P2.1 - selest SMCLK
	ADC10AE0 &= ~SMCLK_MASK;		// Disable ADC
}

Where SMCLK_MASK is 0x01

However, when I compile and run the code, I cannot see any clock being output on pin 7 of the device, while the other functions work correctly, e.g. LED blinking.

What am I missing here?

Cheers,

Budimir

**Attention** This is a public forum