sir im doing capture interrupt program but im not able to take forward it due to some problems
and the program goes like this
#include "msp430x54xA.h"
int a;
int main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop WDT
P1DIR |= 0x03; // P1.0 output
P8DIR |= 0x00;
TA1CCTL0 = CCIE + CM_1+ CAP + CCIS1 ; // CCR0 interrupt enabled
// TA1CCTL0 ^= CCIS0;
//TA1R=0;
P1OUT=0x00;
TA1CTL = TASSEL_2 + MC_2 +TACLR; // SMCLK, contmode, clear TAR
// while(1)
// {
//if(P8IN == 0x00)
// {
// P1OUT ^= 0x01; // Toggle P1.0
// }
// }
__bis_SR_register(GIE); // Enter LPM0, enable interrupts
__no_operation(); // For debugger
}
// Timer A0 interrupt service routine
#pragma vector=TIMER1_A0_VECTOR
__interrupt void TIMER1_A0_ISR(void)
{
P1OUT ^= 0x01; // Toggle P1.0
a=TA1CCR0;
}
i want to capture the timer value when the pin8.5 goes high (rising edge) but when i am giving 3.3 volts externally to pin8.5 its not entering the interrupt
can u please give the appropriate solution so that i can proceed further