/* configure the max cycle number of a charge-transfer sequence  */
void tsi_max_number_config(uint32_t max_number)
/* configure the max cycle number of a charge-transfer sequence  */
void tsi_max_number_config(uint32_t max_number)
{
    if(RESET == (TSI_CTL & TSI_CTL_TSIS)){
        uint32_t maxnum;
        maxnum = TSI_CTL;
        maxnum &= ~TSI_CTL_MCN;
        maxnum |= max_number;
        TSI_CTL = maxnum;
    }
}