L6238 [STMICROELECTRONICS]

SENSORLESS SPINDLE MOTOR CONTROLLER; 传感器主轴电机控制器
L6238
型号: L6238
厂家: ST    ST
描述:

SENSORLESS SPINDLE MOTOR CONTROLLER
传感器主轴电机控制器

传感器 电动机控制 电机 控制器
文件: 总35页 (文件大小:402K)
中文:  中文翻译
下载:  下载PDF数据表文档文件
L6238  
SENSORLESS SPINDLE MOTOR CONTROLLER  
PRODUCT PREVIEW  
2.5A, THREE-PHASE OUTPUT DRIVE  
PRECISION DIGITAL PLL  
FULLY-INTEGRATED ALIGN + GO  
START-UP ALGORITHM  
DIGITAL BEMF PROCESSING  
MASTER/SLAVE SYNCHRONIZATION  
BIDIRECTIONAL SERIAL PORT  
STAND ALONE OR EXT. DRIVER  
SHOOT-THROUGH PROTECTION  
PLCC44  
ORDERING NUMBER: L6238  
DESCRIPTION  
rithms.  
The L6238 is a complete Three-Phase, D.C.  
Brushless Spindle Motor Driver system. The de-  
vice features both the Power and Control Sec-  
tions and will operate Stand Alone, or can be  
used in Higher Power Applications with the addi-  
tion of an externalLinear Driver.  
A Digital PLL provides high accuracy and the ca-  
pability to do Master/Slave Synchronization for  
Disk Array configurations.  
Programmable functions include commutation  
Timing Adjustment and Slew Rate Control for  
peak efficiency and minimum noise.  
Protective features include Stuck Rotor\Backward  
Rotation Detection and Automatic Thermal Shut-  
down.  
Start-Up can be achieved with the Fully-Inte-  
grated Align + GO Algorithm or may be se-  
quenced manually for User-Defined start-up algo-  
BLOCK DIAGRAM  
1/35  
June 1993  
This is advanced information on a new product now in development or undergoing evaluation. Details are subject to change without notice.  
L6238  
ABSOLUTE MAXIMUM RATINGS  
Symbol  
Parameter  
Value  
Unit  
V
BVdss  
VPower  
VLogic  
VAnalog  
Vin  
Output Brakdown Voltage  
Motor Supply Voltage  
Logic Supply Voltage  
Analog Supply Voltage  
Input Voltage  
17  
15  
V
7
V
15  
V
-0.3 to 7  
V
Imdc  
Peak Motor Current (DC)  
3
A
Impk  
Peak Motor Current (Pulsed: Ton = 5ms, d.c. = 10%)  
Power Dissipation at Tamb = 50°C  
5
A
Ptot  
2.5  
W
°C  
Ts  
Storage and Junction Temperature  
-40 to 150  
PIN CONNECTION (Top view)  
THERMAL DATA  
Symbol  
Parameter  
Value  
7
Unit  
°C/W  
°C/W  
°C/W  
Rth (j-pin)  
Rth (j-amb)  
Rth (j-amb)  
Thermal Resistance Junction-Pin  
Thermal Resistance Junction-Ambient (Float.)  
Thermal Resistance  
68  
34  
2/35  
L6238  
In this configuration, the internal DMOS drivers  
are sequenced in full conduction state and the  
external PFET is the linear control element. An  
internal inverting buffer from the output of the  
OTA controls the conductionof the EXT PFET.  
An internal Virtual Center Tap is used if the  
motor center tap is not connected.  
The motor Current Limit can be set by an ex-  
ternal resistor divider.  
A Serial Port is included so that I/O can be  
done with a minimum of pins. Key control and  
status lines are also bonded out to achieve a  
Minimum Configuration without using the Serial  
Port.  
Programmable Functions include Phase  
Switch Timing Optimization for motor effi-  
ciency, Speed Lock Threshold, Auto-Start or  
mP Supervised Spinup, and output current lim-  
iting gain.  
Energy Recovery Mode for Head Retraction,  
followedby Dynamic Braking Mode.  
GENERAL DESCRIPTION  
The L6238 is an integrated circuit that will be  
used to commutate and speed control a 3-Phase,  
8-pole, brushless, DC motor. The primary applica-  
tion is for disk drive spindle motors. This I.C. has  
the following features:  
No Motor Hall Effect Sensors are required for  
commutation or speed control. Timing informa-  
tion is determined from the Bemf voltage of the  
undriven motor terminal.  
On-board Speed Control via a Phase Locked  
Loop that accepts a once-per-rev reference  
frequency and locks the motor to that fre-  
quency. The L6238 can accomodate a wide  
range of speeds.  
The L6238 achieves Spindle Synchronization  
by locking to a once-per-rev reference that is  
common to multiple drives. The L6238 has a  
multiplexer that enhances the versatility of the  
controller. This first multiplexer selects either  
internal feedback, (generated by the Bemf of  
the motor), or external feedback (embedded  
index).  
Logic signals are CMOS Compatible.  
Stuck Rotor and Backward Rotation detection.  
Automatic Thermal Shutdown with early warn-  
ing bit available in the status register  
An External P-Channel FET can be connected  
to the FET can be connected to the FET  
Bridge for Higher Power Applications.  
PIN FUNCTIONS  
N.  
1
Name  
OUTPUT B  
SPIN SENSE  
BRAKE DELAY  
Rsense  
I/O  
I/O  
O
I
Function  
DMOS HalfBridge Output and Input B for Bemf sensing.  
2
Toggless at each Zero Crossing of the Bemf.  
Energy Recovery time constant, defined by external R-C to ground.  
Outputs A+B connections for the Motor Current Sense Resistor to ground  
Negative Terminal of Pump Capacitor.  
3
4
O
I
5
CHARGE PUMP 2  
GROUND  
6, 7,  
I
Ground terminals.  
17, 29,  
39, 40  
8
9
CHARGE PUMP 1  
CHARGE PUMP 3  
OUTPUT A  
Vpower  
I
Positive terminal of Pump Capacitor.  
Positive terminal of Storage Capacitor.  
DMOS HalfBridge Output and Input A for Bemf sensing.  
Supplies the voltage for the Power Section.  
12V supply.  
I
10  
I/O  
11, 42  
12  
I
I
I
Vanalog  
13  
SER PORT  
DISABLE  
Input for tri-stating the serial port.  
14  
15  
16  
18  
19  
SER DATA R/W  
SER STROBE  
SER PORT CLK  
SER DATA I/O  
EXT/INT  
I
Selects Serial Data Read or Write Function.  
Dtat Strobe Input.  
I
I
Clock for Serial Data Control.  
I/O  
I
Data stream Input/Output for Control/Status Registers.  
Selects thr Internal BEMF Zero Crossing or an External Source as Feedback  
Frequency for te PLL.  
20  
21  
22  
FREF ENABLE  
LINEAR  
I
I
I
A zero on this pin passes the PLL Fref signal to the Freq/phase detector.  
This input should be grounded or left unconnected.  
OUTPUT  
ENABLE  
Tristates Power Output Stage when a logic zero.  
3/35  
L6238  
PIN FUNCTIONS (continued)  
N.  
Name  
I/O  
Function  
23  
RUN/BRAKE  
I
Rising edge will initiate start-up. A Braking rountine is started when this input is  
brought low.  
24  
25  
26  
27  
28  
30  
31  
32  
33  
34  
35  
36  
37  
SEQ INCREMENT  
SYSTEM CLK  
EXT INDEX  
PLL Fref  
I
I
A low to high transition on this pin increments the Output State Sequencer.  
Clock Frequency for the system timer/counters.  
External Source of Feedback for the PLL.  
Reference Frequency for the PLL.  
I
I
LOCK  
O
I
High when the PLL is phase_locked.  
Vlogic  
Logic power supply.  
DETECTOR OUT  
FILTER IN  
FILTER COMP  
CSA INPUT  
Rsense  
O
I
Output of Frequency/Phase Detector.  
Filter Input.  
O
I
Filter output and compensation.  
Input to the Current Sense Amplifier.  
O
I/O  
I
Output C connection for the Motor Current Sense Resistor to ground.  
DMOS HalfBridge Output and Input C for Bemf sensing.  
OUTPUT C  
gm COMP  
A series RC network to ground that defines the compensation of the  
Transconductance Loop.  
38  
41  
43  
GATE DRIVE  
I LIMIT SET  
I/O  
Drives the Gate of the External P Channel DMOS Driver for Higher Power  
Applications. This pin must be grounded if an external driver is not used.  
I
I
A voltage applied to this pin, in conjunction with the value for the external  
Motor Current Sensing resistor, defines the maximum Motor Current.  
CENTER TAP  
Motor Center Tap used for differential BEMF sensing. If the center tap of the  
Motor is not brought out, a virtual center tap is integrated and available at this  
pin.  
44  
SLEW RATE  
I
A resistor connected to this pin sets the Voltage Slew Rate of the Output  
Drivers.  
ELECTRICAL CHARACTERISTICS (Refer to the test circuit, unless otherwise specified.)  
Symbol  
Parameter  
Test Condition  
Min.  
Typ.  
Max.  
Unit  
POWER SECTION  
VPower  
Motor Supply  
10.5  
12  
13.5  
V
RDS(on)  
Output ON Resistance  
Tj = 25°C  
Tj = 125°C  
0.25  
0.33  
0.50  
Io(leak)  
VF  
Output Leakage Current  
Body Diode Forward Drop  
Output Slew Rate  
1
mA  
V
Im = 2.0A  
1.5  
dVo/dt  
Im(max)  
Rslew = 100K  
Rs = 0.33Ω  
0.30  
V/µs  
Motor Current Limit (Note 1)  
I
I
lim Gain = 0  
lim Gain = 1  
TBD  
TBD  
0.75  
0.38  
TBD  
TBD  
A/V  
A/V  
Igt  
Gate Drive for Ext. Power  
DMOS  
ILIMSET = 5V  
lim Gain = 0  
V33 = 0V, V38 = 5V  
5
mA  
I
Tsd  
Shut Down Temperature  
150  
180  
°C  
°C  
Thys  
Recovery Temperature  
Hysteresis  
30  
Tew  
Early Warning Temperature  
Tsd-25  
°C  
µA  
Isnsin  
Current Sense Amp Input Bias  
Current  
10  
GV  
Current Sense Amp Voltage  
Gain  
3.8  
4
4.2  
V/V  
ZinCT  
Center Tap Input Impedance  
30  
KΩ  
4/35  
L6238  
ELECTRICAL CHARACTERISTICS (Continued)  
Symbol  
Parameter  
Test Condition  
Min.  
Typ.  
Max.  
Unit  
LOGIC SECTION  
VinH  
VinL  
Input Voltage  
TBD  
V
V
TBD  
1
IinH  
IinL  
Input Current  
µA  
mA  
–1  
VoutL  
VoutH  
Output Voltage  
Vsink = 2mA  
source = 2mA  
0.5  
12  
V
V
V
4.5  
8
Fsys  
ton  
System Clock Frequency  
Clock ON Time  
MHz  
ns  
20  
20  
toff  
Clock OFF Time  
ns  
SEQUENCE INCREMENT  
tseq Time Between Rising Edges  
SERIAL PORT TIMING Note: Cload(data I/O) = 50pF;  
1
µs  
Fshift  
tos  
Clock Frequency  
2
TBD  
MHz  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
Operating Set-up Time  
Enabling Settling Time  
Strobe Pulse Width  
50  
50  
tsettle  
tstrobe  
twait  
tds  
40  
Disable Wait Time  
40  
Data Setup Time  
100  
10  
tdh  
Data Hold Time  
tsd  
Strobe to Data Prop. Delay  
Clock to Data Prop. Delay  
Data I/OActivation Delay  
Data I/OTri State Delay  
Write to Read Set-up Time  
(*)  
(*)  
(*)  
100  
100  
100  
80  
tcd  
tsd  
ttsd  
twrs  
tscr  
50  
Strobe to Clock Time  
(Read Mode)  
50  
tcsw  
Clock to Strobe Time  
(Write Mode)  
50  
ns  
PHASE LOCK LOOP SECTION  
Tphse Static Phase Error  
BRAKE DELAY SECTION  
Vchrg Capacitor Charge Voltage  
Iout3  
20  
µs  
RT = 50K  
TBD  
0.5  
9.5  
1.8  
TBD  
TBD  
V
mA  
V
Source Current  
VThres  
Delay Timer Low Trip Threshold  
TBD  
CHARGE PUMP  
Vout9  
Storage Capacitor Output  
20  
V
Voltage  
Vleak  
Fcp  
Blocking Diode Leakage Current  
Charge Pump Frequency  
10  
µA  
300  
KHz  
(*) These parameters are a function of Cload  
.
5/35  
L6238  
conjunction with the L6243 Voice Coil Driver as  
shown in Fig. 1. This configuration requires a  
minimum amount of external components while  
providing complete stand-alone operation.  
FUNCTIONAL DESCRIPTION  
1.0 INTRODUCTION  
1.1 Typical Application  
In a typical application, the L6238 will operate in  
Figure 1: Stand Alone Configuration  
6/35  
L6238  
1.2 Input Default States  
Figure 3: Input Logic  
Figure 2: InputStructures  
signals. Although not shown, SEQUENCE IN-  
CREMENT and Sequence Increment also form  
an OR function, with the resultant output signal  
called Sequence Increment.  
FUNCTION  
CONFIGURATION  
PORT DIS  
STROBE  
PORT CLK  
R/W  
PULL-UP  
PULL-DOWN  
PULL-UP  
PULL-UP  
DATA I/O  
EXT/INT  
FREF ENABLE  
LIN  
OUTPUT ENABLE  
RUN/BRAKE  
SEQ INCR  
SYS CLOCK  
EXT INDEX  
PLL FREF  
PULL-UP  
1.4 Modes of Operation  
There are 5 basic modes of operation.  
1) Tristate  
When Output Enable is low, the output power  
drivers are tristated.  
PULL-DOWN  
PULL-DOWN  
PULL-DOWN  
PULL-DOWN  
PULL-UP  
PULL-DOWN  
PULL-UP  
PULL-UP  
PULL-UP  
2) Start-Up  
With Output Enable high, bringing Run/Brake  
from a low to a high will energize the motor and  
the system will be driven by the Fully-Integrated  
StartUp Algorithm. A user-defined Start-Up Algo-  
rithm, under control of a MicroProcessor, can be  
achieved via a serial port and/or external control  
pins.  
Figure 2 depicts the two possible input structures  
for the logic inputs. If a particular pin is not used  
in an application, it may either be connected to  
ground or VLOGIC as required, or simply left un-  
connected. If no connection is made, the pin is  
either pulled high or low by internal constant cur-  
rent generatorsas shown  
3) Run  
Identified by the Lock signal, Run mode is  
achieved when the motor speed (controlled by the  
Internal PLL) reaches the nominal speed within a  
predefinedphase error.  
4) Park  
A listing of the logic inputs is shown with the cor-  
respondingdefault state.  
When Run/Brake is brought low, energy to park  
the heads may be derived from the rectified Bemf.  
The energy recovery time is a function of the  
Brake Delay Time Constant. In this state, the qui-  
escent current of the device is minimized (sleep  
mode).  
1.3 Naming Convention  
In order to differentiatebetween the various types  
of control and status signals, the following naming  
conventionis used.  
5) Brake  
BOLD CAPITALS - Device pins.  
Italics - Serial port control and status signals.  
After the Energy Recovery Time-Out, the device  
is in Brake, with all lower Drivers in full conduc-  
tion.  
Three input signals form a special case. Referring  
to figure 3, the RUN/BRAKE input pin and the  
Run/Brake control signal form a logical AND func-  
tion, while OUTPUT ENABLE and Output Enable  
form an OR function. The outputs signal names,  
in Bold Lower case labeled Run/Brake and Out-  
put Enable will be used when referring to these  
During a powerdown, the Park Mode is triggered,  
followedby a Dynamic Brake.  
There are two mutually exclusive conditions  
which may be present during the Tristate Mode  
(wake up):  
7/35  
L6238  
a)the spindle is stopped.  
the Bemf zero crossing frequency)  
b)the system is still running at a speed that  
allows for resynchronization.  
enable the power to the motor based on the  
previous information. Otherwise the uP may is-  
sue a Brake command, followed by the start-  
up procedure after the motor has stopped spin-  
ning.  
In order to minimize the ramp up time, the micro-  
controller has the possibility to:  
check the SPIN SENSE pin, (which toggles at  
Figure 4: State Diagram  
RunBrk = 0  
OutEna = 0  
SeqInc = X  
Auto Start-up  
Brake  
W/Mask  
Enabled  
Disabled  
From Anywhere  
Action across  
line increments  
sequencer  
Auto/Ext = 0  
Hold for  
”Align & Go”  
RunBrk = 0  
&
RunBrk = 1  
OutEna = 0  
OutEna = 0  
SeqInc = 0  
SeqInc = 1  
Power  
on  
Reset  
Hold & wait  
for decision  
Tri-state  
W/Mask  
Tri-state  
W/Mask  
RunBrk = 1  
OutEna = 0  
RunBrk = 1  
OutEna = 1  
SeqInc = 0  
SeqInc = 1  
Run  
W/Mask  
Run  
Wo/Mask  
OutEna = 1  
&
RunBrk = 1  
RunBrk = 1  
OutEna = 1  
1
=
k
r
0
B
=
n
u
a
u
n
R
OutEna = 1  
&
RunBrk = 0  
E
t
O
Hold  
for  
”Resync”  
Stuck  
Rotor  
(hold)  
Hold for  
Align & Go”  
A
l
i
g
c
n
Z
=
o
0
N
StrRtr = 0  
Start  
Align & Go”  
Start  
”Resync”  
G
o
c
=
Z
o
0
N
Resync = 1  
Release  
min mask  
Align =  
Seqncr.  
StrRtr = 0  
(
G
e
Z
t
2
c
R
n
1
d
e
Z
s
=
o
e
c
t
)
=
G
Run  
8/35  
L6238  
2.0 STATE DIAGRAMS  
2.1 State Diagram  
Figure 4 is a complete State Diagram of the con-  
troller depicting the operational flow as a function  
of the control pins and motor status. The flow can  
be separatedinto four distinct operations.  
2.2 Align + Go  
Figure 5 represent the normal flow that will  
achieve a spin-up and phase lock of the spindle  
motor. Upon power up, the controller first checks  
to determine if the motor is still spinning. This  
”Hold For Resync” decision block will be dis-  
cussed later.  
Figure 5: Align+Go  
RunBrk = 1  
OutEna = 0  
RunBrk = 0  
Power  
on  
Reset  
Hold  
for  
”Resync”  
Hold & wait  
for decision  
RunBrk = 1  
OutEna = 0  
&
RunBrk = 0  
Hold for  
”Align & Go”  
A
l
i
g
n
=
0
Start  
”Align & Go”  
G
o
=
0
Align =  
Seqncr.  
Run  
9/35  
L6238  
Assuming the motor is stationary, with Output  
Enable high and Run/Brake low, the controller is  
in the ”Hold for Align & GO” state. When  
Run/Brake is brought high, the motor is in align  
mode with Phase 1 active (Output A high and  
Output B low). Align is a zero. After the align  
time-out (user-programmable), the Align bit goes  
high and the sequencer double increments the  
outputs to Phase 3 (Output B high and Output C  
low). After the next time-out, the controller enters  
the Go mode, with the sequencer automatically  
incrementing the output phase upon detection of  
the motor’s Bemf.  
2.3 Resynchronization  
If power is momentarily lost, the sequencer can  
automatically resynchronize to the monitored  
Bemf. This resychronization can either occur  
whenever Output Enable is first brought low then  
high or if the Logic Supply is momentarilylost.  
Referring to figure 6, the ”Hold for Resync” state  
is entered upon POR (Power On Reset) or when-  
ever Output Enable is brought low. The control-  
ler leaves this state and enters ”Start Resync”  
when Output Enable is high.  
Never command an Align & Go unless a refer-  
ence signal is present at PLL FREF, since this  
is the signal that determines the length of time  
that phase 1 remains active.  
If Run/Brake is brought low, (or if the 5V supply  
is removed) the controller will revert to ”Hold for  
Align & GO” and the serial port will be reinitial-  
ized. In order to prevent an erroneous restart con-  
dition, it is necessary that Run/Brake be held low  
until the motor has completely stopped. Once the  
motor has stopped, Run/Brake may be brought  
high for a completeAlign & Go Start-Up routine.  
If zero crossings are detected, the sequencer will  
automatically lock on to the proper phase and  
bring the motor speed up to Phase Lock.  
This resynchronization will take effect with the  
motor speed running as low as typically 30% of  
it’s nominal value.  
Never command an Align & Go while the mo-  
tor is spinning. Always initiate a resync first  
or initiate brake mode and allow the motor to  
spin down.  
Figure 6: Resync.  
Power  
on  
Reset  
1
=
k
r
0
B
=
n
a
u
n
R
E
t
u
O
Hold  
for  
”Resync”  
c
Z
o
N
Start  
”Resync”  
c
Z
o
N
Resync=1  
Release  
min mask  
Run  
10/35  
L6238  
2.4 Stuck Rotor/Monotonicity  
2. Mono  
Refer to figure 7. In order to alert the microproc-  
essor of fault conditions, two bits are available in  
the Serial Port’s Status Register.  
When the motor spins up normally, the resultant  
S P IN SENSE pulses rise in frequency in a  
monotonic pattern. Any fault condition that would  
cause a rapid decrease in the SPIN SENSE fre-  
quency would be detected by internal counters  
setting the MONO bit low and forcing a Brake  
condition  
1. Stuck Rotor  
If the controllerenters the Go mode after the Dou-  
ble Align, Bemf must be detected within 419ms  
when using a system clock frequency of 10MHz.  
If this condition is not met, the outputs will be tris-  
tated and set this bit to a zero. The controller en-  
ters the ”Stuck Rotor Hold” state.  
2.5 External Sequencing  
Although the user-defined Start-Up Algorithm is  
flexible and will consistently spin up a motor with  
minimum external interaction, the possibility ex-  
ists where certain applications might require com-  
plete microprocessor control of start-up.  
Figure 7: Stuck Rotor/Monotonicity.  
OutEna = 1  
&
The L6238 offers this capability via the SE-  
QUENCE INCREMENT input. Referring to figure  
9, with Output Enable and Run/Brake low, the  
controller is in the ”Hold and Wait for Decision”  
state. If the SEQUENCE INCREMENT pin is  
brought high during this state, the Auto StartUp  
Algorithm is disabled and the sequencer can be  
controlled externally.  
RunBrk = 1  
Stuck  
Rotor  
(hold)  
When Output Enable and Run/Brake are  
brought high, the sequencer is incremented every  
time that the SEQUENCER INCREMENT pin is  
first brought low and then high. During the time  
that this pin is high, all Bemf information is  
Run  
Figure 8: Ext. Sequence.  
RunBrk = 0  
OutEna = 0  
SeqInc = X  
Auto Start-up  
Brake  
W/Mask  
Enabled  
Disabled  
Action across  
line increments  
sequencer  
Power  
on  
Reset  
OutEna = 0  
&
RunBrk = 0  
RunBrk = 1  
OutEna = 0  
SeqInc = 0  
SeqInc = 1  
Hold & wait  
for decision  
Tri-state  
W/Mask  
Tri-state  
W/Mask  
RunBrk = 1  
OutEna = 0  
RunBrk = 1  
OutEna = 1  
1
=
a
k
n
r
B
0
n
u
=
u
R
SeqInc = 0  
SeqInc = 1  
E
t
Run  
Wo/Mask  
O
Run  
W/Mask  
Hold  
for  
”Resync”  
RunBrk = 1  
OutEna = 1  
OutEna = 1  
&
Hold for  
”Align & Go”  
RunBrk = 0  
11/35  
L6238  
masked out, and when it is low, the Bemf informa-  
tion can be detected normally. When the motor  
has reached a predetermined speed, the SE-  
QUENCE INCREMENT pin can be left low and  
the L6238 Motor Control logic will take over and  
automaticallybring the motor into Phase Lock.  
board Auto-Start Algorithm can be used to control  
the start-up sequence or more sophisticated exte-  
mal start-up algorithms can be developed using  
the Serial Port and key control/sense functions  
brought out to pins.  
3.2 Auto-Start Algorithm  
3,0 START-UP ALGORITHMS  
The Serial Port Control Bit Auto/Ext (Refer to Ta-  
ble 2), controls the start-up mode. The power up  
default state is a logic high which selects the  
AutoStart Mode. When Run/Brake is low, the  
L6238 is in brake mode, and the Auto-Start Algo-  
rithm is reset. In the brake mode, all of the lower  
DMOS drivers are ON, and the upper drivers are  
OFF.  
3.1 Spin-Up Operation  
The spin operation can be separatedinto 3 parts:  
1) Open Loop Start-Up - The object is to create  
motion in the desired direction so that the Bemf  
voltages at the 3 motor terminals can provide reli-  
able information enabling a transition to closed  
loop operation.  
2) Closed Loop Start-Up - The Bemf voltage  
zerocrossings provide timing information so that  
the motor can be accelerated to steady state  
speed.  
3) Steady-State Operation - The Bemf voltage  
zero-crossings provide timing information for pre-  
cision speed control.  
The L6238 contains features that offer flexible  
control over the start-up procedure. Either the on-  
Note that Run/Brake should be brought low for a  
period exceeding the value selected for the brake  
delay time in order to initialize the brake delay cir-  
cuit.  
The Auto-Start Algorithm is based on an Align &  
Go approach and can be visualized by referring to  
Figure 9. Shown are the Output Enable and  
Run/Brake control signals, sequencer output with  
the resultant output phases, and the Align and Go  
status bits. The times labeled Tl and T2 are two  
Figure 9: Auto Start Profile  
Tasd <1>  
Tasd <0>  
Ta = T1  
T2  
Tg  
0
0
1
1
0
1
0
1
0.178 s  
0.356 s  
0.533 s  
0.711 s  
0.533 s  
1.067 s  
1.600 s  
2.133 s  
0.711 s  
1.422 s  
2.133 s  
2.844 s  
Note: PLL Reference Frequency = 90Hz  
12/35  
L6238  
delays that are 25% and 7S% respectively of the  
total delay selected by the Auto-Start Delay Con-  
trol Bits. The times labled T1 and T2 are the times  
associated wim the Align and Go status bits. Typi-  
cal delays associated with these times for a PLL  
reference frequency of 90Hz are shown in the fig-  
ure.  
Referring to figure 9, the following is the se-  
quence of events during Auto-Start:  
AlignmentPhase  
or cycle through the states at any desired rate.  
When held high, it inhibits the BEMF zero  
crossings from incrementing the internal se-  
quencer.  
SPIN SENSE This output is low until the first  
detected Bemf zero crossing occurs. It then  
toggles at each successive zero crossing. This  
signal serves as a motion detector and gives  
useful timing information as well.  
- Output Stage is energized to phase 1 with  
OUTPUT A high and OUTPUT B low for T  
seconds.  
- The intemal sequencer double increments the  
output stage to Phase 3 for T2 seconds. If  
phases 1 or 3 are high torque states, the mo-  
tor should become aligned.  
LOCK A high denotes that the phase error be-  
tween the PLL reference and the feedbacksig-  
nals is within the programmed threshold. This  
signal is updated once per revolution.  
Seq Reset This bit is used to reset the output  
stage to the first state.  
- During the alignment phase, the SEQ INCRE-  
MENT signal is ignored.  
3.4 Start Up Approaches  
Go Phase  
Align & Go Approach The Align & Go approach  
provides a very time efficient algorithm by ener-  
gizing the coils to align the rotor and stator to a  
known phase. This approach can be achieved via  
the Seq Reset, or by sequencing SEQ INCR.  
SPIN SENSE can be monitored to assure that  
motion occurred. Once ample time is given for  
alignment to occur, SEQ INCR can be double in-  
cremented, and the SPIN SENSE pin can be  
monitored to detect motion. When SEQ INCR is  
pulled low, control is transferredto the internal se-  
quencer, and the L6238 finishes the spinup op-  
eration. If no motion is detected, SEQ INCR can  
be incremented to a different phase and the proc-  
ess can be repeated. The alignment phase may  
cause backward rotation, which on the average  
will be greater than the Stepper Motor approach.  
- The internal sequencer double increments the  
output stage to State 5, whichshould produce  
torque in the desired direction.  
- with SEQ INCREMENT held low, the se-  
quencer is now controlled by the Bemf zero  
crossings, and the motor should ramp up to  
speed.  
If backward rotation is detected, a status bit in the  
serial port will be set, and the L6238 will revert to  
the brake mode.  
- If a stuck rotor condition exists, the Stuck Ro-  
tor Status bit is flagged, but no action is  
taken. If though during a stuck rotor condition,  
the time out due to the backwardsrotation oc-  
curs, the L6238 will revert back to the brake  
mode.  
The Auto-Start algorithm described earlier is an  
Align & Go approach. The main advantages of  
the integrated Auto-Startare that the uP is not in-  
volved real-time, and there are a minimum of in-  
terface pins required to the spindle control sys-  
tem.  
3.3 Externally Controlled Start-Up Algorithms  
Enhanced Start-Up Algorithms can be achieved  
by using a uProcessorto interact with the L6238’s  
control and status signals. The uProcessor needs  
to be heavily involved during Open Loop Start-Up.  
The L6238 has the ability to transition to Closed  
Loop Start-Up at very low speeds, reducing the  
uProcessor task to monitoring status rather than  
real time interaction. Thus, it is a perfect applica-  
tion for an existing uProcessor.  
Stepper Motor Approach This approach mini-  
mizes backward rotation by sequencing SEQ  
INCR at an initial rate that the rotor can follow.  
Thus, it is driven in a similar fashion to a stepper  
motor. The rate is continuallyincreased until the  
Bemf voltage is large enough to reliably use the  
zero-crossings for commutation timing. SEQ  
INCR is held low, causing control to be passed to  
the L6238’s internal sequencer as in the Align &  
Go approach.  
To allow control via an external means, the  
Auto/Ext Control Bit in the Serial Port must be set  
low. This disables the internal Auto-Start Algo-  
rithm. The following control and status signals al-  
low for very flexible algorithm development:  
SEQ_INCR A low to high transition at this input  
is used to increment the state of the power out-  
put stage. It is useful during start-up, because  
the µProcessor can cycle to any desired state,  
The Stepper Motor approach takes longer than  
the Align & Go approach because the initial com-  
mutation frequency and subsequent ramp rate  
13/35  
L6238  
Figure 10: PhaseDetector State Diagram.  
must be low enough so that the motor can follow  
without slipping. This implies that to have a reli-  
able algorithm, the initial frequency and ramp rate  
must be chosen for the worst case motor under  
worst case conditions.  
Shown in figure 10 is the classical state diagram  
for a phase detector along with waveform exam-  
ples.  
Positive phase is defined as when the reference  
falling edge occurs before the falling edge of  
Fmotor and the motor speed must be increased.  
Negative phase is just the opposite, requiring a  
slowing of the motor speed.  
4.0 DIGITAL PLL MOTOR SPEED CONTROL  
4.1 Phase Detector  
As an example, the top four waveforms in figure  
10 represent a positive phase condition. In this  
case the ”up” signal would go low since the refer-  
ence signal went low before the appearance of a  
negative transition of fmotor. The falling edge of  
fmotor causes the ”up” signal to revert back to a  
high. The period while the ”up” signal is in a low  
state is a functionof the phase difference.  
The internal Phase/Frequency Detector of the  
PLL has two inputs:  
- reference input (Fref)  
- feedbackinput (Fmtr)  
The feedback Input is multiplexed between the in-  
ternal Bemf Zero Crossing Detector and an exter-  
nally provided sync pulse (EXT INDEX)  
14/35  
L6238  
Figure 11: Logic Block Diagram.  
ently bring the motor speed ”in line” with the refer-  
ence frequency.The phase detector is initialized  
at power up to force the countersto start counting  
up.  
4.2 Counter Section  
Figure 11 is a block diagram of the counter sec-  
tion of the PLL along with the phase detector.  
The phase detector provides up and down signals  
that are used to control the direction and counting  
period of two 8 bit counters. Two counters are  
used to provide both coarse and fine phase error  
information. The coarse counter operates to bring  
the phase error into a finite window, while the fine  
counter with it’s higher resolution controls the  
phase jitter to typically5µs.  
Since there will be many more Fref. vs Fmtr fall-  
ing edges at start-up, the width of the ”up” pulse  
will be wide. The fine counter will reach it’s maxi-  
mum count and send an enable pulse to the  
coarse counter causing it to start counting. After  
127 counts, the coarse counter also reaches it’s  
maximum count. At the end of the ”up” pulse, it’s  
rising edge loads the outputs of the Coarse and  
Fine counters into corresponding latches. Thus  
the latches are updated once-per-rev with a bi-  
nary number that corresponds to the measured  
phase error. This count will be converted via a  
Digital to Analog Convertors (DAC) into a speed  
Command Voltage, which at start-up will be the  
maximum as set by the ILIM SET voltage.  
As an example, during a positive phase measure-  
ment, the counters are reset to 10000000 which  
is the middle of their measurement range corre-  
sponding to zero degrees phase error. The falling  
edge of Fref, in conjunction with the ”up” signal,  
causes the fine counter to then start counting up.  
The coarse counter is inhibited by the fine counter  
until the fine counter has reached it’s maximum  
count. The falling edge of Fmtr causes the count-  
ers to stop counting and the bits in the fine and  
course counters are then latched into their re-  
spective latches. The counters are then reset to  
10000000in anticipation of the next phase meas-  
urement.  
2) Overshoot - As the motor speed increases  
close to the reference, the coarse counter comes  
out of compliance and decreases it’s count as the  
phase difference becomes smaller. The fine  
counter then takes over when the phase is in a  
certain range. A certain amount of phase over-  
shoot will take place as the motor passes though  
zero phase difference due to the closed loop sys-  
tem response characteristics.  
The operation of the counter section during spin-  
up and phase lock can be described in three  
phases:  
This will cause the counters to count down to  
”slow” the motor down until the phase difference  
is minimal.  
1) Initial Spin-Up - At start-up the PLL will inher-  
15/35  
L6238  
Figure 12: Coarseand Fine DAC’s.  
be used to command the output driver’s current.  
In figure 12, the two 8-bit digital error signals are  
used to switch in 256 possible voltages derived  
from a precision Band-Gap reference. The same  
resistor ladder string is used for the Coarse and  
Fine DACs. The outputs of the DACS are then  
sent to buffer stages and added together via a  
summing amplifier.  
3) Phase Lock - After a brief settling time, typi-  
cally 1-2 seconds after spin-up, the counters will  
alternately count up and down as required to  
maintain the phase difference to be as close to  
minimum as possible. The counter outputs at this  
time should be ”hovering” around 10000000.  
The outputs of the two DACs are sent to latches  
that store the digital representation of the meas-  
ured phase error. This information is then bussed  
to the DACs.  
4.4 Transfer Functions  
Figure 13 represent the Output Voltage vs Phase  
Error for the Coarse and Fine DACs depicting the  
resolution that is achievable.  
4.3 Coarse/Fine DACs  
Two DACs are used to convert the digital phase  
error information into an analog voltage that can  
Table 2 shows examples of the resolution of both  
Table 2  
Fsystem  
Clock  
Phase LSB  
Coarse  
(Range)  
Coarse  
Phase LSB  
Fine  
(Range)  
Fine  
Fcoarse  
Ffine  
8MHz  
10MHz  
12MHz  
15.6KHz  
19.5KHz  
23.4KHz  
64.1µs  
51.3µs  
42.7µs  
16.3ms  
13.1ms  
10.9ms  
1.0MHz  
1.25MHz  
1.5MHz  
1.0µs  
800ns  
667ns  
255µs  
204µs  
170µs  
16/35  
L6238  
Figure 13: Coarse/FineDAC’s Output Graphs.  
DACs as a function of the system clock repetition  
rate. Fcoarse is the system clock divided by 512,  
while Ffine divides the clock by 8. This gives for  
example, Coarse and Fine LSB’s of 51.3us and  
800ns respectively for a system clock repetition  
rate of 10MHz. Therefore the best phase jitter that  
could be achieved as a function of the counter  
resolution is 800ns. The dynamic range of each  
counteris also shown in the table.  
It can be seen that the ratio of Fine to Coarse  
counts is 64. The summing amplifler divides the  
Fine DAC buffer output voltage by a factor of 16.  
Therefore there is a 4:1 ratio of Fine to Coarse  
gain.  
OUTPUT voltage as a function of the detected  
phase difference as measured on production ma-  
terial. The change of the gain slope is apparent  
around the zero phase difference point. With the  
spindle motor at phase lock, the DETECTOR  
OUTPUT voltageis typically 2.0, equivalent to the  
internal Virtual Ground level.  
Figure 14: Vdetector Output vs Phase Error.  
This results in a Speed Control Loop that is fairly  
easy to compensate with excellent transient re-  
sponse.  
The output of the PLL Detector is fed to a gener-  
al purpose. filter amplifier that is used to compen-  
sate the Speed Control Loop. The filter amplifier  
output stage has been carefully designed to limit  
the compliance voltage to a value that tracks the  
Ilim Set voltage, thus limiting the amount of over-  
shoot and enhancing the transient response of  
the loop.  
4.5 PLL Detector Output  
Figure 14 is a graph of the typical DETECTOR  
17/35  
L6238  
phase, output C is floating, and the Bemf is moni-  
tored. The outputs remain in this state for 60 elec-  
trical degrees as indicated by the first set of  
dashed lines. After this period the output switches  
to phase 2 with output A high and C low with the  
Bemf amplifier monitoring output B.  
5.O MOTOR DRIVER  
5.1 Output Stage  
The output stage forms a 3-phase, full wave  
bridge consisting of six Power DMOS FETs capa-  
ble of 2.5 amps. Higher output currents are al-  
lowed for brief periods. Output Power exceeding  
the stand-alone power dissipation capabilities of  
the L6238 can be increased with the addition of  
an externalP-FET.  
Table 3 is a reference diagram that lists the pa-  
rameters associated with 8-pole motors operating  
at 3600 and 5400 RPM.  
In order to prevent commutation current noise be-  
ing detected as a false zero crossing, a masking  
circuit automatically blanks out all incoming sig-  
nals as soon as a zero crossing is detected.  
When the next commutation occurs an internal  
counter starts counting down to set the time that  
the masking pulse remains The counter is initially  
loaded with a number that is equal to period that  
is always 25% of the previous phase period or 15  
electrical degrees. This time-out of the masking  
pulse shown for reference at the bottom of figure  
16. Thus the actual masking period is the total of  
the time from the detected zero crossing to the  
commutation, plus 25% of the previous period.  
The mask pulse operation is further discussed in  
section 5.6, Slew Rate Control.  
Figure 15 represents the waveforms associated  
with the output stage. The upper portion of fig-  
ure 15 shows the flow of current in the motor  
windings for each of the 24 phase increments. A  
rotational degree index is shown as a reference  
along with a base line to indicate the occurrence  
of a zero crossing. The 3 output waveforms are  
actual digitally reproduced voltage signals as  
measured on samples.  
After the masking period, the Bemf voltage at out-  
put B is monitored for a zero crossing. Upon de-  
tection of the crossing the output is sequenced af-  
ter 30 electrical degrees insuring maximum  
A typical sequence starts when the outputs switch  
states. Referring to figure 15, during phase 1, out-  
put A goes high, while output B is low. During this  
Table 3.  
Rotational Speed  
Rotational Freq.  
3600 rpm  
60Hz  
5400 rpm  
90Hz  
Rotational Period  
Electrical Period  
Phase Period  
16.667 ms  
4.167 ms  
694.5 µs  
11.111 ms  
2.778 ms  
463.0 µs  
18/35  
L6238  
Figure 15: Brake Delay.  
19/35  
L6238  
torque. The spin sense waveform at the bottom of  
the figure indicates that this output signal toggles  
with each zero crossing.  
monitored in the L6238 since the L6243 already  
monitors this voltage and initiates a Park function  
when this supply drops to a predetermined level.  
If multiple logic supplies are used in the applica-  
tion, all logic signals to the L6238 including the  
reference and clock signals should be buffered  
with gates powered by the same supply as the  
L6238 in order to prevent erroneous operation.  
This would occur, for example, if the 5V supply to  
the controller were lost while 5V were still present  
at one of the logic pins. This would partially power  
the chip, causing unpredictableoperation.  
5.2 Brake Delay  
When Run/Brake is brought low, a brake is initi-  
ated. Referring to figure 16, SWI is opened and  
the brake delay capacitor, Cbrake, is allowed to  
discharge towards ground via Rbrake. At the same  
time, switches SW2 through SW7 bring the gates  
of the output FETs to ground halting conduction,  
causing the motor to coast. While the motor is  
coasting, the Bemf is used to park the heads.  
When Cbrake reaches a voltage that is below the  
turn ON threshold of Q I, Switches SW8, 9 and 10  
bring the gates of the lower drivers to Vbrake po-  
tential. This enables the lower FETs causing a  
braking action. This braking action also occurs if  
the logic supply is lost. The analog supply is not  
5.3 Charge Pump  
The charge pump circuitry is used as a means of  
doubling the analog supply voltage in order to al-  
low the upper N-channel DMOS transistors to be  
driven like P-channel devices. The energy stored  
in the reservoir capacitor is also used to drive the  
Figure 16: Brake Delay.  
20/35  
L6238  
Figure 17: Charge Pump Circuit.  
lower drivers in a brake mode if the analog supply  
is lost.  
maintain the motor speed at the proper level as  
commanded by the PLL.  
Figure 17 is a simplified schematic of the charge  
pump circuitry. A capacitor, Cpump, is used to re-  
trieve energy from the analog supply and then  
”pumps” it into the storage capacitor, Cresvr. An in-  
ternal 300kHz oscillator first turns ON Q2 to  
quickly charge Cpump to approximately the rail  
voltage. The oscillator then turns ON Ql while  
turning OFF Q2. Since the bottom plate of Cpump  
is now effectively at the rail potential, Cresvr is  
charged to ~ twice the rail voltage via D2. A zener  
referenced series-pass regulator supplies a volt-  
age, Vbrake, duringbrake mode.  
During initial start-up, the error signal from the  
output of the PLL Phase/Frequency Detector will  
be at compliance in order to quickly bring the mo-  
tor up to correct speed. The motor current during  
this condition can be safely limited to a predeter-  
mined value by applying a voltage to the ILIM  
SET input.  
The voltage at this input is buffered by A1 and  
sent to multiplexer, SWl. The output voltage of the  
multiplexer, Vclmp, is used to control the maxi-  
mum non-inverting input voltage for amplifier A2.  
This multiplexer also receives a voltagethat is 1/2  
the ILIM SET value via a resistor divider con-  
nected to the buffer. Control bit llim Gain deter-  
mines which voltage is available at the output of  
the multiplexer and allows a 2:1 change in the  
output current limit under software control.  
For example, if the Ilim Gain control bit is set  
high, and 3.3V were applied to the ILIM SET in-  
put, then Vclmp would equal 1.65V. Since A3 has  
a voltage gain of 4, this would translate to a maxi-  
mum sensed voltage at the Rsense input equal to  
0.41V. If Rslew were selected to be 0.33 , then  
the maximum output current would be limited to  
~1.25A.  
By setting the Ilim Gain control bit low, Vclmp now  
equals ILIM SET, and the clamped sensed volt-  
age at the Rsense input would be doubled to  
0.82V, allowing a maximum of 2.5A at the output.  
5.4 Output Current Control  
The output current is controlled in a linear fashion  
via a transconductance loop. Referring to figure  
18, the sourcing FET of one phase is forced into  
full conduction by connecting the gate to Vpump  
,
while the sinking transistor of an appropriate  
phase operates as a transconductance element.  
To understand the current control loop, it will be  
assumed that Q2 in figure 18 is enabled via SW2  
by the sequencer.  
During a run condition, the current in Q2 is moni-  
tored by a resistor R4 connected to the Rsense in-  
put. The resulting voltage that appears across R4  
is amplified by a factor of four by A3 and is sent to  
A2 where it is compared to the PLL error signal.  
A2 provides sufficient drive to Q2 in order to  
21/35  
L6238  
Figure 18: LinearControl Loop.  
such that a few dB of gain (typ. 20dB) remains in  
the transconductance loop at frequencies higher  
than the zero.  
5.5 Transconductance Loop Stability  
The RC network connected to the Compensation  
pin provides for a single pole/zero compensation  
scheme. The pole/zero locations are adjusted  
The inductive characteristic of the load provides  
Figure 19: ControlLoop Response.  
22/35  
L6238  
the pole necessary for loop stability. Thus the  
loop bandwidth is actually limited by the motor it-  
self.  
though the gain decrease at a rate of  
40dB/decade,the phase does not reach 180°  
of shift.  
Figure 19 shows the complete transconductance  
loop including compensation, plus the response.  
The Bode plot depicts the normal way to achieve  
stability in the loop. The pole and zero are used to  
set a gain of 20dB at a higher frequency and the  
pole of the motor cuts the gain to achieve stabil-  
ity.  
If the gain at higher frequencies is sufficiently  
high, the double pole slope of 40dB/decade can  
cause the phase shift to reach 180°, resulting in  
oscillation. Figure 22 is a Bode plot showing how  
to correct this situation. The bold line indicates  
the response with relatively high gain at the  
higher frequencies. By leaving the pole un-  
changed and increasing the zero, the response  
indicated by the dashed lines can be achieved.  
Loop instability may be caused by two factors:  
1)The motor pole is too close to the zero. Refer-  
ring to figure 20, the zero is not able to decre-  
ment the shift of phase, and when the effect  
of the pole is present, the phase shift may  
reach 180° and the loop will oscillate. To rec-  
tify this situation, the pole/zero must be  
shifted at lower frequencies by increasing the  
compensationcapacitor.  
Figure 22: Correct Compensation.  
Figure 20: MotorPole.  
5.6 Slew Rate Control  
A 3-phase motor appears as an inductive load to  
the power supply. The power supply sees a dis-  
turbance when one motor phase turns OFE and  
another turns ON because the FET turn-OFF time  
is much shorter than the L/R rise time. Abrupt  
FET turn-OFF without a proper snubbing circuit  
can even cause current recirculation back into the  
supply.  
2)The motor capacitance, CM, itself can inter-  
fere with the loop, creating double poles. If  
the gain at higher frequenciesis low, this dou-  
ble pole will not be able to reach a critical  
value due to it’s 40dB/decade slope. Figure  
21 illustrates performance with low gain. Al-  
However, the need for a snubber circuit can be  
eliminated by controlling the turn-OFF time of the  
FETs.  
Figure 21: Effect of Cm.  
23/35  
L6238  
Referring back to figure 18, the rate at which the  
upper and lower drivers turn OFF is programma-  
ble via an external resistor, Rslew connected to the  
SLEW RATE pin. This resistor defines a current  
which is utilized internally to limit the voltage slew  
rate at the outputs during transition, thus minimiz-  
ing the load change that the power supply sees.  
Figure 23: Output Voltage Slew Rate vs Rslew.  
Figure 23 is a plot of the slew rate that will be ob-  
tained as a function of the resistor connected to  
the SLEW RATE pin. The voltage at the this pin  
is typically 2.4V.  
To insure proper operation the range of resistor  
values indicated should not be exceeded and in  
some applications values near the end points  
should be avoided as discussed below.  
Low Values of Rslew - If a relativelylow value of  
Rslew is selected, the resultant fast slew rate will  
result in increased commutation cross-over cur-  
rent, higher EMI, and large amount of commuta-  
tion current.  
This last case can cause voltage spikes at the  
output that can go as much as lV below ground  
level. This situation must be avoided in this inte-  
grated circuit (as in most) since it causes unpre-  
dictable operation.  
lock a motor.  
The problem manifests itself as the motor begins  
to spin up. At lower RPMs, the Bemf of the motor  
is relatively small resulting in higher amounts of  
commutation current. In figure 24, the upper  
waveform is the voltage appearing at OUTPUT  
relative to the CENTER TAP input. The lower  
waveform is the actual output of the Bemf ampli-  
fier available on special engineering prototypes.  
High Values of Rslew - Higher values of Rslew  
result of course in slow slew rates at the outputs  
which is, under most conditions, the desired case  
since the problems associated with fast rates are  
reduced. The additional advantage is lower  
acoustical noise.  
The oscillograph was taken just as the problem  
occured. The period between zero crossings was  
~800µs resulting in a mask time period of 200µs.  
Problems can occur though if the slew rate for a  
given applicationis tooslow. Figure 5-10 is an os-  
cillograph taken on a device that had a fairly large  
value for Rslew and failed to spin up and phase  
As can be seen, the excessively long slew rate  
Figure 24: Effect of Slow Slew Rate.  
24/35  
L6238  
actually exceeded the mask period and was de-  
tected as a zero crossing. This resulted in im-  
proper sequencing of the outputs relative to the  
proper phases and caused the motor to spin  
down.  
Figure 25: Dual Slew Rate.  
If the application requires a slow rate of slew at  
the output, an external network can be connected  
as shown in figure 25. A resistor, Rl is selected to  
achieve the desired slew rate when the system is  
in phase lock. A second resistor, R2, in series  
with a diode, Dl, is connectedbetween the SLEW  
RATE pin, and the LOCK output. At start up, the  
LOCK output is low, and R2 is in parallel with Rl  
resulting is a faster slew rate. When lock is  
achieve, the LOCK output is high, and R2 is es-  
sentially disconnectedfrom the circuit.  
paths are not shown for clarity. A3 also closes  
SW2 allowing Al to linearly drive the external P-  
ChannelFET Ql via inverter A2.  
5.7 Ext PFET Driver  
5.8 Bemf Sensing  
The power handling capabilities of the 3 phase  
output stage can be extended with the addition of  
a single P-Channel FET.  
Since no Hall Effect Sensors are required, the  
commutation information is derived from the Bemf  
voltage zero-crossings of the undriven phase with  
respect to the center tap. The Bemf comparator  
and associated signal levels are depicted in figure  
27. For reliable operation, the Bemf signal ampli-  
tude should be a minimum of ± 60 mV to be prop-  
erly detected. In order to provide for noise immu-  
nity, internal hysteresis is incorporated in the  
detection circuitry to prevent false zero crossing  
detection.  
Figure 26 shows the Ext FET connection and  
demonstrates how the L6238 automatically  
senses the FETs presence. When the voltage at  
the Gate Drive pin is 0.7V, the output of com-  
parator A3 goes high, removing the variable drive  
Al from the internal FETs and connects them in-  
stead to Vanalogvia the commutationswitches to  
facilitate full conduction. The upper FETs drive  
Figure 26: ExternalP-Fet.  
25/35  
L6238  
Figure 27: Bemf Amplifier.  
start up the long commutation intervals may  
cause the counter to overflow, in which case 50%  
of the max count will be less than 50% of the  
ideal commutation interval. Therefore, the torque  
will not be optimal until the desired commutation  
interval is less than the dynamic range of the  
counter.  
For laboratory evaluation purposes, a simple re-  
sistive network as shown in figure 28 can be used  
to emulate the Bemf of the motor.  
The actual Bemf zero-crossing is 30 electrical de-  
grees (50% of a commutation interval) away from  
the optimal switch point. A digital counter circuit  
measures 50% of the previous interval to deter-  
mine the next interval’s commutation delay from  
the zero crossing. During the low RPM stages of  
6.0 SERIAL PORT  
Figure 28: Bemf Emulator.  
26/35  
L6238  
port.  
6.1 Description  
Disable If multiple controllers are connected for  
parallel operation, this signal can be used to se-  
lect communication to a particular port. If the Se-  
rial Port is not used, the PORT DISABLE pin  
should be tied high.  
The L6238 contains a powerful serial port that  
may be optionally used to dramatically increase  
the functionality of the controller without signifi-  
cantly increasing the pin count. The serial port  
serves two primary functions:  
Strobe The read operation is transparent. When  
the strobe is high, the data on the status bus  
flows through to the serial register. In a write op-  
eration, the loading of the control bits into the par-  
allel control latch is an edge-triggered operation  
occurring on the rising edge of the strobe.  
1. Receive Control Information  
A total of 16 bits of control information can be pro-  
grammed via the serial port, in addition to the ca-  
pabilitiesprovided by external pins. By duplicating  
key serial port control functions at dedicated pins,  
the L6238 will still provide sufficient motor control  
for many applications, without the use of the se-  
rial port.  
6.3 Functional Truth Table  
2. Provide Status Information  
Table 4 defines the states for the disable and  
R/W functions. If the disable pin is asserted high,  
the Data I/O pin is tristated to a High-Impedance  
state. The R/W pin determines whether the Data  
I/O pin is an inputor an output.  
The AC operating parameters of the serial port  
are defined in the Electrical Specifications.  
Certain status information is available only via the  
serial port, with additional information available at  
dedicated pins.  
6.2 Block Diagram  
Table 4: Truth Table.  
Figure 29 is a simplified block diagram of the  
serial port. It consists of a 16-bit shift register, a  
16-bit latch, and some control logic. The serial  
port utilizes 5 pins to communicate with the out-  
side world. They are:  
Data I/O The data I/O pin enables 16 bits of data  
to flow in as controlor out as status information.  
Dis  
0
R/W  
0
Function  
Write to Serial Port (Data I/O = Input)  
Read to Serial Port (Data I/O = Output)  
Chip Disabled (Data I/O = Hi Z)  
0
1
1
X
Read/Write This pin selects read or write mode.  
Clock Used to shift data in or out of the serial  
6.4 Timing Diagrams  
Figure 29: Block Diagram.  
27/35  
L6238  
time, where the data must be stable before the  
falling edge of the clock. The Data Hold time, Tdh,  
is the minimum time that the data must be valid  
after the rising edge of the clock pulse.  
Figure 30 is the timing diagram for writing to the  
serial port. This diagram indicates the typical  
waveforms at the serial port and how they relate  
to one another when the PORT DISABLE pin is  
used. Two consecutive write cycles with key tim-  
ing parametersare illustrated.  
To initiate the write cycle, the STROBE and R/W  
signals are first brought low. After a minimum set-  
up time, Tos, the PORT DISABLE pin is set low.  
The clocking of the data can begin after a mini-  
mum settling time, Tsettle has passed. The data is  
clocked into the register on the falling edge of the  
PORT CLOCK. After the 16th clock cycle and  
wait time Tcsw a strobe signal causes the data to  
be transferred to the 16-bit latch.  
The waveforms associated with reading from the  
serial port are similar to the write mode. The main  
difference is in the timing of the strobe pulse.  
Since there is a single port for both read and  
write, the strobe signal, in conjunction with the  
R/W signal insures proper data stream flow.  
Referring to figure 31, the read mode is initiated  
by first asserting the R/W line high, while holding  
the strobe line low. The PORT DISABLE pin is  
then brought low. A pulse is now sent to the  
strobe pin that transfers the data on the Status  
Bus to the Shift Register. The falling edge of the  
strobe cannot occur earlier than the minimum set-  
tling time, Tsettle. The data is shifted out on the  
Additional timing parameters that are relevant  
concern the timing of the clock signal relative to  
the data stream. The time Tds is the data set up  
Figure 30: Write Timing Diagram.  
Figure 31: Read Timing Diagram.  
28/35  
L6238  
I/O port at the falling edge of the port clock.  
Tri State Delay.  
Figure 32 shows the proper waveforms that are  
applied to the appropriate serial port signal pins  
during a read to write transition. The strobe input  
in this case is held low. Time Ttsd is the Data I/O  
Figure 33 displays the timing diagram during a  
write to read operation.  
6.5 Control Register  
Figure 32: Read to Write Diagram.  
Figure 33: Write to Read Diagram.  
29/35  
L6238  
thresholds cover the range between 6.4 and  
51.2 us as shown in Table7.  
Table 5 lists the 16 available control bits along  
with a description and power up default values.  
Certain bits are replications of their external pin  
counterparts while others provide the means to  
”customize” the controller to match a unique ap-  
plication and are described in further detail below.  
Auto Start Delay - Table 8 lists the delays  
available for the Align & Go start up algorithm  
with values for 90Hz and 60Hz applications.  
Phase Delay - A more efficient torque profile  
can be achieved by advancing the commuta-  
tion angle to compensate for the L/R time con-  
stant. There are 3 bits in the serial port that are  
used to program the delay between the zero-  
crossing and the commutation point. Thus the  
user has the ability to use the motor more effi-  
ciently by programming the optimal delay. Ta-  
ble 6 is a mapping between the serial ports bits  
and the commutationdelay.  
In selecting the phase delay, the amount of  
slew rate introduced must be considered,since  
the switching is effectively at the 50% points  
and this delay can be a significantcontribution.  
6.6 Status Register  
The serial port also contains 16 bits that give use-  
ful information about the inner workings of the  
controller. Table 9 provides a functional descrip-  
tion of each of the status bits. The status bits  
prove valuable during certain situations with one  
example highlited below.  
Align +Go - These 2 bits can be used to deter-  
mine if a resync operation was succesful or  
not. During a commanded resync, these bits  
will be initially high, and will stay high if the  
resync was successful. However, figure 34  
shows the timing of these 2 bits during an un-  
succesful resync where the Go bit goes low  
419 ms after the resync command if no Bemf  
zero crossing is detected.  
Lock Threshold - Bits 2 and 3 control the  
phase error window between the reference  
and the motor that must be met in order to al-  
low the LOCK signal to go high. Four differenct  
Figure 34: Failed Rysync.  
Tasd <1>  
Tasd <0>  
Ta  
Tg  
Ts  
0
0
1
1
0
1
0
1
0.178 s  
0.256 s  
0.533 s  
0.711 s  
0.711 s  
1.422 s  
2.133 s  
2.844 s  
0.419 s  
0.419 s  
0.419 s  
0.419 s  
Note: PLL Reference Frequency = 90Hz  
System Clock = 10MHz.  
30/35  
L6238  
Table 5: Control Register.  
Ctrl  
Bit #  
Signal  
Name  
Default  
State  
Control Function Description  
Logic  
0
Ext/Int  
Determines whether the once-per-  
revolution signal (used as the motor’s  
feedback for speed) comes from internally  
generated source or is to be supplied  
externally as an input.  
0 = Use Int  
Speed Fdbk  
0
1 = Use Ext  
Speed Fdbk  
1
2
3
Fref Enable  
When enabled, passes external PLL fref to  
Phase Detector  
0 = Enable  
1 = Disable  
0
1
1
Lock_  
Thrsh_0  
Two bits that set the Lock Signal threshold  
in the Phase Detector  
Refer to Table 7  
Lock_  
Thrsh_1  
4
5
Linear  
Not used.  
0 = Required  
0
1
Out_Ena  
Enables Output Drivers. When this signal is  
used to Tri-State the outputs, it also resets  
the resynchronization algorithm.  
0 = Enable  
1 = Disable  
This bit along with the OUTPUT ENABLE  
pin forms a logical AND function.  
6
Run/Brake  
When brought high, initiates the Align and  
Go algorithm. When low, Brake action  
occurs after the Brake Delay Timeout.  
This bit along with the RUN/BRAKE pin  
forms a logical AND function.  
1 = Run  
0 = Brake  
1
7
Seq_Reset  
Auto/Ext  
Resets the sequencer to Phase 1. Reset  
when in Brake Mode.  
1 = Reset  
0 = Normal  
0
1
0
1
0
1
1
1
0
8
Selects either the Internal Auto Start-Up or  
External Algorithm.  
1 = Auto  
0 = External  
9
Seq_Incr  
Increments sequencer  
1 = Mask Bemf  
0 = Normal  
10  
11  
12  
13  
14  
15  
Phase_  
Delay_0  
Three bits that set the Delay between the  
detection of the Bemf zero crossing and  
the commutation to the next phase.  
Refer to Table 6  
Phase_  
Delay_1  
Phase_  
Delay_2  
Auto_Str_  
Dly_0  
These 2 Bits define 4 possible delayes for  
Auto Start-Up Algorithm.  
Refer to Table 8  
Auto_Str_  
Dly_1  
Ilim_Gain  
Programs the I Limit for either the value set  
0 = Ilimit  
by ILIM SET or /2  
1 = Ilimit/2  
31/35  
L6238  
Table 6: Phase Delay.  
Delay, in  
Electrical Degrees  
Phase_Dly_2  
Phase_Dly_1  
Phase_Dly_0  
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0.0  
9.4  
18.80  
20.68  
22.56  
24.44 (Default)  
26.32  
28.20  
Table 7: Lock Threshold (Fsys = 10MHz)  
Lock_1  
Lock_0  
Threshold, in µs  
0
0
1
1
0
1
0
1
6.4  
12.8  
25.6  
51.2 (Default)  
Table 8: Auto-StartDelay.  
Delay, in Seconds  
Auto_Start_Dly_1  
Auto_Start_Dly_0  
90Hz Input  
0.711  
60Hz Input  
1.07  
0
0
1
1
0
1
0
1
1.422  
2.13  
2.133  
3.2  
2.844  
4.27 (Default)  
Table 9: Status Register.  
Status Bit #  
Signal Name  
Control Function Description  
Logic  
Default State  
0
Control_0  
Control_1  
Mask  
These two bits are a wrap-around of their  
corresponding control bits for test purposes.  
Follows  
Control_0  
0
1
2
Follows  
Control_1  
0
When the motor controllerdetects a zero  
crossing, Mask will go low and remain low  
for 15 electrical degrees after the next  
commutation.  
1 = Detect  
Bemf  
0 = Mask out  
Bemf  
1/0  
3
Delay  
Upon detection of a zero crossing, Delay  
will go high for a time determined by the  
Phase Delay Control bits. After the delay  
period, Delay will go low, initiating the next  
commutation.  
1 = Delay  
0/1  
1
0 =  
Commutation  
4
5
Go  
Signifies whether the rotor is in the  
alignment phase of start-up or is ramping  
up to speed  
1 = Run  
0 = In Start Up  
Align  
Separates the align  
32/35  
L6238  
Table 9 (continued)  
Status Bit #  
Signal Name  
Control Function Description  
Logic  
Default State  
5
Align  
Separates the alignment times during start-  
up. While low, the rotor will align to phase 1.  
When high, the rotor will align to phase 3  
until pllaced in the Go mode.  
1 = 2nd  
Alignment  
0 = 1st  
1
Alignment  
6
7
8
Dn  
Up  
Indication of motor Phase relative to Fref.  
(Must be used in conjunction with Up).  
1 = Phase > 0  
0 = Phase 0  
1
0
1
Indication of motor Phase relative to Fref.  
(Must be used in conjunction with Dn).  
1 = Phase > 0  
0 = Phase 0  
Updn  
Indicates whether the motor‘s frequency is  
greater or less than the reference  
frequency.  
1 = Fref > Fmtr  
0 = Fref < Fmtr  
9
Lock  
Determines if Phase Difference is within  
threshold limits as set by control bits.  
1 = In Phase  
0 = Out of Phase  
0
0
1
10  
11  
Spin_  
Sense  
This bit toggles at the zero crossing  
Toggles  
Stkrtr  
Detects a fault due to motor failing to spin.  
If upon entering the Go mode after the  
double align, no generated Bemf is  
detected, a 419ms timer, (Fsystem =  
10MHz) will cause the outputs to tri-state  
and flag a fault.  
1 = Normal  
0 = Fault  
12  
IntFmtr  
This signal cycles once every revolution,  
providing a source of feedback for the  
phase detector to lock onto. This signal is  
not used when EXT/INT or Ext/Int are a  
logic 1.  
1 cycle = 1  
revolution  
0
13  
14  
15  
OTshdown  
OTwarn  
Mono  
Indicates an overtemperature fault. Output  
stage tristates.  
1 = Normal  
0 = Overtemp  
1
1
1
Early overtemperature warning signal.  
1 = Normal  
0 = Overtemp  
Indicates a fault due to a rapid deceleration  
of the rotor caused by a sudden frictional  
loading.  
1 = Normal  
0 = Fault  
33/35  
L6238  
PLCC44 PACKAGE MECHANICAL DATA  
mm  
inch  
TYP.  
DIM.  
MIN.  
17.4  
16.51  
3.65  
4.2  
TYP.  
MAX.  
17.65  
16.65  
3.7  
MIN.  
0.685  
0.650  
0.144  
0.165  
0.102  
MAX.  
0.695  
0.656  
0.146  
0.180  
0.108  
A
B
C
D
4.57  
2.74  
d1  
d2  
E
2.59  
0.68  
0.027  
14.99  
16  
0.590  
0.630  
e
1.27  
12.7  
0.46  
0.71  
0.050  
0.500  
0.018  
0.028  
e3  
F
F1  
G
0.101  
0.004  
M
M1  
1.16  
1.14  
0.046  
0.045  
D
D1  
D3  
A
A2  
A1  
48  
33  
49  
32  
0.10mm  
Seating Plane  
17  
64  
1
16  
C
e
K
PQFP64  
34/35  
L6238  
Information furnished is believed to be accurate and reliable. However, SGS-THOMSON Microelectronics assumes no responsibility for the  
consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No  
license is granted by implication or otherwise under any patent or patent rights of SGS-THOMSON Microelectronics. Specifications men-  
tioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied.  
SGS-THOMSON Microelectronics products are not authorized for use as critical components in life support devices or systems without ex-  
press written approval of SGS-THOMSON Microelectronics.  
1994 SGS-THOMSON Microelectronics - All RightsReserved  
SGS-THOMSON Microelectronics GROUP OF COMPANIES  
Australia - Brazil - France - Germany - Hong Kong - Italy - Japan - Korea - Malaysia - Malta - Morocco - The Netherlands - Singapore -  
Spain - Sweden - Switzerland - Taiwan - Thaliand - United Kingdom - U.S.A.  
35/35  

相关型号:

L6238S

12V SENSORLESS SPINDLE MOTOR CONTROLLER
STMICROELECTR

L6238S013TR

BRUSHLESS DC MOTOR CONTROLLER, 5A, PQCC44, PLASTIC, LCC-44
STMICROELECTR

L6238SQA

12V SENSORLESS SPINDLE MOTOR CONTROLLER
STMICROELECTR

L6238SQT

12V SENSORLESS SPINDLE MOTOR CONTROLLER
STMICROELECTR

L623C

THYRISTOR MODULE|BRIDGE|HALF-CNTLD|CA|280V V(RRM)|46A I(T)
ETC

L623F

Power Modules
CRYDOM

L624

Power Modules
CRYDOM

L6242

VOICE COIL MOTOR DRIVER
STMICROELECTR

L6243

VOICE COIL MOTOR DRIVER
STMICROELECTR

L6243D

VOICE COIL MOTOR DRIVER
STMICROELECTR

L6243DS

VOICE COIL MOTOR DRIVER
STMICROELECTR