The following steps are required to
initialize and configure the PTO QepOnDiv API functions.
- Initialize and set up the
peripheral configuration by calling the pto_qeponclb_setupPeriph() function.
- Configure the maximum counter
position by passing the value as an argument into both the pto_qeponclb_setupPeriph() and pto_qeponclb_configMaxCounterPos() functions.
- Set up the GPIOs required for
configuration.
- epwmISR is used as
the primary interrupt service routine (ISR). To see how to update the PTO
configuration, see this ISR.
- Call pto_qeponclb_enableCLBQEP() to enable the CLBQEP for
decoding.