SPRAD03 March   2022 AM2431 , AM2431 , AM2432 , AM2432 , AM2434 , AM2434 , AM6411 , AM6411 , AM6412 , AM6412 , AM6421 , AM6421 , AM6422 , AM6422 , AM6441 , AM6441 , AM6442 , AM6442

 

  1.   Trademarks
  2. System Overview
  3. Hardware Prerequisites
  4. Hardware Configuration
  5. HW Pinouts, Default Jumpers, and Connections
  6. Schematics
  7. Jumper Settings and Descriptions
  8. LEDs
  9. Software Architecture
  10. Actuation and Feedback Timing
  11. 10Benchmark Results
    1. 10.1 Motor Control R5F Processing Time
    2. 10.2 Trigger/Capture Point to R5F ISR Entry
  12. 11Detailed Demo User's Guide
    1. 11.1 Step 0. Getting the Software and Building
    2. 11.2 Step 1. Getting Started With the Hardware
    3. 11.3 Step 2. Configure ROQ437 EnDat2.2 Encoder for Faster EnDat 2.2 Recovery Time (only needs to be done once the first time you use the ROQ437 encoder)
    4. 11.4 Step 3. Open Loop Iq Control (BUILDLEVEL == OPEN_LOOP_IQ_ID)
    5. 11.5 Step 4. Closed Loop Iq/Id Control (BUILDLEVEL == CLOSED_LOOP_IQ_ID)
    6. 11.6 Step 5. Closed Loop Speed Control (BUILDLEVEL == CLOSED_LOOP_SPEED)
    7. 11.7 Step 6. Closed Loop Position Control (BUILDLEVEL == CLOSED_LOOP_POSITION)
  13. 12Build Using MCU+SDK 08.00.00.21 & CCS 10.3.1
  14. 13Summary
  15. 14Appendix A: Detailed Motor Control R5F Processing Time
  16. 15References

Actuation and Feedback Timing

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:
      GUID-20211108-SS0I-V43J-B3XV-XVNCD7X98HHD-low.png Figure 9-1 Timing Diagram
  • 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
      GUID-20211108-SS0I-BD9T-HWRN-D6ZPZBVGG6HT-low.png Figure 9-2 Synchronization Techniques
    • Technique visualized below and results shown in 'Benchmark results' section