k y

Using ETC as input capture to measure pulse period between rising edges of measurement pulse.

Discussion created by k y on Sep 28, 2006
Latest reply on Oct 16, 2006 by Daniel Malik
how can I do it?I have made some process,but  it  can't go to the interrupt process.Such as:

#pragma LINK_INFO DERIVATIVE "SampleS12"
#pragma CODE_SEG DEFAULT
 
void TIM_Init(void)
{
   TIOS_IOS0 = 0;
 TFLG1 = 1;
 TIE_C0I =1;
 TCTL4_EDG0A = 1;
 TCTL4_EDG0B = 0;
 ICOVW_NOVW0 = 1;
 ICSYS_BUFEN = 1;
 ICSYS_LATQ  = 0;
 ICSYS_TFMOD = 1;
 TSCR1_TEN = 1;
}
#pragma CODE_SEG __NEAR_SEG NON_BANKED
/* Interrupt section for this module. Placement will be in NON_BANKED area.*/
interrupt 8 void TI0_Interrupt(void)
{
 
 TFLG1 = 1;          // Reset interrupt request flag

}
#pragma CODE_SEG DEFAULT

Outcomes