Hi ,
Thank you for the reply .
Could you tel me , then why we are not loading the command settings directly in to the ADCCMD_n register in the following code .
In the following sample code , i couldn't see any declaration using ADCCMD register but array data is moved in to the ADC0CBP_0 , ADC0CBP_1 , ADC0CBP_2 registers respectively . Why ?
volatile unsigned char adc0_cmdlist[1][4] = {0xC0,0xD0,0xA0,0x00};
....................................
void ADC_init(void)
{
ADC0CBP_0 = (unsigned char)(((long)adc0_cmdlist) >> 16);
ADC0CBP_1 = (unsigned char)(((long)adc0_cmdlist) >> 8);
ADC0CBP_2 = (unsigned char)((long)adc0_cmdlist);
.....................................
}