How Can i generate Stream of Pulses(based on the speed at which my motor is spinning) which are to be quadrature in nature with Timers (Say Timer 0 & 1) with DSC 56F82748VLL. Also, Change the direction of Pulses based on the Direction of rotation. (This function is same as emulated encoder pulses. But to be generated from MCU) .
Hi, Sandeep,
I think you can use eFlexPWM module to generate the two signal with 90 degree shift, as the eFlexPWM has the function to generate the Phase Shifted PWMs.
I think you can use quadtimer to generate the two signal with 90 degree shift, when one timer is master, the other is slave. But it is easier to use eFlexPWM module.
Hope it can help you
B R
Xiangjun Rong
How to generate Quadrature output pulse using eflex pwm with DSC MC56F8247 controller using CodeWarrior v10.6.