Tool/software: Code Composer Studio
Hello Team TI,
I want to understand the work of Delay(1000) in following lines,
void ConfigureADC(void)
{
EALLOW;
//write configurations
AdcaRegs.ADCCTL2.bit.PRESCALE = 6; //set ADCCLK divider to /6
AdcSetMode(ADC_ADCA, ADC_RESOLUTION_12BIT, ADC_SIGNALMODE_SINGLE);
AdcaRegs.ADCCTL1.bit.INTPULSEPOS = 1; //Set pulse positions to late
AdcaRegs.ADCCTL1.bit.ADCPWDNZ = 1; //power up the ADC
DELAY_US(1000); //delay for 1ms to allow ADC time to power up
EDIS;
}