SPRAC77E January 2022 – February 2022 TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S
The QEP-A and QEP-B signal are generated by a finite state machine (FSM). The state diagrams are shown in Figure 4-8 and have the following characteristics:
Table 4-4 and Table 4-5 are the corresponding Karnaugh Maps. The resulting equations are determined by inspecting each "1" within the map or by using a Karnaugh Map solver. x is used to indicate states which are not valid. Note that there is no need to further simplify the equations; they can be entered into the CLB tool as shown. Use the OR operator to build up the full equation from the parts as shown in the simulation results (Figure 4-9).
| DIRECTION (e0) = 1
(Forward) Next State QCLK, QEP-B (e1, s1) |
DIRECTION (e0) = 0
(Reverse) Next State QCLK, QEP-B (e1, s1) |
||||||||||
| 00 | 01 | 11 | 10 | 00 | 01 | 11 | 10 | ||||
| Current
State s0, s1 (QEP-A, B) |
00 | 0 | 0 | x (2) | 1 (2) | Current
State s0, s1 (QEP-A, B) |
00 | 0 | 0 | 0 | x |
| 01 | 0 | 0 | x | 0 | 01 | 0 | 0 | 1 (3) | x (3) | ||
| 11 | 1 (1) | 1 (1) | 0 | x | 11 | 1 (1) | 1 (1) | x (3) | 1 (3) | ||
| 10 | 1 (1) | 1 (1) | 1(2) | x (2) | 10 | 1 (1) | 1 (1) | x | 0 | ||
| DIRECTION (e0) = 1
(Forward) Next State QCLK, QEP-A (e1, s0) |
DIRECTION (e0) = 0
(Reverse) Next State QCLK, QEP-A (e1, s0) |
||||||||||
| 00 | 01 | 11 | 10 | 00 | 01 | 11 | 10 | ||||
| Current
State s0, s1 (QEP-A, B) |
00 | 0 | 0 | 0 | x | Current
State s0, s1 (QEP-A, B) |
00 | 0 | 0 | x (3) | 1 (3) |
| 01 | 1 (1) | 1 (1) | x | 0 | 01 | 1 (1) | 1 (1) | 1 (3) | x (3) | ||
| 11 | 1 (1) | 1 (1) | x (2) | 1 (2) | 11 | 1 (1) | 1 (1) | 0 | x | ||
| 10 | 0 | 0 | 1 (2) | x (2) | 10 | 0 | 0 | x | 0 | ||
Figure 4-9 shows the SystemC simulation results.
Figure 4-9 Simulation QEP-A and QEP-B
Generation