Jump to content
43oh

eda

Members
  • Content Count

    3
  • Joined

  • Last visited

Posts posted by eda

  1. thank you a lot :D 

     

    what you said were usefull . I'm new in programing and i don't know many things. I would like to ask something else i run the program and everything ok but i can't see the result in my MSP430 :(

    What can i do for that? 

     

    these is  my code : 

     

     

    #include <msp430g2553.h>
    #ifndef TIMER0_A1_VECTOR
    #define TIMER0_A1_VECTOR TIMERA1_VECTOR
    #define TIMER0_A0_VECTOR TIMERA0_VECTOR
    #endif
     
    int main(void)
    {
     
     
    WDTCTL = WDTPW + WDTHOLD; 
     
    P1DIR = 0x40; 
    P1OUT = 0; 
    BCSCTL3 |= LFXT1S_2; 
    IFG1 &= ~OFIFG;  
     
    __bis_SR_register(SCG1 + SCG0);
     
    BCSCTL2 |= SELM_3 + DIVM_3; 
     
    while(1)
    {
    P1OUT = 0x40; // LED on
    __delay_cycles(100);
    P1OUT = 0; // LED off
    __delay_cycles(5000);
    }
         return 0;}
×
×
  • Create New...