/* ADC Oversampling mode. 
This function configures the ADC with normal mode and oversampling feature and converts the ADC input applied on positive input. Prints the ADC input voltage for both mode on serial console to recognize the improvement.  */
void adc_oversampling(void)
/* ADC Oversampling mode. 
This function configures the ADC with normal mode and oversampling feature and converts the ADC input applied on positive input. Prints the ADC input voltage for both mode on serial console to recognize the improvement.  */
void adc_oversampling(void)
{
	configure_adc();
	raw_result = adc_start_read_result();
	result = ((float)raw_result * (float)ADC_REFERENCE_INTVCC1_VALUE)/(float)ADC_12BIT_FULL_SCALE_VALUE;
	printf("\nADC Input Voltage before Oversampling = %fV", result);
	adc_disable(&adc_instance);
	configure_adc_sampling();
	raw_result = adc_start_read_result();
	result = ((float)raw_result * (float)ADC_REFERENCE_INTVCC1_VALUE)/(float)ADC_16BIT_FULL_SCALE_VALUE;
	printf("\nADC Input Voltage after Oversampling = %fV", result);
	adc_disable(&adc_instance);
}