Hi,
Customer has a point to highlight regarding Lori's comments given in email:
The encoder interfaces do require an interrupt from the CLB. The F28388D has 2 C28x subsystems and each of those has a CLA. Depending on their requirements, the communication with the encoder can be separated from the ADC conversions and PWM control.
- For example: the PWM can trigger the ADC start of conversion. The ADC end of conversion can start the CLA. The CLA has a fast response to the end of conversion and can be waiting for the trigger (i.e. no jitter). The CLA can then update the PWM appropriately. In parallel the C28x can be processing the communications packet received from the encoder.
Customer has as a target the single core variant, so F28388S. (So single core 1x C28x + 1x CLA + 1x CLB).
The concatenation of events reported by you is interesting, but here below customer try to graphically represent what they want to achieve with a time diagram:
First signal = counter of ePWM1 (symmetrical pwm with two complementary outputs, with dead times not represented in the graph but present)
Second and Third signal = outputs of the two channels A and B of the ePWM1.
Third signal = time correlation of the request customer wants to send in T-format.
Currently customer tried the example of the T-format of the Pm-library (with CLB) and implemented the ePWM1 with the above characteristics.
At this time customer would like to understand how to exploit CLA, CLB and the interconnection of events via SOC of peripherals to obtain synchronism between sending the T-format request and PWM.
Specifically, customers want to obtain the Delta T in the constant graph, so that the position information that will return to them from the T-format encoder always fixes the position at the same instant related to the PWM. (The T- encoders format physically read the position in the first edge of the position request packet that arrives from the master, therefore customer micro if I am not wrong).
I hope this time I have been clear on what customer needs.
Please let me know your thoughts.
