/* After the comparator , the square waves can be got for each channel .  */
uint8_t GetChannelSensorWavesNum(uint8_t Ch)
/* After the comparator , the square waves can be got for each channel .  */
uint8_t GetChannelSensorWavesNum(uint8_t Ch)
{
    uint8_t Temp =0;
    if (Ch == CHANNEL_0)
    {
       Temp = (LPRCNT->CAL0 & 0x000000ff);
       return Temp;
    }
    else if (Ch == CHANNEL_1)
    {
       Temp =((LPRCNT->CAL0 & 0x00ff0000)>> 16);
       return Temp;
    }
    else
    {
       Temp = (LPRCNT->CAL1 & 0x000000ff);
       return Temp;
    }
}