4
Table of Contents:
1. Introduction .............................................................................................................................6
2. Terminology and abbreviations. ............................................................................................8
3. Brushless DC motors. ............................................................................................................10
3.1. Overview. ........................................................................................................................10
3.2. Description. ....................................................................................................................10
3.3. Hall sensor. .....................................................................................................................14
3.4. Incremental encoders. ...................................................................................................15
3.5. General work of brushless motor..................................................................................17
3.6. Putting everything together. .........................................................................................19
4. H8S/2638 microcontroller....................................................................................................21
4.1. Overview. ........................................................................................................................21
4.2. PWM description. ...........................................................................................................23
4.3. Interrupts description. ..................................................................................................26
5. PXMC library. .........................................................................................................................30
5.1. Introduction....................................................................................................................30
5.2. Preparation of the programming environment. ..........................................................32
5.3. Overview. ........................................................................................................................33
5.3.1. General overview of files. .......................................................................................33
5.3.2. General work of PXMC. ...........................................................................................35
5.3.3. PXMC.H ....................................................................................................................35
5.3.4. PXMC_BASE.H ..........................................................................................................44
5.3.5. PXMC_CON_PID.C .....................................................................................................44
5.3.6. PXMC_DEB.C ............................................................................................................45
5.3.7. PXMC_GEN_INFO.H ..................................................................................................46
5.3.8. PXMC_GEN_SPDTRP.C .............................................................................................46
5.3.9. PXMC_HH.C ..............................................................................................................47
5.3.10. PXMC_HH_BASIC.C ...............................................................................................48
5.3.11. PXMC_INP_COMMON.H ........................................................................................48
5.3.12. PXMC_INTERNAL.H..............................................................................................48
5.3.13. PXMC_PTABLE.C ..................................................................................................49
5.4. How to start work with the PXMC. ................................................................................51
6. Adding Board Support Package (BSP) for BLDC on H8S/2638. ..........................................53
6.1. Introduction....................................................................................................................53
6.2. Subdirectories structure changes. ................................................................................53
6.3. Changes in PXMC original code. ....................................................................................54
6.4. Work with hi_cpu2 board. .............................................................................................55
6.5. Work with Eurobot.........................................................................................................59
6.6. Application for “index marking” and hall sensors table detection. ............................60
Comentarios a estos manuales