UM2119 User manual. Graphical user interface (GUI) for EVAL-L9907-H. Introduction

Similar documents
STSW-L9960, STSW-L9960T Graphical User Interface (GUI) for EVAL-L9960 & EVAL-L9960T

UM1844 User manual. EVAL-L9958 Graphical user interface (GUI) Introduction

Description. January 2019 DB2381 Rev 3 1/5

Description. July 2016 DocID Rev 2 1/6

L9958 Evaluation board for high current (8.6A) DC and Stepper Motors. Description

RN0084 Release note. ST-LINK/V2 firmware upgrade. About this release note

UM2091 User manual. EVAL-L9301 Demo board Hardware documentation. Introduction

STSW-BLUENRG1-DK. BlueNRG-1, BlueNRG-2 DK SW package

UM2167 User manual. OrCAD PSpice model usage instructions

UM2255 User manual. SPC58NG-DISP user manual. Introduction

STSW-STWBCFWDT. STWBC firmware downloader tool. Description. Features

AN4782 Application note

This manual provides information for the final user application developer on how to use SPC57S-Discovery microcontroller evaluation board.

Motor control power board based on the SLLIMM-nano 2 nd series

STEVAL-IPMnM2N. Motor control power board based on the SLLIMM-nano 2 nd series. Description. Features. RoHS compliant

TN1235 Technical note

AN4321 Application note

Dynamic Electro-Thermal simulator for VIPower products. Description

Description SPC564A-DISP. March 2014 DocID Rev 3 1/5

UM2092 User manual. Basic metrology firmware for the STM32F103RD and the STPM32 devices. Introduction

P-NUCLEO-USB001. STM32 Nucleo pack for USB Type-C and Power Delivery. Features. Description

Getting started with STEVAL-IDB007V1 and STEVAL-IDB008V1 evaluation boards

X-NUCLEO-53L0A1. Ranging and gesture detection sensor expansion board based on VL53L0X for STM32 Nucleo. Description. Features

X-NUCLEO-53L1A1. Long distance ranging Time-of-Flight sensor expansion board based on VL53L1X for STM32 Nucleo. Description.

Software GUI user guide for STEVAL-ISV021V1, STEVAL- IDS002V1 and STEVAL-IDS003V1 evaluation boards

AN4311 Application note

ST25DV-DISCOVERY. Discovery kit for the ST25DV04K dynamic NFC/RFID tag. Features

Getting started with MotionPM real-time pedometer library in X CUBE-MEMS1 expansion for STM32Cube

EVLKSTCOMET10-1. STCOMET smart meter system-on-chip development kit. Features

AN4491 Application note

EV-VNH7040AY. VNH7040AY Evaluation Board. Features. Description

UM2343 Application note

P-NUCLEO-USB001. STM32 Nucleo pack for USB Type-C and Power Delivery Data brief. Features. Description

Getting started with X-NUCLEO-IHM06A1 low voltage stepper motor driver expansion board based on STSPIN220 for STM32 Nucleo

EVALKITSTKNX. Miniature transceiver STKNX evaluation and development kit. Features

How to configure the BlueNRG-1 and BlueNRG-2 devices in network coprocessor mode. Main components Bluetooth Low Energy wireless system-on-chip

Getting started with X-CUBE-LED channel LED driver software expansion based on LED1642GW for STM32Cube

DT0095 Design tip. Datalogging the SensorTile through a PC. Purpose and benefits. Description

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

STSW-BNRGUI. BlueNRG GUI SW package. Data brief. Features. Description

AN4869 Application note

NUCLEO-L433RC-P NUCLEO-L452RE-P

USB Type-C and Power Delivery Nucleo pack with NUCLEO-F072RB expansion board based on STUSB1602. Description

UM2461 User manual. SPC584B-DIS Discovery Board. Introduction

NUCLEO-L496ZG. STM32 Nucleo-144 board. Features. Description

Getting started with the high power stepper motor driver expansion board based on powerstep01 for STM32 Nucleo

UM2216 User manual. Getting started with MotionFA fitness activity library in X CUBE MEMS1 expansion for STM32Cube. Introduction

