Advertisement

Quick Links

UM2110
User manual
Getting started with the X-CUBE-SPN12 low voltage dual brush DC motor driver
software expansion for STM32Cube
Introduction
The
X-CUBE-SPN12
expansion software package for
STM32Cube
runs on the
STM32 Nucleo
providing management of
STSPIN240
to control dual brush DC motor driver.
The expansion is built on
STM32Cube
software technology to ease portability across different STM32 microcontrollers.
It is compatible with the NUCLEO-F401RE, NUCLEO-F334R8,
NUCLEO-F030R8
or
NUCLEO-L053R8
development boards
connected to an
X-NUCLEO-IHM12A1
expansion board.
The software comes with a sample implementation driving two bidirectional low voltage dual brush DC motors.
RELATED LINKS
Visit the STM32Cube ecosystem web page on www.st.com for further information
UM2110 - Rev 2 - May 2021
www.st.com
For further information contact your local STMicroelectronics sales office.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the X-CUBE-SPN12 and is the answer not in the manual?

Questions and answers

Summary of Contents for ST X-CUBE-SPN12

  • Page 1 UM2110 User manual Getting started with the X-CUBE-SPN12 low voltage dual brush DC motor driver software expansion for STM32Cube Introduction X-CUBE-SPN12 expansion software package for STM32Cube runs on the STM32 Nucleo providing management of STSPIN240 to control dual brush DC motor driver.
  • Page 2: Acronyms And Abbreviations

    UM2110 Acronyms and abbreviations Acronyms and abbreviations Table 1. List of acronyms Acronym Description Application programming interface Board support package ® CMSIS Cortex microcontroller software interface standard Hardware abstraction layer Serial port interface Integrated development environment Light emitting diode UM2110 - Rev 2 page 2/14...
  • Page 3: Cube-Spn12 Software Expansion For Stm32Cube

    UM2110 X-CUBE-SPN12 software expansion for STM32Cube X-CUBE-SPN12 software expansion for STM32Cube Overview X-CUBE-SPN12 software package expands STM32Cube functionality, and features: • STSPIN240 configuration (bridge input and enabling signals) • flag interrupt handling (overcurrent and thermal alarm reporting) • handling of up to two bidirectional dual brush DC motors •...
  • Page 4: Folder Structure

    X-CUBE-SPN12 software provides the drivers to manage the STSPIN240 motor driver. Folder structure Figure 2. X-CUBE-SPN12 package folder structure The software is packaged in the following main folders: • Drivers: – STM32Cube HAL driver files which directly derive from the STM32Cube framework.
  • Page 5: Project Folder

    This structure defines a list of function pointers filled during its instantiation in the corresponding motor driver component. For X-CUBE-SPN12, the structure instance is called stspin240_250Drv (see file BSP\Components\stspin240_250\stspin240_250.c) As the motor control BSP is common for all motor driver expansion boards, some functions are not available for all expansion boards.
  • Page 6: Apis

    UM2110 APIs Table 2. Required resources for the X-CUBE-SPN12 software Resources for F4xx/F3xx Resources for L0xx Resources for F0xx Features ext. line 10 flag interrupt and enable pin GPIO PA10 GPIO PB5 GPIO PB5 PWM for B PWMB brige TIM3 CH2...
  • Page 7: System Setup Guide

    STM32 microcontroller line. The Arduino connectivity support and ST morpho connectors make it easy to expand the functionality of the STM32 Nucleo open development platform with a wide range of specialized expansion boards to choose from.
  • Page 8: X-Nucleo-Ihm12A1 Low Voltage Dual Brush Dc Motor Driver Expansion Board

    Windows™ (v. 7 and above) – laptop or PC Software requirements The following software components are needed for a suitable development environment for applications based on the motor driver expansion board: • ST-LINK/V2-1 USB driver • ST-LINK/V2-1 firmware upgrade • X-CUBE-SPN12...
  • Page 9: Hardware And Software Setup

    UM2110 Hardware and software setup Hardware and software setup This section describes the hardware and software setup procedure for executing the provided examples and to develop new applications based on the motor driver expansion board. 3.4.1 Common setup for all configurations STM32 Nucleo development board has to be configured with the following jumper position: •...
  • Page 10: Revision History

    UM2110 Revision history Table 3. Document revision history Date Version Changes 04-Oct-2016 Initial release. Updated Introduction, Section 2.1 Overview, Section 2.2 Architecture, Section 2.3 Folder structure, Section 2.3.2 Project folder, Section 3.3 Software requirements Section 3.4.3 Setup to drive two bidirectional brush DC motors.
  • Page 11: Table Of Contents

    Acronyms and abbreviations ............2 X-CUBE-SPN12 software expansion for STM32Cube....... . 3 Overview .
  • Page 12: List Of Tables

    Required resources for the X-CUBE-SPN12 software ........
  • Page 13: List Of Figures

    X-CUBE-SPN12 package folder structure ........
  • Page 14 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’...

Table of Contents