I have been using the MT4C123GH6PM in a few designs that work flawlessly but my latest design has a problem. The ADC init routine hangs. I have used it before so I think it is hardware related. I increased the capacitors at the output of the regulator (NCP51460) 4.7uF in parallel with 0.1uF, VDDC and VDDA are connected together and have the same capacitors as on the Tiva LaunchPad. If I reset the Tiva a few times, the problem goes away. I also commented out the peripheral reset but it hangs anyway.
Any suggestions?
//===============================================================
//** **
//** ADC config **
//** **
//**
//================================================================
void initADC(void){
//Reset the ADC peripherals
//SysCtlPeripheralReset(SYSCTL_PERIPH_ADC0);
//Wait "READY"
//while(!SysCtlPeripheralReady(SYSCTL_PERIPH_ADC0));
// set oversampling
//ADCHardwareOversampleConfigure(ADC0_BASE, 8);
// Initialize both ADC peripherals using sequencer 0 and processor trigger.
ADCSequenceConfigure(ADC0_BASE, 0, ADC_TRIGGER_PROCESSOR, 0);
ADCSequenceStepConfigure(ADC0_BASE, 0, 0, ADC_CTL_CH1);
ADCSequenceStepConfigure(ADC0_BASE, 0, 1, ADC_CTL_CH2);
ADCSequenceStepConfigure(ADC0_BASE, 0, 2, (ADC_CTL_END | ADC_CTL_TS));
ADCSequenceEnable(ADC0_BASE, 0);
}
//***************** end ADC config *******************