EV-VNQ7003SY. VNQ7003SY Evaluation Board. Data brief. Features. Applications. Description

Getting started with the X-NUCLEO-IHM14A1 stepper motor driver expansion board based on STSPIN820 for STM32 Nucleo

UM1719 User manual. The STPM3x evaluation software. Introduction

P-NUCLEO-6180X2. Proximity, gesture, ambient light sensor expansion board based on VL6180X for STM32L053R8. Description. Features

STM32L4R9I-EVAL. Evaluation board with STM32L4R9AI MCU. Features

P-NUCLEO-53L1A1. VL53L1X nucleo pack with X-NUCLEO-53L1A1 expansion board and STM32F401RE nucleo board. Description. Features

Getting started with the X-CUBE-IKA02A1 multifunctional software expansion for STM32Cube

STEVAL-SPBT4ATV3. USB dongle for the Bluetooth class 1 SPBT2632C1A.AT2 module. Features. Description

How to upgrade the firmware on the STEVAL-USBC2DP USB Type-C to DisplayPort adapter

AN4045 Application note

AN5123 Application note

P-NUCLEO-53L0A1. VL53L0X Nucleo pack with ranging, gesture detection sensor expansion board and STM32F401RE. Description. Features

AN4820 Application note

EV-VND7040AJ. VND7040AJ evaluation board. Features. Applications

UM1862 User manual. Getting started with STM32F411E Discovery software Development Tools. Introduction

AN4749 Application note

EVALKIT-VL6180X. VL6180X plug-in and STM32 F401RE Nucleo board explorer kit. Description. Features

UM2495. High performance HF reader / NFC initiator IC software expansion for NUCLEO-8S208RB. User manual. Introduction

Getting started with the digital MEMS microphone expansion board based on MP34DT01-M for STM32 Nucleo

The BlueNRG-1, BlueNRG-2 BLE OTA (over-the-air) firmware upgrade

AN4373 Application note

USB Type-C and Power Delivery Nucleo pack with NUCLEO-F072RB expansion board based on the STUSB1602

EV-AUTO-LDOS. L5150GJ-L5300AH7-L4995AK Evaluation Board. Applications. Features. Description

UM2361. Getting started with the ST BlueNRG-Mesh ios application. User manual. Introduction

Using the GPIOs and interrupt controller to drive LEDs on STM8 Nucleo-64 boards

AN3281 Application note

RN0100 Release note. SPC5-STUDIO v.5.0 Release. Introduction

Getting started with the STM32 Nucleo pack for USB Type-C and Power Delivery with the Nucleo-F072RB board and the STUSB1602

AN3980 Application note

EVAL6235PD. L6235 three-phase brushless DC motor driver demonstration board. Features. Description

AN2667 Application note

UM1853 User manual. STM32CubeF1 Nucleo demonstration firmware. Introduction

Getting started with MotionPM real-time pedometer library in X-CUBE-MEMS1 expansion for STM32Cube

UM2350. Getting started with MotionPW real-time pedometer for wrist library in X-CUBE-MEMS1 expansion for STM32Cube. User manual.

Getting started with X-NUCLEO-53L1A1 long distance ranging ToF sensor expansion board based on VL53L1X for STM32 Nucleo

300 ma triple DC-DC converter for powering AMOLED displays. Description. Table 1: Device summary Negative voltage. Auxiliary positive voltage

AN2676 Application note

UM1893 User Manual. STSW-RFSOL001 STWPLLSim simulation tool for STW81200/STuW Introduction

AN3991 Application note

Bluetooth low energy profiles for the X-CUBE-BLE1 expansion for STM32Cube. Description

AN4464 Application note

P-NUCLEO-IKA02A1. STM32 Nucleo pack: electrochemical toxic gas sensor expansion board with CO sensor. Description. Features

STSW-BNRG-Mesh. Mesh over Bluetooth low energy. Features. Description. Applications

ESDA7P60-1U1M. High power transient voltage suppressor. Description. Features. Applications. Complies with the following standards:

UM2051 User manual. Getting started with the STM32 Nucleo pack for USB Type-C and Power Delivery. Introduction

USB dongle for the Bluetooth class 2 SPBT3.0DP2 module

