SPRAC77E January 2022 – February 2022 TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S
The following steps are required to initialize and configure the PTO Abs2Qep API functions.
pto_abs2qep_setupPeriph()
. Note at the end of this function, a
call is made to setup the CLB with position 0.
pto_abs2qep_translatePosition(0);
pto_abs2qep_runPulseGen(PTO_ABS2QEP_CLOCKWISE_PTO);
pto_EPWM3ISR)
: pto_abs2qep_runPulseGen(ptoDirection)
AbsolutePositionNext = <application dependent
function>()
ptoDirection =
pto_abs2qep_translatePosition(absolutePositionNext)
This
translation will be run the next time the ISR is run.