SPRAC77E January 2022 – February 2022 TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S
Simulations for the QEP implementation are provided in this section. For more information on CLB simulations, refer to the CLB Tool User's Guide https://www.ti.com/lit/pdf/SPRUIR8.
Figure 5-6 and Figure 5-7 show the simulation for movement in the forward direction. The match1 (MAXPOS) output is tied back to the reset (shown in orange) of the counter. When the counter reaches MAXPOS, it is reset to 0 on the next CLB clock.
Figure 5-8 and Figure 5-9 show the simulation for movement in the reverse direction. The match2 output is tied back to the event input of the counter. When the counter transitions to less than zero (0xFFFFFFFF), the load value (MAXPOS -1) is loaded into the counter.
Figure 5-10 shows the error detection signal is high anytime QEP-A/B transition at the same time.