
U S E R M A N U A L
Apr 2, 2015, S6E1A1_AN710-00002 3
Table of Contents
1. Introduction..................................................................................................................................... 5
1.1 Purpose 5
1.2 Definitions, Acronyms and Abbreviations............................................................................ 5
1.3 Document Overview............................................................................................................ 5
1.4 Reference Documents......................................................................................................... 5
2. System Hardware Environment...................................................................................................... 6
3. Development Environment............................................................................................................. 7
4. System Firmware Design ............................................................................................................... 8
4.1 FW Feature......................................................................................................................... 8
4.2 FW Structure....................................................................................................................... 8
4.3 Files Description................................................................................................................ 10
4.4 FW Control Flow................................................................................................................ 11
5. System Function........................................................................................................................... 12
5.1 Global Structure and Variable Definition ........................................................................... 12
5.1.1 Variables for Motor Running............................................................................. 12
5.1.2 Variables for FOC............................................................................................. 13
5.1.3 Variables for PID Control.................................................................................. 14
5.2 Function List...................................................................................................................... 15
6. Event Function.............................................................................................................................. 16
6.1 Function List...................................................................................................................... 16
7. Driver Function............................................................................................................................. 17
7.1 Function List...................................................................................................................... 17
8. Interrupt Function ......................................................................................................................... 18
8.1 Function List...................................................................................................................... 18
8.2 Interrupt Priority Setting..................................................................................................... 18
8.3 Interrupt Generation.......................................................................................................... 19
8.3.1 MFT.................................................................................................................. 19
8.3.2 Hall Capture ..................................................................................................... 19
8.3.3 DTTI ................................................................................................................. 20
9. Demo System............................................................................................................................... 21
9.1 Demo System Introduction................................................................................................ 21
9.1.1 Hardware Connection....................................................................................... 21
9.2 Motor Debug ..................................................................................................................... 22
9.2.1 FW Interface Configuration............................................................................... 23
9.2.2 Hall Check........................................................................................................ 28
9.2.3 Run Motor......................................................................................................... 30
9.2.4 Debug with DAC............................................................................................... 31
9.3 Troubleshooting ................................................................................................................ 31
9.3.1 Motor Start-up .................................................................................................. 31
9.3.2 Protection......................................................................................................... 32
9.3.3 Carrier Changeable On-line.............................................................................. 32
9.3.4 Hall Check........................................................................................................ 32
9.3.5 Power Consumer Higher.................................................................................. 32
10. Additional Information................................................................................................................... 34
Figures
Figure 4-1: Structure of FW........................................................................................................................ 9
Figure 4-2: Sub-files in Each Layer.......................................................................................................... 10
Figure 4-3: Diagram of the Control Flow ...................................................................................................11
Figure 5-1: Diagram of Live Watch........................................................................................................... 12