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.

MSPF2012 : P2.6 - Not Oscliator but I/O

Other Parts Discussed in Thread: MSP430F2012

Hello!

I've simple question. Is it possible to have  digital I/O on port 2.6,7 instead external oscilator on uP MSP430F2012?

Here is code, which set Port 2.6&7 for output, and put them to high state. But if I run it on uP, there is above low state on pins P2.6,7. Where could be problem?

#include <msp430x20x2.h>

void main(void)
{
  WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
  P2DIR |= 0xC0; // Set P2.6,7 to output direction
  P2OUT |= 0xC0; // P2.6,7 to output direction
}

 

Thanks for answers!

 

Miha

**Attention** This is a public forum