Hemanth kumar

Help required regarding writing the drivers for ADC on MCF5441x processor

Discussion created by Hemanth kumar on Aug 22, 2012
Latest reply on Aug 26, 2012 by Mark Butcher

Hello all,

I am working on MCF5441x processor and configuring the ADC channels to read the Battery level of the device.

The problem i am facing is the START0 bit of the ADC_CR1 register is not at all getting set to start the conversion. the steps i used is:

 

    MCF_ADC_CR1 |= MCF_ADC_CR1_STOP0;

    MCF_ADC_CR1 &= ~MCF_ADC_CR1_STOP0;
    MCF_ADC_CR1 |= MCF_ADC_CR1_START0;


Even i tried by removing the above two lines, since at reset the scan will b in stop mode. As per the reference manual it says there should be stable power mode, i have made only the ADC1(since i am using only channel 0-3) to power up by:

 

    MCF_ADC_PWR &= ~(MCF_ADC_PWR_PD0);
    
    while(MCF_ADC_PWR & MCF_ADC_PWR_PSTS0);
   
Any help regarding this will be appreciated, Thank you in advance:smileyhappy: 

Outcomes