AN1905 ST Microelectronics, Inc., AN1905 Datasheet - Page 14
![no-image](/images/no-image-200.jpg)
AN1905
Manufacturer Part Number
AN1905
Description
St7mc Three-phase BLDC Motor Control Software Library
Manufacturer
ST Microelectronics, Inc.
Datasheet
1.AN1905.pdf
(77 pages)
- Current page: 14 of 77
- Download datasheet (2Mb)
ST7MC THREE-PHASE BLDC MOTOR CONTROL SOFTWARE LIBRARY
2.3 "VERSION.H" FILE
The purpose of this file is to declare the compiler options which will be used throughout the en-
tire library compilation process.
– Define the PMDC driving mode: voltage/current, open/closed loop
– In sensorless mode, 3 more options are added for the demagnetization type: hardware, hard-
Special care has to be taken for the demagnetization type, since the value range is 1, 2 and 3,
corresponding respectively to hardware, hardware with software backup, software demagnet-
ization type (HW, HSW, SW).
Other compiler options can be disabled/enabled by writing 0 or 1 in front of each declaration (0
for disable, 1 for enable).
ternate hard soft demagnetization in sensorless mode.
Figure 4. Settings for current/closed loop/alternate hard soft demagnetization
(sensorless)
After choosing the desired compiler options, the whole library has to be rebuilt. To launch the
compilation, click on the ’rebuild all’ icon.
14/77
.....
/* Demagnetization type parameters */
#define HW
#define HSW
#define SW
/* Driving mode parameters */
#define CURRENT_MODE
#define VOLTAGE_MODE
/* Regulation type parameters */
#define OPEN_LOOP
#define CLOSED_LOOP
....
/******************************************************************************/
/* Option settings used throughout the compilation process */
#define SENSOR_TYPE
#define DEMAG_TYPE
#define DRIVING_MODE
#define FEEDBACK_TYPE
ware with software backup, software.
1
2
3
0
1
0
1
0
2
1
1
Figure 4
// 1 -> Hard demag only
// 2 -> Hard with soft backup
// 3 -> Soft Demag only
// 0 -> Current mode
// 1 -> Voltage mode
// 0 -> Open loop
// 1 -> Closed loop
// no use in sensorless mode
// no use in sensor mode
gives an example when setting the current/closed loop/al-
Related parts for AN1905
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![AN177](/images/no-image3.png)
Part Number:
Description:
An Overview og the Phase Locked Loop
Manufacturer:
Philips
Datasheet:
![AN1268](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
AN OVERVIEW OF THE LPC FLASH INTERFACE
Manufacturer:
STMicroelectronics
![AN1315](/images/no-image3.png)
Part Number:
Description:
An Evaluation System Interfacing the MPX2000 Series Pressure Sensors to a Microprocessor
Manufacturer:
Motorola / Freescale Semiconductor
![AN1998](/images/no-image3.png)
Part Number:
Description:
An FM-IF system for DECT and other high speed GFSK applications
Manufacturer:
Philips Semiconductors / NXP Semiconductors
![AN2124](/images/no-image3.png)
Part Number:
Description:
An 8 x 8 Discrete Cosine Transform on the StarCore SC140/SC1400 Cores
Manufacturer:
Freescale Semiconductor / Motorola
![AN2428](/images/no-image3.png)
Part Number:
Description:
An Overview of the HCS12 ATD Module
Manufacturer:
Freescale Semiconductor / Motorola
![AN2708](/images/no-image3.png)
Part Number:
Description:
An Introduction to the External Bus Interface on the HCS12X
Manufacturer:
Freescale Semiconductor / Motorola
![AN2783](/images/no-image3.png)
Part Number:
Description:
An RF Data Link Using Tango3 and Romeo2 RF Modules
Manufacturer:
Freescale Semiconductor / Motorola
![STP22NE10L](/images/no-image3.png)
Part Number:
Description:
N-channel 55V - 0.07 Ohm - 22A StripFET Power MOSFET
Manufacturer:
ST Microelectronics, Inc.
Datasheet:
![STP32N06L](/images/no-image3.png)
Part Number:
Description:
Old PRODUCT: Not Suitable For Design-in
Manufacturer:
ST Microelectronics, Inc.
Datasheet:
![2N4014](/images/no-image3.png)
Part Number:
Description:
High-voltage, High Current Switch
Manufacturer:
ST Microelectronics, Inc.
Datasheet:
![L6000](/images/no-image3.png)
Part Number:
Description:
Single Chip Read & Write Channel
Manufacturer:
ST Microelectronics, Inc.
Datasheet:
![BTA10-400GP](/images/no-image3.png)
Part Number:
Description:
10A Triacs
Manufacturer:
ST Microelectronics, Inc.
Datasheet:
![BTA20-600BW](/images/no-image3.png)
Part Number:
Description:
20A Triacs
Manufacturer:
ST Microelectronics, Inc.
Datasheet:
![BTA41-700B](/images/no-image3.png)
Part Number:
Description:
-
Manufacturer:
ST Microelectronics, Inc.
Datasheet: