STMicroelectronics L9958, ST10F276 evaluation board User manual
Реклама
Реклама
UM0759
User manual
L9958 evaluation board and graphical user interface (GUI)
1 Overview
This document was intended to explain how to work with L9958 GUI and ST10F276 evaluation board.
July 2009 Doc ID 16058 Rev 1
www.BDTIC.com/ST
1/26
www.st.com
Contents
Contents
UM0759
Main feature of the L9958 evaluation board . . . . . . . . . . . . . . . . . . . . . . . 6
L9958 H-bridge DC motor driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
BOM of L9958 evaluation board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
ST10F276 evaluation board configuration . . . . . . . . . . . . . . . . . . . . . . . . 12
RUN and STOP L9958 GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Configure L9958 GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
"Continue diagnosis" switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2/26 Doc ID 16058 Rev 1
www.BDTIC.com/ST
UM0759
List of tables
List of tables
Doc ID 16058 Rev 1
www.BDTIC.com/ST
3/26
List of figures
List of figures
UM0759
4/26 Doc ID 16058 Rev 1
www.BDTIC.com/ST
UM0759 System description
2.1 Introduction
The L9958 evaluation board is a standalone evaluation board for the L9958 devices.
The L9958 is an SPI controlled H-bridge, designed for the control of DC and stepper motors in safety critical applications and under extreme environmental
●
●
L9958 device with 34x4 connectors can be connected to the MCU evaluation board
Main GUI
Figure 1.
System connection
12V Power supply
SPI,PWM,IO
PC
DC motor
IO header
Figure 2.
System diagram
Doc ID 16058 Rev 1
www.BDTIC.com/ST
5/26
General description UM0759
3.1.1
The L9958 evaluation board consists of a transil diode provide ISO pulse protection by clamping action, L9958 H-bridge IC for DC motor control, IO connector for MCU connection
(compatible with ST10 MCU).
Schematics of the evaluation board can also be referred to for more details on the jumper configurations.
Main feature of the L9958 evaluation board
Figure 3.
L9958 evaluation board top view
6/26 Doc ID 16058 Rev 1
www.BDTIC.com/ST
UM0759
Figure 4.
L9958 evaluation board back view
General description
Figure 5.
L9958 evaluation board application circuit
Doc ID 16058 Rev 1
www.BDTIC.com/ST
7/26
General description UM0759
There is one battery supply connectors on the board, with a trasil diode for ISO pulse voltage protection (39 V). C1, C2 is designed for power supply filter purpose and C3 is the charge pump capacitor. See below the schematic of this part.
Figure 6.
L9958 evaluation board power supply
GND
VBattery
3.1.3 L9958 H-bridge DC motor driver
There is L9958 H-bridge DC motor driver on the board, can achieve PWM control, SPI diagnostic, DC motor drive functions.
C4,C5,C6 is designed as decoupling capacitor for VDDIO and VDD.
Figure 7.
L9958 H-bridge DC motor driver overview
L9958
8/26 Doc ID 16058 Rev 1
www.BDTIC.com/ST
UM0759
3.1.4
General description
DC motor connector
There are two connectors on the board can be directly connect to DC motor, C7, C8 is designed for ESD purpose for DC motor drive.
See below the schematic of this part
Figure 8.
L9958 evaluation board DC motor connector
DC motor connector 1, 2
3.1.5 Jumpers
There are 5 jumpers on the board for VDDIO connection, Power ground, Digital ground configuration as well as DIR,DI,EN connection for L9958 input digital signal
Table 1.
Type
Jumpers
J1
Description
Connect L9958 VDDIO to D32 (ST10 5V)
DIR is connected to 5V
J2 DIR is connected to GND
DIR is controlled by C17
DI is connected to 5V
J3 DI is connected to GND
DI is controlled by C16
Doc ID 16058 Rev 1
www.BDTIC.com/ST
9/26
General description
Table 1.
Type
Jumpers (continued)
EN is connected to 5V
J4 EN is connected to GND
EN is controlled by D16
GND is connected to PGND
GNDpin
GND and PGND not connected
Description
Figure 9.
L9958 evaluation board jumpers
J2,J3,J4 GNDpin
UM0759
J1
10/26 Doc ID 16058 Rev 1
www.BDTIC.com/ST
UM0759
There are 9 test points on the board.
Table 2.
Test points
Test points
Definition
t5 t6 t7 t8 t9 t3 t4 t1 t2
SO
VDDIO
CS
EN,
DI
DIR
SCK
SI,
PWM
Description
L9958 SPI Dout
L9958 VDDIO
L9958 SPI CS signal
L9958 enable signal
L9958 DI signal
L9958 H-bridge direction control
L9958 SPI clock signal
L9958 SPI Din
L9958 PWM input signal for H-bridge control
Figure 10.
L9958 evaluation board test point
t1,3,4,5,6,7,8,9
General description
t2
The 34×4 I/O header allows access to control or diagnostic I/O from the MCU.
Below is the I/O header pin mapping, see appendix A.
Doc ID 16058 Rev 1
www.BDTIC.com/ST
11/26
General description UM0759
3.1.8 BOM of L9958 evaluation board
Table 3.
Comment
Bill of material
Description
100µF 50V
1µF
100nF
10µF
10nF connector1
Jpin
22k
10k
1k testpoint
39V
L9958 connector2
Designator
-
-
-
X1
100uF C1
Capacitor (Semiconductor SIM
Model)
C2
Capacitor (Semiconductor SIM
Model)
C3, C4, C5
-
Capacitor C6
Capacitor (Semiconductor SIM
Model)
C7, C8
DC1, DC2, GND, V+
DI, DIR, EN, VDDIO
Semiconductor resistor
Semiconductor resistor
Semiconductor resistor
GNDpin, J1, J2, J3, J4
R1, R2
R3
R4, R5, R6, R7, R9, R10, R11,
R12 t1, t2, t3, t4, t5, t6, t7, t8, t9
TD39V u1 u4
Footprint Quantity
Cap (50V 100µF) 1
C0805
C0805
RAD-0.1
C0805
Connector1
Jpin
2012[0805]
2012[0805]
2012[0805] testpoint transil diode
PowerSO20
HDR34X4
1
3
1
2
4
5
2
1
8
9
1
1
1
3.2 ST10F276 evaluation board configuration
The ST10F276 is configured as 64 MHz CPU clock, and the configuration is shown in following table:
Table 4.
B1
ST10F276 configuration
B2 B3 B4
S3 configuration
off
S4 configuration
off on off off on off on
B5
off on
B6
off off
B7
on on
B8
off off
Connect PC COM port to ST10 UART0, PC COM port can be configured by GUI.
12/26 Doc ID 16058 Rev 1
www.BDTIC.com/ST
UM0759
3.3
General description
Evaluation GUI description
The L9958 GUI consists of five fields, three control fields: SPI menu select, motor control command field, function configuration field; two indication field: SPI diagnosis indicator and
EN, DI, DIR indicator.
Figure 11.
L9958 GUI general view and the default value
3.3.1 RUN and STOP L9958 GUI
The L9958 GUI was automatically running when opened. At this time, the default value was
User can stop and exit the GUI via click “Exit” key: keypad.
or press “ESC” key on
SPI menu select field
This field was used to select SPI command. The SPI command was sent to L9958 by ST10 via SPI. The SPI configuration protocol was shown as below, more details, please refer to
L9958.
Table 5.
SPI configuration protocol
Bit
0 - LSB
1
2
Name
RES
DR
CL_1
Description
Reserved
Diagnostic Reset Bit
Bit1 for Regulation Current Level
Config. value after reset
—
0
0
13/26 Doc ID 16058 Rev 1
www.BDTIC.com/ST
General description UM0759
Table 5.
Bit
9
10
11
12
13
14
15-MSB
3
4
5
6
7
8
SPI configuration protocol (continued)
Name Description
ISR
ISR_DIS
OL_ON
RES
RES
0
0
CL_2
RES
RES
RES
RES
VSR
Bit2 for Regulation Current Level
Reserved
Reserved
Reserved
Reserved
Voltage slew rate control value
Current slew rate control value
Current slew rate control disable
Open load in ON state enable
Reserved
Reserved
“0” to be written
“0” to be written
Diagnostic reset bit
Description: Diagnostic Reset bit, more details, please refers to L9958 datasheet.
Value: Diagnostic Reset Disable
→ Clicked → 1
Diagnostic Reset Enable
→ Un-Clicked → 0
Default: Diagnostic Reset Enable
→ Un-Clicked → 0
SPI command Bit: b1
Open load in ON state enable
Description: Open load in ON state Enable bit, more details, please refer to L9958 datasheet.
Value: Open load in ON state Enable
→ Clicked → 1
Open load in on state Disable
→ Un-Clicked → 0
Default:
→ Open load in ON state Disable → Un-Clicked → 0
SPI-DIN Bit: b11
Current slew rate control disable
Description: Current Slew Rate Control Disable bit, more details, please refers to L9958 datasheet.
Value:
Default:
Current Slew Rate Control Disable
→ Clicked → 1
Current Slew Rate Control Enable
→ Un-Clicked → 0
Current Slew Rate Control Enable
→ Un-Clicked → 0
SPI-DIN Bit: b10
Config. value after reset
—
—
—
—
0
0
0
1
—
—
—
—
0
14/26 Doc ID 16058 Rev 1
www.BDTIC.com/ST
UM0759
Note:
General description
ISR
Description: Current Slew Rate Control Value bit, more details, please refers to L9958 datasheet.
Value:
Default:
[0.15 - 0.45] A/µs
→ ISR=1
[1.5 - 4.5] A/µs
→ ISR=0
[1.5 - 4.5] A/µs
→ ISR= 0
SPI-DIN Bit: b9
VSR
Description: Voltage Slew Rate Control Value bit, more details, please refer to L9958 datasheet.
Value:
Default:
[1 - 3] V/µs
→ VSR=1
[2 - 6] V/µs
→ VSR=0
[2 - 6] V/µs
→ VSR=0
SPI-DIN Bit: b8
Current regulation level
Description: Current Regulation Level bit, more details, please refers to L9958 Datasheet.
Value:
Default:
[2.0 - 3.0] A
→ CL_1=0, CL_2=0
[3.5 - 4.5] A
→ CL_1=1, CL_2=0
[5.5 - 7.7] A
→ CL_1=0, CL_2=1
[7.8 - 9.4] A
→ CL_1=1, CL_2=1
[2.0 - 3.0] A
→ CL_1=0, CL_2=0
SPI-DIN Bit: b2 b3
SPI IN display
Description: Corresponding SPI IN command was displayed
Value: b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15
Reset Value: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
bit 0, bit4-bit7, bit12-bit15 was fixed as '0 ' according to L9958 SPI protocol shown as Figure
5, more details, please refer to L9958 Datasheet.
Configuration example
Click the button means set the bit. Unclick the button means reset the bit.
Doc ID 16058 Rev 1
www.BDTIC.com/ST
15/26
UM0759 General description
Figure 12.
SPI control area
After configured SPI menu, the configured SPI command will be displayed at "SPI Control
Data Display" area and automatically sent to L9958.
Figure 13.
SPI control data display
More information about SPI configuration protocol, please refer to L9958 datasheet.
Motor control command field
This field was purposed for controlling motor command: PWM duty-cycle, PWM Frequency, motor direction control and break control.
Figure 14.
Motor control command field
16/26
Disable/EN switch
The EN and DI input signal of L9958 to make the bridge tri-state or on-state is controlled by key, key and key.
When toggle these keys, DIR, EN and DI is automatically controlled by PC software, and the will display the status of EN, DIR, DI pins.
: more information, please refer to L9958 datasheet.
Doc ID 16058 Rev 1
www.BDTIC.com/ST
UM0759
Table 6.
Switch
EN/DI/DIR switch map
EN DI
Forward
Break
Reverse
Break
PWM duty-cycle and frequency control
● PWM Duty-cycle control
Range: [0, 100] %
Step: 1
Default: 50 %
Figure 15.
PWM duty
DIR Bit “ACT”
“1”
“0”
“1”
“0”
General description
Bridge status
On-state tri-state
On-state tri-state
● PWM frequency control
Range: [20, 30000] Hz
Step: 1
Default: 10000Hz
Figure 16.
PWM frequency control
To adjust PWM control bars will change the duty-cycle and frequency of L9958's PWM input signal. But if the motor was freewheeling, the action clicking the control roll didn't change the current status, PWM duty-cycle unchanged.
Doc ID 16058 Rev 1
www.BDTIC.com/ST
17/26
General description UM0759
Reverse key
The key only works at CLICKED (Rising edge), that is to say the un-clicked action (fall edge) didn't change the direction status. When the "Reverse Key" was clicked, the DIR input signal of L9958 becomes LOW.
From the GUI side, when "Reverse Key" was clicked, the "BREAK" or "Forward Key" was reset, and the motor display field was shown as below:
Figure 17.
Reverse direction of motor control
Forward key
The key only works at CLICKED (Rising edge), that is to say the un-clicked action (fall edge) didn't change the direction status. When the "Forward Key" was clicked, the DIR input signal of L9958 becomes HIGH.
From the GUI side, when "Forward Key" was clicked, the "BREAK" or "Reverse Key" was reset, and the motor display field was shown as below:
Figure 18.
Forward direction of motor control
18/26 Doc ID 16058 Rev 1
www.BDTIC.com/ST
UM0759 General description
BREAK key
The key only works at CLICKED (Rising edge), that is to say the un-clicked action (fall edge) didn't change the direction status. When the "BREAK" was clicked, the duty-cycle of L9958
PWM was 0%, PWM=0, the status of bridge was freewheeling Low (as
above).
From the GUI side, when "BREAK" was clicked, the "Reverse Key" or "Forward Key" was reset, and the motor display field was shown as below:
Figure 19.
Freewheeling direction of motor control
“Diagnostic reset" button
The action clicked the "Diagnostic Reset" button ( ) will only reset SPI
Menu field and SPI Diagnosis Indication field to the default value shown as Figure 3.
"Reset ST10" button
The action clicked the "Reset ST10" button (
ST10 DIO, SPI and CC.
) will soft reset ST10 and configure
Function configuration field
The function configuration field consists of four parts: Port Configuration, Rx Error, Exit button, Continue Diagnosis switch, as shown below:
Figure 20.
Function configure field
Doc ID 16058 Rev 1
www.BDTIC.com/ST
19/26
General description UM0759
Port configuration
Com port (
PC.
) can be changed by user, according the used COM port number of
After modified the com port number, user must click the reset key configure the ST10 evaluation board.
Port number: (COM Number - 1)
Baud rate: 38400 (default)
to reset and
Figure 21.
COM number map on PC
Example: For COM1: "0" port number should be selected (
For COM3: "2" port number should be selected ( )
)
If the port configuration failed, when select , happened:
●
●
Notes: when this error appeared, please do below actions:
Configure the Port number correctly
Clicked the "Reset ST10" button to reset the L9958 GUI and ST10 configuration
The Rx error turned red (
●
●
●
Receive timeout
Receive error
Received frame incorrect
The "Exit" button (
) indicate below receive error:
) was only used to stop and exit the L9958 GUI.
If the "Continue Diagnosis" was clicked ( ), the L9958 GUI enters automatic diagnosis mode, the current SPI menu configuration will be sent to L9958 continuously to do the continuous diagnosis. When continuous diagnosis was selected, "SPI send" also works.
20/26 Doc ID 16058 Rev 1
www.BDTIC.com/ST
UM0759 General description
This field will indicate the diagnosis status. SPI diagnosis word will displayed at SPI
Diagnosis Indication field. The diagnostic protocol was referred below:
Table 7.
SPI diagnostic protocol
Bit
8
9
10
11
12
13
14
15-MSB
6
7
4
5
0-LSB
1
2
3
Name
OL_OFF
OL_ON
VS_UV
VDD_OV
ILIM
TWARN
TSD
ACT
OC_LS1
OC_LS2
OC_HS1
OC_HS2
Null
Null
SGND_OFF
SBAT_OFF
Description
Open load in OFF condition
Open load in ON condition
Vs undervoltage
Vdd overvoltage
Current limitation reached
Temperature warning
Over-temperature shutdown
Bridge enable
Over-current on low side 1
Over-current on low side 2
Over-current on high side 1
Over-current on high side 2
Not used
Not used
Short to GND in OFF condition
Short to battery in OFF condition
Status after reset
0
0
–
–
0
0
0
0
0
1
0
0
0
0
0
0
Figure 22.
SPI diagnostic information
For more diagnostic information, Please refer to L9958 datasheet in detail.
Doc ID 16058 Rev 1
www.BDTIC.com/ST
21/26
General description
PWM control signal settings:
Figure 23.
PWM settings for motor control
●
Motor Control
→ Forward Control:
Figure 24.
The wave form of motor forward control
UM0759
● Motor Control
→ Reverse Control:
Figure 25.
The wave form of motor reverse control
22/26 Doc ID 16058 Rev 1
www.BDTIC.com/ST
UM0759
Table 8.
Item
Partly diagnostic testing result
Operation
SPI status register bit
Open Load In
OFF Condition
Open load BIT 0
Open Load In
ON Condition
& turn on the OUT1,2
Vs Under
Voltage
Current
Limitation
Reached
Vbat<3.6V
Short circuit
Bridge Enable Turn on OUT1,2
High-Side 1
Over Current
DIR=1,EN=1,DI=0,PWM=1
CONNECT OUT1 to GND
Low-Side 2
Over Current
High-Side 2
Over Current
DIR=1,EN=1,DI=0,PWM=1
CONNECT OUT2 to Vbatt
DIR=0,EN=1,DI=0,PWM=1
CONNECT OUT2 to GND
Low-Side 1
Over Current
DIR=0,EN=1,DI=0,PWM=1
CONNECT OUT1 to Vbatt
Connect OUT1 to GND Short To GND in OFF
Condition
Connect OUT2 to GND
Short To Battery in OFF
Condition
Connect OUT1 to Vbat
Connect OUT2 to Vbat
BIT 1
BIT 2
BIT 4
BIT 7
BIT9
BIT8
BIT11
BIT10
BIT14
BIT15
General description
Diagnostic information Result
pass pass pass pass pass pass pass pass pass pass pass
Doc ID 16058 Rev 1
www.BDTIC.com/ST
23/26
UM0759
Appendix A
CPU Frequency: 64 MHz
1.
ASC
For ST10F276, ASC0 can be initialized;
Baud Rate: 38400, 8 bit data asynchronous, 1 stop bit,
2. SSC
Frequency: 1 MHz, 16 bit Data-Width, LSB first, Low level at idle, transmit at rising edge
/CS line: 2.3
Pin connection between ST10F27x evaluation board and L9958 demonstration board.
Table 9.
Function
ST10F276 pin out for L9958 board
Name GPIO PIN
EN/DI
Direction control
SPI signals
UART signals
SCK
SI
SO
TxD1
RxD1
TxD0
RxD0
DI
EN
DIR
PWM
/CS
P2.0
P2.1
P2.2
P7.0
P2.3
P3.13
P3.9
P3.8
P8.7
P8.6
P3.10
P3.11
Pin 47 - GPIO
Pin 48 – GPIO
Pin 49 – GPIO
Pin 19 – POUT0
Pin 50 – GPIO
Pin 80- SCLK0
Pin 76-MTSR0
Pin 75-MRST0
Pin 16-TxD1
Pin 15-RxD1
Pin 77-TxD0
Pin 78-RxD0
1.
F276_SH is the board made by ShangHai BPT&S Lab APG China (ST10F27X EVA v1.0).
F27x_SH
(1)
D25
C26
D26
B21
A21
C11
D11
C17
D17
C18
A22
D18
24/26 Doc ID 16058 Rev 1
www.BDTIC.com/ST
UM0759
Table 10.
Document revision history
Date Revision
28-Jul-2009 1 Initial release.
Changes
Revision history
Doc ID 16058 Rev 1
www.BDTIC.com/ST
25/26
UM0759
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING
APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY,
DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.
© 2009 STMicroelectronics - All rights reserved
STMicroelectronics group of companies
Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan -
Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America
www.st.com
26/26 Doc ID 16058 Rev 1
www.BDTIC.com/ST
Скачать
Реклама