
Contents UM0712
2/85 Doc ID 15783 Rev 1
Contents
1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.1 Performance line STM8S features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.2 Access line STM8S features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.3 ACIM software library V1.0 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.4 Development tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1.4.1 Toolchains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1.4.2 Programming tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.5 Reference documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2 Introduction to STM8S ACIM scalar control . . . . . . . . . . . . . . . . . . . . . 14
2.1 Introduction to ACIM theory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.2 ACIM steady state electrical circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.3 Electromagnetic torque characteristic curve . . . . . . . . . . . . . . . . . . . . . . 17
2.4 Speed closed loop control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.4.1 V/f control and slip regulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.4.2 Maximum torque per ampere (MTPA) control . . . . . . . . . . . . . . . . . . . . 22
2.5 Speed open loop control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2.5.1 Load compensation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2.6 Startup strategy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2.7 Three-phase PWM sine wave and third harmonic generation . . . . . . . . . 28
2.8 Bus voltage ripple cancellation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
3 Running the demonstration program . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3.1 ACIM user interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3.2 Getting started with the ACIM user interface . . . . . . . . . . . . . . . . . . . . . . 32
3.2.1 Welcome message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
3.2.2 Help menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
3.2.3 Main menu: Changing the target and measured rotor speed . . . . . . . . 33
3.3 Using the ACIM user interface sub-menus for motor control . . . . . . . . . . 34
3.3.1 ACIM user interface sub-menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
3.3.2 Speed regulator parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
3.3.3 Drive strategy parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
3.3.4 Startup parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36