Keil™, An ARM® Company

Application Notes

Application Note 189

Debugging Motor Control Applications Using Device Simulation

This Application Note shows debugging of a brushless Permanent Magnet Synchronous Motor (PMSM) application that is using a Infineon XC16x microcontroller. The complete application debugging is done using the µVision Debugger/Simulator. The Hardware / Software integration is done with the Keil ULINK USB-JTAG Adapter.

This Keil Application Note is using software that is provided by Infineon Technologies AG. These application software and the related Application Notes listed below are included with permission from Infineon.

  • Infineon Application Note AP16084: Field Oriented Control (FOC) of a PMSM using a Single DC Link Shunt describes the software implementation of the application.
  • Infineon Application Note AP16057: Space Vector Modulation explains the theory behind driving brushless Permanent Magnet Synchronous Motors.

The application software shows the usage of several sophisticated XC16x peripherals such as:

  • CAPCOM6 Compare/Capture Unit that generates the required pulses for the brushless motor.
  • Analog/Digital Converter used to measure the motor current.
  • Timer/Counter that processes the input of the Incremental Encoder.

Application Note

APNT_189.ZIP (112K)
Monday, October 10, 2005

Estimated File Download Time:
< 29 Seconds: 56Kb Modem
< 12 Seconds: 128Kb ISDN
< 10 Seconds: T1/Broadband

Example Code

APNTEX_189.ZIP (2,124K)
Wednesday, January 05, 2005

Estimated File Download Time:
< 10 Minutes: 56Kb Modem
< 4 Minutes: 128Kb ISDN
< 20 Seconds: T1/Broadband