Dear Sir/madam,
I bought a EVM430-FR6989 and would like to implement the Water Meter Reference Design for three LC Sensors, Using Extended Scan Interface (ESI)
i download the package and run , however i encounter the following problem:
1) the demo didnt work, the counter is always 0 whatever i try to locate my motor board for what distacnce. Any idea?
2) i try to use ccs to reload the sample program , however the result is the same.
Any idea?
3) i try to debug the program , setting the breakpoint and seems the program does run , however it never fall into the case 0x0c
__interrupt void ISR_ESCAN_IF(void)
{
switch (ESIIV)
case 0x02: if (ESIINT1&ESIIE1)
{ ESIINT2 &= ~ESIIFG1; // clear the ESISTOP flag
if(ReCal_Flag&BIT6)
{TA0CTL |= TACLR; // Reset Timer to prevent abnormal time out.
TA0CCTL0 &= ~CCIFG; }
_low_power_mode_off_on_exit(); // exit low power mode;
}
break;
case 0x04: break;
case 0x06: break;
case 0x08: break;
case 0x0A: break;
{case 0x0C: if(ESIINT1&ESIIE5)
{ ESIINT2 &= ~ESIIFG5; // clear the Q6 flag
if(ReCal_Flag&BIT6)
{TA0CTL |= TACLR; // Reset Timer to prevent abnormal time out.
TA0CCTL0 &= ~CCIFG; }
if(ReCal_Flag&BIT7)
{ ReCal_Flag |= BIT6; } // to do runtime calibration with AFE2
if(Status_flag&BIT3) // Check for completion of Calibration of DAC
{ // If yes, LCD is to display the rotation number
rotation_counter = ESICNT1; // for every complete rotation, there are 6 states change and so add +1 six times
if (rotation_counter < 0)
{rotation_counter = -1*rotation_counter /6;}
else
{rotation_counter = rotation_counter / 6;}
lcd_display_num(rotation_counter,0);
}
_low_power_mode_off_on_exit(); // exit low power mode;
thanks
jeff