Technical discussions about the TI C28x DSPs (including the C2810, C2811, C2812, F2801, F2806, F2808, F2810,, F2811, F2812, R2811 and R2812).
Hi, I am using a ezdsp 2812 for some control purpose. I want to have an ISR tied to underflow interrupt of Event manager A timer2. In the ISR i would like to sense a voltage calculate the difference with a fixed reference based on the difference would like generate PWM pulses. My question is : How to make sure I get the latest voltage information in the ADC. If I give a SOC in the beginning of the ISR, how do I make sure that the current conversion has happened for that very ISR and i access the result register which has the value of conversion that happened in the same ISR and have have calculated the difference? Is it possible by setting a small delay after SOC and access the result register after passing the delay period? or any flag check can be done to make sure conversion has ended and begin rest of the calculation only after the flag check? Please advice Many Thanks NG. ------------------------------------ OMAP35x EVM jump-starts low-power apps ------------------------------------ The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x You can post a message or access and search the archives of this group on DSPRelated.com: http://www.dsprelated.com/groups/c28x/1.php _____________________________________