/* Control the ADC module to do a conversion. Used as a start-convert event which is controlled by software.  */
void ADC_SWTrigCmd(u32 NewState)
/* Control the ADC module to do a conversion. Used as a start-convert event which is controlled by software.  */
void ADC_SWTrigCmd(u32 NewState)
{
	ADC_TypeDef	*adc = ADC;
	u8 div = adc->ADC_CLK_DIV;
	u8 sync_time[4] = {12, 16, 32, 64};
	if(NewState != DISABLE)
		adc->ADC_SW_TRIG = BIT_ADC_SW_TRIG;
	else
		adc->ADC_SW_TRIG = 0;
	DelayUs(sync_time[div]);
}