Submitted by Joe on Wed, 03/31/2010 - 21:39
In my motor control prototype, I have a 28335 ePWM running at 20 KHz for my motor drive. I want to see how accurately I can determine motor torque by measuring the motor current. On one ADC input I have motor current and on another ADC input I have a transducer to measure torque. I want to sample the motor current and torque transducer in the middle of the PWM period to avoid measurement contamination from switching noise. In the ePWM block configuration, I can choose to have the ePWM trigger an ADC start of conversion under various conditions, and I believe the correct condition is to trigger SOCA under the condition CTR=PRD. The problem is, I’m not sure how to use VisSim to read the ADC once the conversion has been completed so that I can plot motor current (or a filtered version of motor current) and torque.