This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Timer_A Capture Problem

Other Parts Discussed in Thread: MSP430FG4618

Hello everybody!
I want to take the time stamp of the button push and button release.I wrote the whole code but i couldn't do taking the value in TACCR0 as a numeric value the compiler gives only one error 
"Error[Pe020]: identifier "TACCRO" is undefined"
what should i do?
This is my code
#include "io430xG46x.h"
#include <intrinsics.h>
#include <stdint.h>
#define LCDMEMS 11 
uint8_t * const LCDMem=(uint8_t *)& LCDM3 ;
#define SEG_A 0x01
#define SEG_B 0x02
#define SEG_C 0x04
#define SEG_D 0x08
#define SEG_E 0x40
#define SEG_F 0x10
#define SEG_G 0x20
#define SEG_H 0x80
volatile unsigned int i;
void cizgi(void);
void main (void)
{
  WDTCTL=WDTPW|WDTHOLD;
  FLL_CTL0=XCAP14PF;
  P5OUT=0;
  P5SEL=0x1C;
  P5DIR=0xFF;
  
  for(i=0;i<LCDMEMS;++i)
  {
    LCDMem[i]=0;
    LCDACTL=LCDON+LCD4MUX+LCDFREQ_128;
    LCDAPCTL0=0x7E;
  }
  
  P1OUT=0;
  P1DIR=0xFC;
  P1SEL=BIT1;
  cizgi();
  
  TACCTL0=CM_3|CCIS_1|SCS|CAP|CCIE;
  TACTL=TASSEL_1|ID_0|MC_2|TACLR;
  
  for(;;)
  {
    __low_power_mode_3();
  }
}
#pragma vector=TIMERA0_VECTOR
__interrupt void TIMERA0_ISR(void)
{
  static uint16_t LastTime=0;
  DisplayUint(TACCRO-LastTime);
  LastTime=TACCRO;
}
 
void cizgi(void)
{
  LCDM9=0x00;
  LCDM8=SEG_D;
  LCDM7=SEG_D;
  LCDM6=SEG_D;
  LCDM5=SEG_D;
  LCDM4=SEG_D;
  LCDM3=SEG_D;
  LCDM2=SEG_D;
  LCDM1=0x00;
}
  
Thanks for your helps.
Tuna

**Attention** This is a public forum