Hi,
I am having some problems coding the experimenter board (MSP430F5438 Experimenter Board) to send a High and Low signal.
I am able to turn on and off the LED1 using P1.0 using the following code:
#include "msp430x54x.h"
//this code turns the LED1 ON
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
P1OUT |= BIT0; // P1.0 high
P1SEL &= ~BIT0; // configure P6.7 for digital I/O
P1DIR |= BIT0; // configure P6.7 as output
P1OUT |= BIT0; // P1.0 high
while(1); //spin forever
}
But when I decide to use an external pin in the experimenter board (for example P6.7), and I connect a multimiter to the pin,
the voltage doesn't change, it is always around 0.01 even if I am setting the pin to high. Here is the code I am using:
#include "msp430x54x.h"
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
P6REN |= BIT7; // enable internal pull up, 1
P6OUT |= BIT7; // P6.7 high
P6SEL &= ~BIT7; // configure P6.7 for digital I/O
P6DIR |= BIT7; // configure P6.7 as output
P6OUT |= BIT7; // P6.7 high
while(1); //spin forever
}
What I am missing here? Thank you so much for the help.