CCS/FinalCode/main.c
// Sleep Function
// Configures Timer A to run off ACLK, count in UP mode, places the CPU in LPM3 
// and enables the interrupt vector to jump to ISR upon timeout 
Sleep Function
Configures Timer A to run off ACLK, count in UP mode, places the CPU in LPM3
and enables the interrupt vector to jump to ISR upon timeout
Sleep Function Configures Timer A to run off ACLK count in UP mode places the CPU in LPM3 and enables the interrupt vector to jump to ISR upon timeout
void sleep(unsigned int time)
{
    TA0CCR0 = time;
    TA0CTL = TASSEL_1+MC_1+TACLR;
    TA0CCTL0 &= ~CCIFG;
    TA0CCTL0 |= CCIE; 
    __bis_SR_register(LPM3_bits+GIE);
    __no_operation();
}
void sleep ( unsigned int time ) { TA0CCR0 = time ; TA0CTL = TASSEL_1 + MC_1 + TACLR ; TA0CCTL0 &= ~ CCIFG ; TA0CCTL0 |= CCIE ; __bis_SR_register ( LPM3_bits + GIE ) ; __no_operation ( ) ; }
Sleep Function
Configures Timer A to run off ACLK, count in UP mode, places the CPU in LPM3
and enables the interrupt vector to jump to ISR upon timeout
Sleep Function Configures Timer A to run off ACLK count in UP mode places the CPU in LPM3 and enables the interrupt vector to jump to ISR upon timeout