Getting started with X-NUCLEO-LED16A1 16-channel LED driver expansion board for STM32 Nucleo

USB dongle for the Bluetooth class 1 SPBT3.0DP1 module. Description

AN4440 Application note

UM2276. Getting started with MotionSD standing vs sitting desk detection library in X-CUBE-MEMS1 expansion for STM32Cube. User manual.

EVALSTGAP1AS. Demonstration board for STGAP1AS galvanically isolated single gate driver. Description. Features

AN4241 Application note

X-NUCLEO-53L0A1 ranging and gesture detection sensor expansion board based on VL53L0X for STM32 Nucleo

Transcription:

User manual Graphical user interface (GUI) for EVAL-L9907-H Introduction This document describes the STSW-L9907 the Graphical User Interface (GUI) dedicated to set and control the EVAL-L9907-H board (3-phase BLDC motor application boards for L9907) through the SPI protocol, manage the Enable and BST_Dis pins and read the value from the current sensing section. The STSW-L9907-H has been developed using Labview and it works with SPC560P-DISP evaluation board programmed with a dedicated FW (GP-Pictus.elf). October 2016 DocID029822 Rev 1 1/23 www.st.com 1

List of figures List of figures Figure 1. STSW-L9907-H Graphical User Interface (GUI) for EVAL-L9907-H.................. 4 Figure 2. SPC560P-DISP.......................................................... 8 Figure 3. SPC560P-DISP 4x37 Connector, pin A-34................................... 8 Figure 4. SPC560P-DISP 4x37 Connector, pins used to connect the EVAL-L9907-H........... 8 Figure 5. EVAL-L9907-H and SPC560P-DISP.......................................... 9 Figure 6. EVAL-L9907-H and SPC560P-DISP plugged................................... 9 Figure 7. UDE software........................................................... 10 Figure 8. USB driver installation.................................................... 10 Figure 9. Device driver installation wizard............................................. 11 Figure 10. USB Driver Installation folder JtagUsbDriver................................. 11 Figure 11. SPC560P-DISP: USB port................................................. 12 Figure 12. Start menu, Computer, Manage............................................. 12 Figure 13. Disk management........................................................ 13 Figure 14. PLS USB JTAG Adapter- COM Ports......................................... 13 Figure 15. PLS USB JTAG Adapter for SPC5xxx B Load VCP box......................... 14 Figure 16. PLS USB JTAG Adapter for SPC5xxx B PLS USB Serial Port.................... 14 Figure 17. PLS USB drivers and serial port Device manager window after installation procedure.. 15 Figure 18. UDE Visual Platform icon.................................................. 17 Figure 19. UDE Visual Platform: File and New Workspace................................. 17 Figure 20. UDE Visual Platform: Define File name....................................... 18 Figure 21. UDE Visual Platform: Select Target Configuration............................... 19 Figure 22. UDE Visual Platform: Load Program......................................... 19 Figure 23. UDE Visual Platform: Program All........................................... 20 Figure 24. UDE Visual Platform: Execute Memtool Command - loading....................... 20 Figure 25. UDE Visual Platform: p0rocedure completed................................... 21 DocID029822 Rev 1 3/23 3

Contents UM2119 Contents 1 Graphical User Interface description........................... 4 2 How to use the GUI to configure and test the EVAL-L9907-H........ 6 3 How to plug SCP560P-DISP and EVAL-L9907-H.................. 8 4 SPC560P-DISP: USB drivers installation....................... 10 5 Labview Driver: Installation Guide............................ 16 6 SPC560P-DISP: Load Firmware............................... 17 7 Revision history........................................... 22 2/23 DocID029822 Rev 1

