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

Launchpad not Working

$
0
0

I have a launchpad for the MSP430G2553

Launchpad is MSP430G2..........

The output is working properly but when I am giving the input to it from pin 1.3 which is connected to to switch S2 it is not accepting the input.

It is not responding to the input it is recieving from switch(when i press it)...........

Once in an workshop which I attained 3 months ago, it worked but now it is not working.

This is my program can any one please check it......

#include<msp430g2553.h>
unsigned int i,left;
void main(void)
{
        WDTCTL = WDTPW + WDTHOLD;
        P1DIR |= 0x41;
        while(1)
       {
              if(P1IN==0x08)
              P1OUT=0x40;
              else
              P1OUT=0x01;
       }
}

Pkease theck my program...... for the input Port 1.3 pin number 5.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



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