Part Number: TMS320F28027
Tool/software: Code Composer Studio
Dear C2000 picollo team,
I have one questions about F28027 ADC module, I initiate the ADC module as belows step by step:
1. single sample mode
2. config all ADCSOCxCTL.bit.CHSEL (x=0 to 15)
3. config all ADCSOCxCTL.bit.TRIGEL = 0 (x=0 to 15)
4. config all ADCSOCxCTL.bit.ACQPS = 6 (x=0 to 15)
5. AdcRegs.INTSEL1N2.bit.INT1E = 1
6. AdcRegs.INTSEL1N2.bit.INT1SEL = 15
After that, I try to start a convertion by set the register AdcRegs.ADCSOCFRC1.all = 0xFFFF, and I planed to read all RESULTx registers after check the ADCINTFLG.bit.ADCINTx=0 as below:
while(AdcRegs.ADCINTFLG.bit.ADCINT1 ==0) { }
AdcRegs.ADCINTFLGCLR.bit.ADCINT1 = 1;
Data0 = AdcResult.ADCRESULT0;
...........................
Data15 = AdcResult.ADCRESULT15;
My question is:
Under single step mode with xds100 emulator, I found everytime when I set AdcRegs.ADCSOCFRC1.all = 0xFFFF, the ADCINTFLG.bit.ADCINT1 is set to 1 immediately, I thought this register will be set after all 16 channels' convertion is completed, but the real condition is NOT. What wrong with me? Thanks a lot.