STMicroelectronics EVSPIN32F02Q1S1 User Manual
STMicroelectronics EVSPIN32F02Q1S1 is a three-phase inverter based on the STSPIN32F0251 controller, which embeds a three-phase 250 V gate driver and a Cortex®-M0 STM32 MCU. The power stage features STD17NF25 MOS but can be populated with any IGBT or Power MOSFET in DPAK or powerFLAT 6x5 HV package. The board has a single-shunt sensing topology and both sensored/sensorless FOC and six-step control algorithms can be implemented. This allows driving permanent magnet synchronous motors (PMSMs) and brushless DC (BLDC) motors.
विज्ञापन
विज्ञापन
UM2836
User manual
EVSPIN32F02Q1S1: 3-phase inverter based on STSPIN32F0251
Introduction
The EVSPIN32F02Q1S1 board is a 3-phase complete inverter based on the STSPIN32F0251Q controller, which embeds a
3 ‑ phase 250 V gate driver and a Cortex ® ‑ M0 STM32 MCU. The power stage features STD17NF25 MOS, but can be populated with any IGBT or Power MOSFET in DPAK or powerFLAT 6x5 HV package. The board has a single-shunt sensing topology, and both sensored/sensorless FOC and 6-step control algorithms can be implemented. This allows driving permanent magnet synchronous motors (PMSMs) and brushless DC (BLDC) motors.
It provides an easy-to-use solution for the evaluation of the device in different applications such as battery operated tools, industrial pumps, fans and home appliances.
The evaluation board is compatible with a wide range of input voltage and includes a power supply stage with the
VIPER013BLS in buck configuration to generate +15 V and +3.3 V supply voltages required by the application.
Debug and configuration of FW can be performed with standard STM32 tools through the detachable ST-LINK debugger. SWD and UART TX RX connectors are also available.
Figure 1. EVSPIN32F02Q1S1 - Evaluation board
UM2836 - Rev 1 - April 2021
For further information contact your local STMicroelectronics sales office.
www.st.com
1
1.1
Main features
•
•
•
•
•
•
•
•
•
The EVSPIN32F02Q1S1 has the following features:
•
•
•
Input voltage from 15 V
AC
(20 V
DC
) to 120 V
AC
High voltage rail up to 250 V
STD17NF25 MOSFET power stage featuring:
– V
DS
= 250 V
– R
DS(on) max.
= 0.165 Ω
Dual footprint for IGBT/MOSFET packages
– DPAK
– PowerFlat 6x5
Single-shunt current sensing, suitable for:
(170 V
DC)
– Sensored or sensorless 6-step algorithm
– Sensored or sensorless single-shunt vector (FOC) algorithm
Digital Hall sensors and encoder input
Smart shutdown Overcurrent protection
Bus voltage sensing
15 V VCC and 3.3 V VDD supplies
Embedded ST-LINK/V2-1
Easy user interface with buttons and trimmer
RoHS compliant
•
•
•
•
Target application
Battery operated and 110 Vac supplied power and garden tools
Industrial fans and pumps
Home appliances
Industrial and home automation
UM2836
Main features
UM2836 - Rev 1 page 2/19
2 Safety and operating instructions
UM2836
Safety and operating instructions
2.1
General terms
Warning:
During assembly, testing, and operation, the evaluation board poses several inherent hazards, including bare wires, moving or rotating parts and hot surfaces.
Danger:
There is danger of serious personal injury, property damage or death due to electrical shock and burn hazards if the kit or components are improperly used or installed incorrectly.
Attention: The kit is not electrically isolated from the high-voltage supply AC/DC input. The evaluation board is directly linked to the mains voltage. No insulation is ensured between the accessible parts and the high voltage. All measuring equipment must be isolated from the mains before powering the board. When using an oscilloscope with the demo, it must be isolated from the AC line. This prevents shock from occurring as a result of touching any single point in the circuit, but does NOT prevent shock when touching two or more points in the circuit.
Important:
All operations involving transportation, installation and use, and maintenance must be performed by skilled technical personnel able to understand and implement national accident prevention regulations. For the purposes of these basic safety instructions, “skilled technical personnel” are suitably qualified people who are familiar with the installation, use and maintenance of power electronic systems.
2.2
2.3
2.4
Intended use of evaluation board
The evaluation board is designed for demonstration purposes only, and must not be used for electrical installations or machinery. Technical data and information concerning the power supply conditions are detailed in the documentation and should be strictly observed.
•
•
•
•
Installing the evaluation board
The installation and cooling of the evaluation board must be in accordance with the specifications and target application.
The motor drive converters must be protected against excessive strain. In particular, components should not be bent or isolating distances altered during transportation or handling.
No contact must be made with other electronic components and contacts.
The board contains electrostatically-sensitive components that are prone to damage if used incorrectly. Do not mechanically damage or destroy the electrical components (potential health risks).
Operating the evaluation board
To operate properly the board, follow these safety rules:
UM2836 - Rev 1 page 3/19
UM2836 - Rev 1
UM2836
Operating the evaluation board
1.
Work Area Safety:
– The work area must be clean and tidy.
– Do not work alone when boards are energized.
– Protect against inadvertent access to the area where the board is energized using suitable barriers and signs.
– A system architecture that supplies power to the evaluation board must be equipped with additional control and protective devices in accordance with the applicable safety requirements (i.e., compliance with technical equipment and accident prevention rules).
– Use non-conductive and stable work surface.
– Use adequately insulated clamps and wires to attach measurement probes and instruments.
2.
Electrical Safety:
– Remove power supply from the board and electrical loads before performing any electrical measurement.
– Proceed with the arrangement of measurement setup, wiring or configuration paying attention to high voltage sections.
– Once the setup is complete, energize the board.
Danger:
Do not touch the evaluation board when it is energized or immediately after it has been disconnected from the voltage supply as several parts and power terminals containing potentially energized capacitors need time to discharge.
Do not touch the boards after disconnection from the voltage supply as several parts like heat sinks and transformers may still be very hot.
The kit is not electrically isolated from the AC/DC input. The USB interface of the board does not insulate host computer from high voltage. When the board is supplied at a voltage outside the ELV range, a proper insulation method such as a USB isolator must be used to operate the board.
3.
Personal Safety:
– Always wear suitable personal protective equipment such as, for example, insulating gloves and safety glasses.
– Take adequate precautions and install the board in such a way to prevent accidental touch. Use protective shields such as, for example, insulating box with interlocks if necessary.
page 4/19
3
UM2836
Hardware and software requirements
Hardware and software requirements
Using the EVSPIN32F02Q1S1 evaluation board requires the following software and hardware:
•
•
•
•
•
A windows PC (XP, Vista, Win 7 , Win 8, Win 10 ) to install the software package
A mini-B USB cable to connect the EVSPIN32F0251 board to the PC
A six step firmware or the STM32 PMSM FOC Software Development Kit (available on
A 3-phase brushless PMSM DC motor with compatible voltage and current ratings
AC Mains power supply or external DC power supply www.st.com
)
Warning:
The kit is not electrically isolated from the AC/DC input. The USB interface of the board does not insulate host computer from high voltage. When the board is supplied at a voltage outside the ELV range, a proper insulation method such as a USB isolator must be used to operate the board.
UM2836 - Rev 1 page 5/19
4 Getting started
The maximum ratings of the board are the following:
•
•
Power stage supply voltage from 15 V
Overcurrent protection set to 16 A peak
.
AC
(20 V
DC
) to 120 V
AC
(170 V
DC
)
•
•
To start your project with the board:
• Check the jumper position according to the target configuration (see
).
Connect the motor on the connector J2 taking care of the motor phases’ sequence.
Supply the board through AC Mains connector J4. The LD4 LED (green) turns on.
Develop your application using code examples provided or the STM32 FOC MC Library.
Please refer to the respective user manual for details.
UM2836
Getting started
UM2836 - Rev 1 page 6/19
5
UM2836
Hardware description and configuration
Hardware description and configuration
shows the position of the main circuitry blocks of the board.
Figure 2. EVSPIN32F02Q1S1 - Board function description
detachable
ST-LINK debugger
FEEDBACK
NETWORK
Power stage
STSPIN32F0251Q
Power supply
shows the position of the connectors and jumpers of the board.
J5 Usb connector
Figure 3. EVSPIN32F02Q1S1 - main components and connector positions
JP10 Hall sensor supply selector
J3 Hall Encoder connector
JP6,JP7,JP8
PA0, PA1, PA2 selector
JP2 Hall Power selector
J2 Motor phases connector
J4 AC mains connector
J9 SWD connector
J7 STLINK connector
J8 STLINK
Reset
JP1 Boot selector
JP3 VDD selector
J6 UART connector
J1 SPI/GPIO connector
JP4 VCC selector
UM2836 - Rev 1 page 7/19
UM2836 - Rev 1
UM2836
Hardware description and configuration
Jumper
JP1
JP2
JP3
JP4
JP6
JP7
JP8
JP9
JP10
Table 1. Hardware setting jumpers
Permitted configurations
Selection of Boot from Flash (2-3 closed) or System/SRAM (1-2 closed)
Selection Hall encoder power supply to VDD
Selection VDD connected to power supply (1-2 closed) or ST-LINK (2-3 closed)
Selection VCC connected to power supply (1-2 closed) or external supply (VCC=pin 2 GND=pin 3, jumper removed)
Selection PA0 connected to BEMF1 (2-4 closed) , Hall 1 (2-3 closed) or comparator output 1
(1-2 closed)
Selection PA1 connected to BEMF2 (2-4 closed) , Hall 2 (2-3 closed) or comparator output 2
(1-2 closed)
Selection PA2 connected to BEMF3 (2-4 closed) , Hall 3 (2-3 closed) or comparator output 3
(1-2 closed)
Selection Encoder sensor power to VDD (1-2 closed) or VCC (2-3 closed)
Selection 5 V supply for Encoder sensor power
Default Condition
2-3 closed
Open
1-2 closed
1-2 closed
2-4 closed
2-4 closed
2-4 closed
1-2 closed
Open
Name
J1
J2
J3
J4
J5
J6
J7
J8
J9
4
1-2
1
2
3
4
1
2
3
5
1 – 2
-
1
2
3
1
2
3
4
Pin
1-2-3-4
1
2
Table 2. Connectors and test points description
Label
J1
OUT3
OUT2
OUT1
A+/H1
B+/H2
Z+/H3
VDD
GND
J4 - AC MAINS ~
J5
RX
TX
Description
SPI interface or customizable GPIOs
3-phase BLDC motor phases connections
Hall/encoder sensors connector
Hall sensors/encoder supply
AC mains power supply
USB input ST-LINK
UART
J7
ST-LINK power supply
SWCLK of ST-LINK
GND
SWDIO of ST-LINK
ST-LINK reset J8
VDD
SWD CLK
GND
SWD IO
Auxiliary connector for SWD mode debugging/programming page 8/19
UM2836 - Rev 1
UM2836
Hardware description and configuration
TP15
TP16
TP17
TP18
TP19
TP10
TP11
TP12
TP13
TP14
TP20
TP21
TP22
TP23
TP24
TP25
Name
TP1
TP2
TP3
TP4
TP5
TP6
TP7
TP8
Pin
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Table 3. Test points description
Label
TP1
TP2
TP3
TP4
TP5
TP6
TP7
TP8
RES1
RES2
RES3
OUT 3
PB8 GPIO
PA4 GPIO
Description
OUT 2
GND – signal ground
TP10 PA3 GPIO (SPEED)
TP11 PA7 GPIO
TP12 OD – SmartSD timing Open Drain output, unlatch and restart input
TP13 CIN – comparator positive input
TP14 OUT 1
TP15 3V3 ST-LINK USB voltage
TP16 PGND – power ground
TP17 High side gate 3
TP18 Low side gate 3
TP19 High side gate 2
TP20 Low side gate 2
TP21 High side gate 1
TP22 Low side gate 1
TP23 SENSE
TP24 SENSE
TP25 SENSE page 9/19
6
6.1
6.2
6.3
UM2836
Board description
Board description
Sensorless
•
•
By default the evaluation board is configured in sensorless mode. This enables the BEMF zero crossing detection network. Jumpers are set in the following way
•
JP6 pins 2-4 closed, PA0 connected to Bemf1
JP7 pins 2-4 closed, PA1 connected to Bemf2
JP8 pins 2-4 closed, PA2 connected to Bemf3
Hall/Encoder motor speed sensor
The EVSPIN32F02Q1S1 evaluation board supports the digital Hall and quadrature encoder sensors as motor position feedback.
The sensors can be connected to the STSPIN32F0251Q through the J3 connector as listed in the following table.
Name
Hall1/A+
Hall2/B+
Hall3/Z+
VDD_sensor
GND
Pin
1
2
3
4
5
Table 4. Hall/Encoder connector (J3)
Description
Hall sensor 1/Encoder out A+
Hall sensor 2/Encoder out B+
Hall sensor 3/Encoder Zero feedback
Sensor supply voltage
Ground
A protection series resistor of 1.8 kΩ is mounted in series with sensor outputs.
For sensors requiring external pull-up, three 10 kΩ resistors are already mounted on the output lines and connected to VDD voltage when JP2 is closed.
•
•
The jumper JP10 selects the power supply for sensor supply voltage:
• JP10 pins 1-2 closed : Hall sensors powered by VDD ( 3.3 V )
JP10 pins 2-3 closed : Hall sensors powered by VCC ( 15 V )
JP10 pins 2-4 closed : Hall sensors powered by 5 V
•
•
The MCU of STSPIN32F0251Q can decode Hall/Encoder sensor outputs configuring jumpers as follows:
• JP6 pins 2-3 closed, PA0 connected to Hall1
JP7 pins 2-3 closed, PA1 connected to Hall2
JP8 pins 2-3 closed, PA2 connected to Hall3
Overcurrent detection and current sensing measurement
The EVSPIN32F02Q1S1 evaluation board implements overcurrent protection based on the STSPIN32F0251Q integrated comparator. The single-shunt resistor measures the load current bringing the voltage signal associated to load current to the CIN pin (TP13). When the peak current in the phases exceeds the selected threshold, the integrated comparator is triggered and all the power switches are disabled. Power switches are enabled again when the current falls below the threshold and the output disable time expires, thus implementing a current limitation control.
UM2836 - Rev 1 page 10/19
Figure 4. EVSPIN32F02Q1S1 - current sensing and disable time circuitry
Output disable time circuitry
UM2836
Bus voltage circuit
Current sensing circuitry
6.4
By default, the evaluation board has an overcurrent threshold set to I
OC_typ
= 16 A and a restart time after fault detection of ~560 µs
Overcurrent threshold can be modified changing R33 bias resistor, R38 loop resistor and R34, R36, R111 shunt resistors according to the following formulas:
•
•
V
REF_typ
= 460mV
V
DD
= 3.3V
•
•
•
R
SHUNT
= R34/ / R36/ / R111 = 25mΩ
R
PU
= R33
R
LOOP
= R38
⋅
IOC_typ = VREF_typ ⋅
RPU + RLOOP
RSHUNT ⋅ RPU − VDD
RPU + RLOOP ⋅ RLOOP + RSHUNT
RSHUNT ⋅ RPU RLOOP + RSHUNT + RPU
(1)
The output disable time can be monitored on the OD pin (TP12) and is determined mainly by the time required to recharge the C18 capacitor up to V
SSDh
threshold, according to the formulas:
•
•
V
SSDh
=3.8V
V
SSDl
=0.56V
• V
OD
=VCC=15V t2 ≅ C18 ⋅ R32 ⋅ ln
VSSDl − VOD
VSSDh − VOD
(2)
Bus voltage circuit
The EVSPIN32F02Q1S1 evaluation board provides the bus voltage sensing. This signal is set through a voltage divider from motor supply voltage (VBUS) (R67, R69 and R78, R80), and sent to PB1 GPIO (channel 9 of the
ADC) of the embedded MCU.
• R78 can be unmounted for low Vbus voltages (e.g. HV=48 V DC)
UM2836 - Rev 1 page 11/19
6.5
6.6
6.7
UM2836
Hardware user interface
Hardware user interface
•
•
•
•
•
•
The board provides a hardware user interface as follows:
• a potentiometer R23 setting, for example, the target speed
• switch SW1: reset STSPIN32F0251Q MCU switch SW2: User button 2 switch SW3: User button 1
LED LD1: turned on when user 2 button is pressed
LED LD2: turned on when user 1 button is pressed
LED LD3: turned on when VDD is on (MCU stage powered )
LED LD4: turned on when VCC flyback is on (Gate Driver stage powered)
Debug
•
•
The EVSPIN32F02Q1S1 evaluation board embeds an ST-LINK/V2-1 debugger/programmer. The features supported by ST-LINK are:
•
USB software re-enumeration
Virtual com port interface on USB connected to PB6/PB7 pins of the STSPIN32F0251Q (UART1)
Mass storage interface on USB
The power supply for ST-LINK is provided by the host PC through the USB cable connected to J5.
•
•
•
•
LED LD5 provides ST-LINK communication status information:
• Red LED flashing slowly: at power-on before USB initialization
• Red LED flashing quickly: following first correct communication between the PC and ST-LINK/V2-1
(enumeration)
Red LED ON: initialization between the PC and ST-LINK/V2-1 is complete
Green LED ON: successful target communication initialization
Red/Green LED flashing: during communication with target
Green ON: communication finished and successful.
The reset function is disconnected from ST-LINK by removing jumper J8.
ST-LINK detachable
Once the evaluation board is programmed, it is possible to detach the ST-LINK debugger, breaking the PCB along slot holes. The capability to program or debug STSPIN32F0251Q is still allowed by connecting an external
ST-LINK to J9 SWD connector.
UM2836 - Rev 1 page 12/19
UM2836
Using an external DC power supply
Figure 5. EVSPIN32F02Q1S1 - detachable section
J9 SWD connector
Slot holes to detach ST-Link
Detachable section ST-Link debugger
6.8
Using an external DC power supply
The EVSPIN32F02Q1S1 evaluation board generates VDD=3.3 V and VCC=15 V through a buck converter by default.
Optionally it can be configured to provide VDD and VCC through external power supply
• VCC is provided removing JP4 and connecting pin2 to 15 V and pin3 to GND.
• VDD can be provided by ST-LINK through JP3 (2-3 closed) or connecting JP3 pin2 to 3.3 V and GND to TP8
UM2836 - Rev 1 page 13/19
7
UM2836
References
References
•
•
•
•
This user manual provides information on the hardware features and use of the EVSPIN32F02Q1S1 evaluation board. For additional information refer to:
EVSPIN32F02Q1S1 Data brief (schematic, bill of material, layout)
STSPIN32F0251Q Datasheet
STD17NF25 Datasheet
User manual ST-LINKV2 programmer
UM2836 - Rev 1 page 14/19
Revision history
Date
09-Apr-2021
Table 5. Document revision history
Version
1 Initial release.
Changes
UM2836
UM2836 - Rev 1 page 15/19
UM2836
Contents
Contents
UM2836 - Rev 1 page 16/19
UM2836
List of tables
List of tables
UM2836 - Rev 1 page 17/19
UM2836
List of figures
List of figures
UM2836 - Rev 1 page 18/19
UM2836
IMPORTANT NOTICE – PLEASE READ CAREFULLY
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of
Purchasers’ products.
No license, express or implied, to any intellectual property right is granted by ST herein.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. For additional information about ST trademarks, please refer to www.st.com/trademarks . All other product or service names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.
© 2021 STMicroelectronics – All rights reserved
UM2836 - Rev 1 page 19/19
डाउनलोड
विज्ञापन