Submitted by Mala Gowda on Sat, 04/13/2013 - 20:12
In your DRV8312 sensorless FOC PMSM example it looks like PWM period=3000, ADCCLK=10MHZ and ADC is triggered at every 12 sample clock and motor algorithm is controlled by ADCINT1 at EOC9. I don’t get on what basis ADCCLK, sample clock and EOC has to be considered. How are they related. In our algorithm, Timer Period=2000, ADC CLK=80MHz, sample CLK=7 clock cycles and Controller loop is interrupted based on TIMER0. Is this right? A1,A5 are ADC channels where Left Motor currents are read and B1 and B5 are for right motor current calculation. If I have make left motor drive part of ADC interrupt handler, I consider ADCINT1 but at what EOC? And for right motor drive what ADC interrupt handler and EOC has to be considered.