The precision of the actuation and
feedback timing in the demo is crucial to the correct performance of the FOC loop
calculations and in turn the overall motor control performance. To achieve the goal,
this demo setup is as follow:
- 50 KHz PWM cycle time
- PWM resolution of greater
than 12 bits achieved due to EPWM peripheral clocking at 250 MHz
- 50 KHz / 4 ns =
5000, which equates to approximately 12.28 bits of
resolution
- 100 KHz FOC loop update
- 2x updates per PWM
cycle
- Allows for 10 µs from
trigger point until feedback can be captured, FOC loop close, and PWM
values updated in the shadow registers
- Achieved timing diagram
here:
- Precise triggering for both
EnDat2.2 and Sigma Delta feedback data
- A synchronization
technique between the PWM peripheral and the IEP Timer of ICSSG0 is used
in order to precisely place the triggers anywhere along the PWM
cycle
- EPWM SYNCO signal resets
the IEP Timer counter and CMP1 and CMP2 values are used to trigger the
start points for both EnDat and Sigma Delta
- Technique visualized
below and results shown in 'Benchmark results' section