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.

关于MSP430FR5969的一些请教,我用的是EXP430FR5969lunch



如题,我尝试点灯(P1.0)却死活不能奏效,哪位帮忙看一下程序,是写错了还是少配置了?

int main(void)
{
  char i=0;
  WDTCTL = WDTPW | WDTHOLD;

    P1DIR =BIT0;
    P1OUT =0x01;
    P1REN=0x01;
   // P1OUT |= BIT0;
    P1SEL1=0;
    P1SEL0=0;
     
  while(1)
  {
      P1OUT ^= BIT0;
      i=P1IN;
      __delay_cycles(100000);
  }
}