Graphical User Interface description UM2119 1 Graphical User Interface description The STSW-L9907-H GUI includes the fields highlighted in Figure 1: Figure 1. STSW-L9907-H Graphical User Interface (GUI) for EVAL-L9907-H 1. Com Port Setup: this menu allows to set the COM port 2. SDI: this menu allows to select and to configure each device register. It is possible to program all the bits of each register. 3. SDO: the value of each register is copied in the field of this menu. This portion of the GUI allows to monitor the device status. 4. SPI Send/Receive: in this portion of the GUI it is possible: a) To end an SPI commands or configuration as programmed in the SDI menu (see #2) by pressing the SEND button. b) To send a single SPI command manually written in the MOSI field (HEX format). In the same time it is available to read the register value in the MISO filed. c) SPI functionality: the LEDs, SPI SEND OK and SPI RECEIVE OK provide a visual feedback about the SPI communication status (if the LEDs are on means communication is working properly). 5. PWM signals: the Frequency and the Duty cycle of the each PWM signals are programmed in this frame. The "START" button enables the PWM signal generators (PWM signals: L1, L2, L3, H1, H2 and H3), whereas STOP button stops the the PWM 4/23 DocID029822 Rev 1

Graphical User Interface description signals. Before sending a PWM configuration, the selected Frequency must be confirmed by pushing the SET button. 6. ENABLE SETUP BST_DIS SETUP & FS_FLAG STATUS: this frame is used is to configure the EN1, EN2 and BST_DIS pins of the L9907 and to read the FS_FLAG status. 7. ADC READ: this section displays the value of the Ib1 and Ib2 pins (ADC inputs). 8. MOTOR CONTROL: this menu is used to start a BLDC Motor Control based on Closed Loop and by using 6-Steps Algorithm technique, to setup some parameters and to view some useful waveforms: a) Motor Parameters: through this menu it is possible to setup some parameters of the BLDC Motor, such as Polar Couples, minimum and maximum rotation speed. b) Closed Loop Tuning: through this menu it is possible to setup the PI parameters for Closed Loop and Kp and Ki values. c) Graphics Display: with this button it is possible to select a graphic between Speed, Error, Duty, ADC IB1 and ADC IB2. d) Speed Ref.: by using this cursor it is possible to set the target BLDC motor speed. e) Single Read: this button allows to read the instantaneous speed value. f) Duty %: it shows the value of the current Duty Cycle. g) Graph ON/OFF: the button allows to turn ON and OFF the Graph window. 9. Automatic Reset: through this two buttons it is possible to automatically reset the device at Start-up for Vcc=3,3 V and Vcc=5 V. Pressing the button Automatic Reset 3.3 V, the procedure described at Par. 3 point A will be automatically performed. Pressing the button Automatic Reset 5 V, the procedure described at Par. 3 point B will be automatically performed. 10. HELP: through this menu it is possible to download the SW help, the L9907 Datasheet and info about the HW. DocID029822 Rev 1 5/23 21

