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.