
For Renesas Flexible Motor Control Series
R01AN6840EJ0100 Rev.1.00 Page 2 of 73
May 23, 2023
Sensorless vector control for permanent magnetic
synchronous motor - 1shunt current detection
Contents
1. Overview .................................................................................................................................4
2. Development environment.......................................................................................................4
2.1 Test environments ................................................................................................................................... 4
2.2 Hardware configuration ........................................................................................................................... 5
2.2.1 Hardware configuration diagram ........................................................................................................... 5
2.2.2 Hardware modification details ............................................................................................................... 6
2.2.3 Board User interface ............................................................................................................................. 7
2.2.4 Peripheral functions............................................................................................................................... 8
2.3 Software configuration........................................................................................................................... 28
2.3.1 Software file configuration ................................................................................................................... 28
2.3.2 Module configuration ........................................................................................................................... 30
2.4 Software specifications.......................................................................................................................... 31
2.5 Interrupt Priority ..................................................................................................................................... 32
3. Descriptions of the control program .......................................................................................33
3.1 Contents of control ................................................................................................................................ 33
3.1.1 Motor start/stop.................................................................................................................................... 33
3.1.2 A/D Converter...................................................................................................................................... 33
3.1.3 Modulation (current control module).................................................................................................... 34
3.1.4 State transition..................................................................................................................................... 35
3.1.5 Start-up method................................................................................................................................... 36
3.1.6 System protection function .................................................................................................................. 37
3.1.7 The method to measure phase currents with an 1shunt resistance ................................................... 38
3.1.8 AD triggers........................................................................................................................................... 41
3.2 Function specifications of sensorless vector control software .............................................................. 42
3.3 Contents of control ................................................................................................................................ 49
3.3.1 Configuration Options.......................................................................................................................... 49
3.3.2 Configuration Options for included modules ....................................................................................... 49
3.4 Control flowcharts.................................................................................................................................. 55
3.4.1 Main process ....................................................................................................................................... 55
3.4.2 Current Control Period Interrupt (Carrier synchronized Interrupt) Process......................................... 56
3.4.3 Speed Control Period Interrupt Process ............................................................................................. 57
3.4.4 Over Current Detection Interrupt Process ........................................................................................... 58
4. Evaluation environment explanation ......................................................................................59
4.1 Importing the Demo Project................................................................................................................... 59
4.2 Building and Debugging ........................................................................................................................ 60
4.3 Motor Demonstration Project Overview................................................................................................. 61
4.3.1 Quick Start........................................................................................................................................... 61
4.4 Motor Control Development Support Tool ‘Renesas Motor Workbench’ .............................................. 62