/* After seveval rounds of scanning , it is necessary to take the average .  */
void SetScanAverageValue(uint8_t N)
/* After seveval rounds of scanning , it is necessary to take the average .  */
void SetScanAverageValue(uint8_t N)
{
    uint32_t Temp = 0;
    if (N <= 3)
    {
       Temp = LPRCNT->CTRL;
       Temp &= (~LPRCNT_CTRL_AVGSEL);
       Temp |= (uint32_t)(N << 18);
       LPRCNT->CTRL = Temp;
    }
}