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.

GPIO

Other Parts Discussed in Thread: MSP430G2553

Hello

This is krishna,

I am using MSP430g2553, I am trying to enable pull up on the GPIOs, The problem is that i can able to pull up the pins in PORT1 but unable to pull up the pins in PORT2.

#include  "msp430g2553.h"

// main function
int main(void)
{
  BCSCTL1 |= DIVA_0;                        // ACLK/1
  WDTCTL = WDTPW + WDTHOLD;

  P1DIR &= ~BIT3; //P1.3 i/p
  P1REN |=  BIT3; //P1.3 enable pullup resistor
  
  P2DIR &= ~BIT3; //P2.3 i/p
  P2REN |=  BIT3; //P2.3 enable pullup resistor
   
}

This is the code i used to pull up.

Please tell me How enable pullup in PORT2?

Thank you.

regards,

Krishna.

**Attention** This is a public forum