SPRAC77E January 2022 – February 2022 TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S
The following resources are used inside the CLB tile to achieve the desired function detailed in Section 2.1.
Implementation is described in Table 2-1 and visualized in Figure 2-3.
Resource | Function | Notes |
---|---|---|
Inputs | ||
In0 | On/Off Control via GPREG | Enable CLB |
In1 | Rising Edge Detect | Via EPWM1A |
In2 | On/Off Control via GPREG | Run signal (start/stop of PTO) |
In3 | Not used | Not used |
In4 | On/Off Control via GPREG | Sets the PTO direction |
In5 | Not used | Not used |
In6 | Not used | Not used |
In7 | Not used | Not used |
Outputs | ||
Out0 | Not used | Not used |
Out1 | Not used | Not used |
Out2 | Not used | Not used |
Out3 | Not used | Not used |
Out4 | Transmit Enable | Via OUTPUT XBar; PTO pulse output |
Out5 | Transmit Enable | Via OUTPUT XBar; PTO direction output |
Out6 | Not used | Not used |
Out7 | Not used | Not used |
Logic Resources | ||
LUT0 | Input for Event0 in HLC | Edge detection on encoder input with either in1 or CNT1 match value. Triggers event in HLC to load new values into HLC registers |
LUT1 | Mode0 input for CNTs 1,2,3 | Logic to determine the selected modes for CNT1, CNT2, and CNT3. Starts all three counters. |
LUT2 | Not used | Not used |
FSM0 | Pulse width generation | This state machine together with CNT0 will generate a number of hi and low pulse widths. The output sets the reset value of CNT0. |
FSM1 | Active and Full Period generation | Sets the values for the active and full period based on match1 and match2 outputs of CNT1. Outputs number of pulses in active period duration and none in between the difference of the full and active periods |
FSM2 | PTO output direction generation | Generates the PTO output direction. The output direction is held until the end of the full period set by FSM1. |
CNT0 | Pulse width generation | Counter Match1 and Match2 values determine triggers for hi and low pulse widths. The match values are loaded to FSM0 inputs, e0 and e1. |
CNT1 | Active and Full Period Clock generation | Generates inputs needed for FSM1 and FSM2. Match1 determines trigger for active period. Match2 determines trigger for full period. Match events are used by FSM1 to generate active and full periods. Match2 is used as extra external input in FSM0 to determine how long to hold PTO output direction. |
CNT2 | Counter for full period | Match1 event used to trigger interrupt in HLC. Counter is reset when full period of signal is reached |
High Level Controller | ||
HLC | Event0 used to trigger taskEvent1 used to trigger interrupt | Event0 used to load new options for the PTO from C28 core into CLBEvent1 used to generate an interrupt based on match1 event of CNT2, which corresponds to the full period. New PTO options take effect after this event. |