Hi all !,
I'm from Vietnam and I have used TMS320F2812 for my project.
I meet the problem when I try to read the result from ADC. It takes a long time for this conversion (about 3 micro sec when I measure with oscilloscope ) . It would be great if anyone can tell me how to reduce time execution in this case. With this time (3 micro sec), it can't be acceptable in my project.
I have attached herewith the part of my project code:
Udc = AdcRegs.ADCRESULT0 >>4;//read ADC bit
Is = AdcRegs.ADCRESULT1 >>4;
Udc1=_IQmpy(_IQ(Udc),_IQ(3.0));//Scale for Udc value
Udc11=_IQdiv(Udc1,_IQ(4095.0));
Is1=_IQmpy(_IQ(Is),_IQ(3.0));//Scale for Is value
Is11=_IQdiv(Is1,_IQ(4095.0));
Thanks very much!
Cuong.