I am just getting started. I have a MSP430FG439. I am using the IAR embedded workbench. I have a basic program that should toggle a port pin shown below. I am able to complie, build and link my source code , then I can download and debug with no errors....but using a scope, I don't see any signal on the port pin. This makes me think I am not really running from the target hardware but running a simulator .....any help would be appreciated
#include <msp430xG43x.h>
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop WDT
P5DIR |= 0x02; // P5.1 output
CCTL0 = CCIE; // CCR0 interrupt enabled
CCR0 = 20000;
TACTL = TASSEL_2 + MC_1; // SMCLK, up mode
_BIS_SR(LPM0_bits + GIE); // Enter LPM0 w/ interrupt
}
// Timer A0 interrupt service routine
#pragma vector=TIMERA0_VECTOR
__interrupt void Timer_A (void)
{
P5OUT ^= 0x02; // Toggle P5.1 using exclusive-OR
}