I try to use the pins P2.0 and P2.1 configured as outputs in an MSP430F2110 in my application in assembler, but I can not get any logical level in the output, the pins are always in hi z, I try to do a test with the
example program " blik.c "in CCS but the resuslt is the same, could someone tell me what I'm doing wrong? I am using the following hardware: MSP-TS430PW20 and the MSP-FET and the following
configuration of P2 in the program "blink.c"
#include <msp430.h>
void main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
PM5CTL0 &= ~LOCKLPM5; // Disable the GPIO power-on default high-impedance mode
// to activate previously configured port settings
P2DIR |= 0x03; // Set P2.0 to output direction
for(;;) {
volatile unsigned int i; // volatile to prevent optimization
P2OUT ^= 0x03; // Toggle P1.0 using exclusive-OR |
i = 10000; // SW Delay
do i--;
while(i != 0);
}
}