AN1794
Application note
PractiSPIN evaluation system
configuration and set up guide
Introduction
PractiSPIN is an evaluation and demonstration system that can be used with several
STMicroelectronics motor driver integrated circuit devices. The system consists of a
Graphical User Interface (GUI) program which runs on an IBM-PC under windows, a
common ST7 based interface board that communicates with the PC and the practiSPIN
software via a serial COMM port, and a device specific evaluation or target board that
connects to the ST7 interface board via a standard 34 pin ribbon cable interface, as shown
in
Figure 1.
The target PCB connects to the motor or motors and to a user supplied DC
power supply generally in the range of 12 to 48 Vdc.
The practiSPIN system is designed to operate the device being evaluated (the target device)
under control of the practiSPIN software. Depending on which target device is being used,
the practiSPIN software can operate the device to drive a stepper motor, 1 or 2 DC motors
or a brushless DC (BLDC) motor.
Figure 1.
System block diagram
January 2008
Rev 2
1/34
www.st.com
Contents
AN1794
Contents
1
System overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1
1.2
Target board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Control interface board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2
3
Starting practiSPIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Stepper motor drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.1
3.2
Constant speed mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Indexing mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4
DC motor drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.1
Dual DC motor control mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
5
BLDC motor drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
5.1
BLDC motor control mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
6
EVAL6205N board configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
6.1
6.2
Vref offset adjustment (R18) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Current scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
7
EVAL6206N board configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
7.1
7.2
Vref offset adjustment (R18) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Current scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
8
EVAL6206PD board configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
8.1
8.2
Vref offset adjustment (R18) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Current scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
9
EVAL6207N board configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
9.1
9.2
Vref offset adjustment (R18) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Current scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
10
EVAL6208N board configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
10.1
Vref offset adjustment (R18) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2/34
AN1794
Contents
10.2
Current scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
11
EVAL6208PD board configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
11.1
11.2
Vref offset adjustment (R18) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Current scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
12
EVAL6235 board configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
12.1
12.2
Vref offset adjustment (R18) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Current scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
13
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
3/34
List of figures
AN1794
List of figures
Figure 1.
Figure 2.
Figure 3.
Figure 4.
Figure 5.
Figure 6.
Figure 7.
Figure 8.
Figure 9.
System block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
ST7 interface board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
EVAL6205N schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
EVAL6206 schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
EVAL6206PD schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
EVAL6207N schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
EVAL6208N schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
EVAL6208PD schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
EVAL6235 schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
4/34
AN1794
System overview
1
System overview
To illustrate the operation of the practiSPIN system, we will look at one typical device
supported by the system.
The L6207 includes two independent full or H bridges with separate logic inputs and current
control functions.
The two bridges are designated A and B and their output pins designated as OUT1A,
OUT2A, OUT1B, and OUT2B. These outputs are controlled independently by logic inputs
IN1A, IN2A, IN1B, and IN2B respectively.
A logic high or low on any of these inputs will drive its corresponding output to the positive
supply rail or to ground. Both of the A outputs will be forced to an off (high impedance) state
if the ENA pin is taken logic low, as will the B outputs if ENB is taken low. The L6207 is thus
controlled by six logic inputs: IN1A, IN2A, and ENA controlling bridge A and IN1B, IN2B, and
ENB controlling bridge B. Each bridge also has an analog control signal, VREFA and
VREFB, which control the current.
1.1
Target board
The L6207 target board gives access to the bridge A and B outputs at connectors CN3 and
CN4 respectively.
When driving a stepper motor, the two wires from one of the motor windings will connect to
CN3 and the other winding will connect to CN4. Swapping between the two connectors or
swapping the polarity at a given connector will only reverse the sense of motor direction. DC
supply power in the range of 12 to 48 Vdc is connected at CN1. The polarity marked on the
board silkscreen must be strictly observed! The eight control signals are taken from the 34-
pin ribbon header (CN5) and are driven by the control interface PCB via a short flat cable.
1.2
Control interface board
The control interface PCB is based on an ST72F264 microcontroller. The micro includes a
UART and communicates with the practiSPIN software via 9 pin D connector P1 employing
a standard RS232 interface.
The micro is based on flash memory and its firmware includes a write protected boot-loader
routine that allows the practiSPIN software to update or change the operating program in the
ST7 as required for different target boards. 5 Vdc power for the board is received via the 34-
pin ribbon cable from the target board or can be directly supplied at J2 if jumper WJ1 is
removed. The eight control signals for the target board are generated by the ST7 micro. The
six logic signals are generated directly by six of the eight pins of port B while the two analog
current references (VREFA and VREFB) are generated by pulse width modulated (PWM)
signals generated by the ST7 along with an offset adjusting circuit controlled by
potentiometer R18.
5/34