Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

MSP4302274

$
0
0

Uses MSP4302274, project required to turn on both green and red LEDs, blinks for 5 seconds before turning off. I couldn't find where the problem causes the problem not to run but made to stop responding.

#include "msp430x22x4.h"

void main (void)
{
   WDTCTL = WDTPW + WDTHOLD;

   P1DIR |= 0x01;
   P1DIR |= 0x02;
   P1OUT = 0x04;
   P1REN |= 0x04;
   TACCTL0 = CCIE;
   TACCR0 = 65535;

   TACTL = TASSEL_2 + MC_3 + ID_3;

   __bis_SR_register(LPM0_bits + GIE);

 while (1)
 {
   volatile unsigned int i;

   i = 60000;

   do i--;

  while (i !=0);

}
#pragma vector=PORT1_VECTOR
__interrupt void Timer_A (void)
  {
     P1OUT ^= 0x04;
   }
  }
}

Error[Pe065]: expected a ";"
Warning[Pe012]: parsing restarts here after previous syntax error
Error[Pe169]: expected a declaration
Error while running C/C++ Compiler 

 


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>