How to use the GUI to configure and test the EVAL-L9907-H UM2119 2 How to use the GUI to configure and test the EVAL- L9907-H The following procedure has to be followed to start the EVAL-L9907-H Device using the L9907-H GUI. A. Start up at Vcc= 3.3 V 1. Configure the COM port 2. Press OK button 3. Send the SPI frame 0xC800 (0b 1100100000000000) - DIAG & 0xE000 (0b DIAG2 4. In the field #3 (see Section 1) it is possible to read the device answer in bit, in the field n 4 it is possible to read the SDI and SDO signals expressed in hex. 5. Check the FS_FLAG status (field #6). The value must be 01 B. Start up at Vcc= 5 V The Power Up default value for Vcc over voltage threshold is 10, corresponding to Vcc=3.3 V application. The below procedure has to be followed in order to use Vcc=5 V (for more details see the EVAL-L9907-H HW Manual): 1. Configure the COM port 2. Press OK button 3. In field #7, force one of the EN pins to 0 4. Send the command 0x2401 (0b 0010010000000001) CMD1 register in order to reset the fault. 5. Press SEND in the field #4. If the communication has been established and the command has been sent and interpreted properly, the LED SPI SEND OK will be turned on. The LED SPI RECEIVE OK will be turned on if the device answer has been received properly. 6. The field #3 will be updated with the device registers value as well as in the field #4 the SDI and SDO expressed in hex 7. Send the SPI frame 0xC800 (0b 1100100000000000) - DIAG & 0xE000 (0b1110000000000000) DIAG2 8. Set High the EN pin previously set to zero (step 3). 9. Check the FS_FLAG status (field #6): the value should be 01 C. How to start the PWM independently 1. Set the desired channel (L1, L2, L3, H1, H2 and H3) Field #5 2. Insert the frequency value in the field #5. 3. Press SET. 4. Set Duty Cycle value. 5. Press START, to enable the PWM signals 6. In the field #5, press STOP PWM to stop the PWM signals. 7. Press the button STOP on the top side of the GUI to stop the execution of Labview code and close the window. 6/23 DocID029822 Rev 1

How to use the GUI to configure and test the EVAL-L9907-H D. How to start the MOTOR CONTROLL 1. STOP all the PWM signals by pressing STOP PWM for all 6 channels (L1, L2, L3, H1, H2 and H3), see Field #5. This action will stop all PWM signals from L9907-H. 2. Follow the procedure described at point A or B or press one of the two button Automatic Reset 3.3 V or Automatic Reset 3.3 V depending on the Vcc supply value. 3. Setup the BLDC motor parameters (polar couples, min and max speed) 4. Set Kp and Ki values (for example by using a for a 60W BLDC motor set Kp= 10 and Ki=5) (a) 5. Press Start/Stop Motor button and the motor will start to run. If the Motor shaft doesn t turn it means a fault is present. Stop the Motor Control and reset the fault following the procedure at section A, point 3 to 5. Restart the motor control (b). 6. Set the rotation direction: Clockwise or CounterClockwise 7. Press Start/Stop Motor to stop the Motor shaft. 8. Press the button STOP on the top side of the GUI to stop the execution of Labview code and close the window. a. The Kp and Ki constants depend on the BLDC motor characteristics and must be tuned to achieve the best control b. Due to the Start-up procedure developed in the Firmware, depending on the BLDC motor and the BLDC rotor position, a cross conduction between high-side and low-side Power MOSFET could happen; under this working a fault is detected. DocID029822 Rev 1 7/23 21

How to plug SCP560P-DISP and EVAL-L9907-H UM2119 3 How to plug SCP560P-DISP and EVAL-L9907-H In the SPC560P-DISP is implemented a 0.1 4x37 pin array; it is used as connector to plug the EVAL-L9907-H. Figure 2. SPC560P-DISP Figure 3. SPC560P-DISP 4x37 Connector, pin A-34 Figure 4. SPC560P-DISP 4x37 Connector, pins used to connect the EVAL-L9907-H 8/23 DocID029822 Rev 1

How to plug SCP560P-DISP and EVAL-L9907-H Figure 5. EVAL-L9907-H and SPC560P-DISP Figure 6. EVAL-L9907-H and SPC560P-DISP plugged DocID029822 Rev 1 9/23 21

SPC560P-DISP: USB drivers installation UM2119 4 SPC560P-DISP: USB drivers installation The GUI needs a dedicated USB driver to enable the serial communication channel. If the driver is not yet installed or not appropriately configured, the following procedure describes how to install the Driver or to update the current version. To install the drivers the board SPC560P-DISP does not need the external supplier; the USB connection provides the supply voltage. 1. Disconnect the USB from SPC560P-Discovery 2. If the UDE Visual Platform 4.2 is already installed as well as the drivers are updated go to step #7 otherwise continue to next step 3. Download the SPC5-UDE/STK 4.02.07 from pls-mc web site. 4. Install the SW; right click on the icon named ude-4-02-07-spc5-udestk.exe then select Run as Administrator Figure 7. UDE software 5. Accept to install the USB drivers (see Figure 8) Figure 8. USB driver installation 6. The Drivers installation is completed when the window here below appears (Figure 9). Pressing the Finish button the installation will be completed and the installation program will be closed. 10/23 DocID029822 Rev 1

SPC560P-DISP: USB drivers installation Figure 9. Device driver installation wizard 7. Open the folder C:\Program Files (x86)\pls\ude 4.2\Driver\JtagUsbDriver (c) 8. Right click on InstallPlsUsbJtagDriver.bat then select Run as administrator Figure 10. USB Driver Installation folder JtagUsbDriver 9. Once the installation is completed, connect the USB cable to the SPC560P-DISP board; c. The path could be different because it is depending on the choice the user made during the installation procedure. DocID029822 Rev 1 11/23 21

SPC560P-DISP: USB drivers installation UM2119 Figure 11. SPC560P-DISP: USB port 10. From Start Menu, right click on Computer item then select Manage. Figure 12. Start menu, Computer, Manage 11. Once the Computer management popup appears, from the System Tools menu, select Device Manager from the System Tools menu 12/23 DocID029822 Rev 1

SPC560P-DISP: USB drivers installation Figure 13. Disk management 12. Expand the item Universal Serial Bus controllers; Identify PLS USB JTAG Adapter for SPC5xxx A and PLS USB JTAG Adapter for SPC5xxx B (see Figure 14) Figure 14. PLS USB JTAG Adapter- COM Ports 13. To enable the COM port, right click on PLS USB JTAG Adapter for SPC5xxx B then click Properties and select the Advanced tab. Flag the LOAD VCP (Virtual COM Port) box. DocID029822 Rev 1 13/23 21

SPC560P-DISP: USB drivers installation UM2119 Figure 15. PLS USB JTAG Adapter for SPC5xxx B Load VCP box 14. Disconnect the USB cable from the SPC56P-Discovery then reconnect. A new COM port appears, and Windows will install the new drivers automatically. From the Device Manager window check the new COM port available. Figure 16. PLS USB JTAG Adapter for SPC5xxx B PLS USB Serial Port 15. The COM port is configured and available to be used for serial communication with the PC. 14/23 DocID029822 Rev 1

SPC560P-DISP: USB drivers installation Figure 17. PLS USB drivers and serial port Device manager window after installation procedure DocID029822 Rev 1 15/23 21

Labview Driver: Installation Guide UM2119 5 Labview Driver: Installation Guide The STSW-L9907-H GUI can be used stand alone without a Labview license installing the free SW named Runtime Engine for Labview and VISA Runtime, last versions can be downloaded from NI web site. 16/23 DocID029822 Rev 1

SPC560P-DISP: Load Firmware 6 SPC560P-DISP: Load Firmware To use the STSW-L9907-H GUI a dedicated FW (file name: GP-Pictus.elf ) must be loaded on the microcontroller in the SPC560P-DISP board following the below procedure (the board is supplied by the USB cable thus the external PSU is not required): 1. Run UDE Visual Platform ; Figure 18. UDE Visual Platform icon 2. Create a New Workspace for SPC560P-DISP. Click File>New Workspace Figure 19. UDE Visual Platform: File and New Workspace 3. Name the new Workspace i.e. Pictus then select OPEN DocID029822 Rev 1 17/23 21

SPC560P-DISP: Load Firmware UM2119 Figure 20. UDE Visual Platform: Define File name 4. Select STM Pictus Evaluation Board with SPC560P50(SPC5 UDE/STK) then click OK 18/23 DocID029822 Rev 1

SPC560P-DISP: Load Firmware Figure 21. UDE Visual Platform: Select Target Configuration 5. UDE Visual Platform window will be refreshed and new functionalities will appear, then click on the icon Load Program highlighted in the red circle; browse the file GP- Pictus.elf then click Open. Figure 22. UDE Visual Platform: Load Program 6. Click on Program All. DocID029822 Rev 1 19/23 21

SPC560P-DISP: Load Firmware UM2119 Figure 23. UDE Visual Platform: Program All Figure 24. UDE Visual Platform: Execute Memtool Command - loading 20/23 DocID029822 Rev 1

SPC560P-DISP: Load Firmware Figure 25. UDE Visual Platform: p0rocedure completed 7. When the procedure is completed click on Exit button. The microcontroller in the SPC560P-DISP board is programmed now and the board is ready to be used with the Graphical User Interface (GUI) STSW-L9907-H and configure and control the evaluation board EVAL-L9907-H. DocID029822 Rev 1 21/23 21

Revision history UM2119 7 Revision history Table 1. Document revision history Date Revision Changes 04-Oct-2016 1 Initial release. 22/23 DocID029822 Rev 1

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. 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. 2016 STMicroelectronics All rights reserved DocID029822 Rev 1 23/23 23