3 WIRE SERIAL COMMUNICATION
INTERFACE UP TO 33 MHZ
■
BCD TECHNOLOGY
L7250
PRODUCT PREVIEW
Spindle Motor Controller
■
INTERNAL POWER DEVICE 0.9 OHM MAX
VALUE @ 125°C (SINK+SOURCE)
■
2.5A PEAK CURRENT CAPABILITY
■
ST SMOOTHDRIVE SINUSOIDAL PWM
COMMUTATION
■
DEDICATED ADC FOR POWER SUPPLY
VOLTAGE COMPENSAT IO N
■
SPINDLE CURRENT LIMITING VIA FIXED
FREQUENCY PWM OF SPINDLE POWER
OUTPUTS AT THE SMOOTHDRIVE PWM
RATE
■
SYNCHRONOUS RECTIFICATION DURING
PWM TO REDUCE POWER DISSIPATION
■
CURRENT SENSING VIA EXTERNAL
CURRENT SENSE RESISTOR
■
INDUCTIVE SENSE POSITION START UP
DRIVEN BY µPROCESSOR
■
SPINDLE BRAKING DURING POWER DOWN
CONDITION
Voice Coil Motor Driver with Ramp Load/Unload
■
INTERNAL POWER DEVICE 0.9 OHM MAX
VALUE @ 125°C (SINK+SOURCE)
■
2A PEAK CURRENT CAPABILITY
■
15 BIT LINEAR DAC FOR CURRENT
COMMAND, WITH INTERNAL REFERENCE
VOLTAGE
■
SENSE AMPLIFIER GAIN SWITCH
■
CLASS AB OUTPUT STAGE WITH ZERO
DEAD-BAND AND MINIMAL CROSSOVER
DISTORTION
■
RAMP LOAD AND UNLOAD CAPABILITY AS
WELL AS CONSTANT VOLTAGE RETRACT
■
EXTERNAL CURRENT SENSE RESISTOR IN
SERIES WITH MOTO R .
■
HIGH CMRR (>70DB) AND PSRR (>60DB)
SENSE AMP
■
EXTERNAL CURRENT CONTROL LOOP
COMPENSATION
■
HIGH BANDWIDTH VCM CURRENT
CONTROL LOOP CAPABI L ITY
■
HIGH PSRR, LOW OFFSET, LOW DRIFT GM
LOOP
ORDERING NUMBER: L7250
■
VCM VOLTAGE MODE, CONTROLLED BY
TQFP64
VCM DAC
■
GM LOOP OFFSET CALIBRATION SCHEME
INCLUDES A COMPAR ATOR ON THE
ERROR AMP
Auxiliary Functions
■
3.3V AND 1.8V LINEAR REGULATOR
CONTROLLER
■
NEGATIVE VOLTAG E REGUL ATOR
■
INTERNAL ISOFET 0.1 OHM @125C
■
POWER MONITOR OF 12V, 5V, 3.3V AND
1.8V
■
SHOCK SENSOR CIRCUIT TAKES INPUTS
FROM PIEZO OR CHARGING ELEMENT
■
10 BIT ADC WITH 4 MUXED INPUTS
■
THERMAL SENSE CIRCUIT AND OVER
TEMPERATURE SHUT DOWN
■
CHARGE PUMP BOOST VOLTAGE
GENERATOR FOR HIGH SIDE GATE DRIVE
■
ANALOG PINS AVAILABL E TO ENTER
SIGNALS TO BE CONVERTED BY THE
INTERNAL ADC
DESCRIPTION
L7250 is a power IC for driving the SPINDLE and
VCM motors, suitable for 5V & 12V application. The
spindle system includes integrated power FETs
which are driven using ST's Smoothdrive pseudo-sinusoidal commutation technology. The voice coi l motor (VCM) system includes integrated power FETs,
as well as ramp load and unload capability. Linear
3.3V and1.8V volt age regulators ar e include d, as wel l
as a negative regulator.
Power monitoring of VCC5, VCC12, and of the two
positive voltage regulators is also included.L7250
uses a 3 wire serial interface: S_DATA, S_CLK and
S_ENABLE
July 2001
This is preliminary information on a new product now in development. Details are subject to change without notice.
1/46
L7250
PIN CONNECTION
(Top view)
VCV1
VCV2
VCMP1
VCMP2
VCMGND1
VCMGND2
CPOSC
VCC5
DIG_GND
N_DRV
N_FEED
N_COMP
25_BASE
25_FEED
33_BASE
33_FEED
CT
OUTU1
RSEN4
VBOOST
64
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
OUTU2
CPOSCH
61
62
63
20212223242526272829303132
191718
RSEN3
60
59
58
VCV3
OUTV1
OUTV2
55
56
57
VCV4
VM1
VM2
53
54
Rsense
OUTW2
OUTW1
514950
52
RSEN2
48
RSEN1
47
VCMN2
46
VCMN1
45
VCMGND4
44
VCMGND3
43
SNS_N
42
SNS_P
41
SNS_OUT
40
ERR_OUT
39
ERR_IN
38
DAC_OUT
37
SCLK
36
SYSClk
35
SDATA
34
33
SEN
ZC
Skin
SkFin
CPOR
CBRAKE
VREF25
AGND
NPOR
Skout
SkFout
Timer1
SkDout
CalCoarse
PIN DESCRIPTI ON
N°PinVDescription
1VCV1S1212V power supply
2VCV2S1212V power supply and POR sensing threshold
3VCMP1O12VCM positive output
4VCMP2O12VCM positive output
5VCMGND1gndVCM power ground
6VCMGND2gndVCM power ground
7CPOSCO12Charge pump oscillator
8VCC5S55V power supply
1325_BASEO5Reg 1.8V ext NPN base
1425_FEEDI5Reg 1.8V feedback
1533_BASEO5Reg 3.3V ext NPN base
1633_FEEDIO5Reg 3.3 V feedback
17CPORIO5POR delay capacitor
18NPORO5POR output signal
19CBRAKEIO5Spindle brake capacitor
20AGNDgndanalog gnd
21VREF25IO52.5V reference
22ZCO5Spindle zero crossing
23SkinI5Shock sensor input
24SkoutO5Shock sensor 1st opamp output
25SkFinI5Shock sensor filter input
26SkFoutO5Shock sensor filter output
(continued)
27SkDoutO5Shock sensor output
28Timer1IO5Timer 1 for unload procedure
29CalCoarseI5VCM BEMF coarse calibration
30ADauxI5auxiliary input for the ADC
31VCMBEMFO5VCM BEMF processor output
32TestIO5used for testing porpouse (*)
33SENI5Serial enable
34SDATAIO5Serial data
35SYSClkI5System clock
36SCLKI5Serial clock
37DAC_OUTO5VCM DAC output
38ERR_INI5VCM error opamp input
39ERR_OUTO5VCM error opamp output
40SNS_OUTO5VCM sense opamp output
41SNS_PI12VCM sense opamp positive input
42SNS_NI12VCM sense opamp negative input
43VCMGND3gndVCM power ground
3/46
L7250
PIN DESCRIPTI ON
N°PinVDescription
44VCMGND4gndVCM power ground
45VCMN1O12VCM negative output
46VCMN2O12VCM negative output
47RSEN1O12Spindle power sensing resitor
48RSEN2O12Spindle power sensing resitor
49RsenseI5Spindle sensing resistor input
50OUTW1O12Spindle phase C output
51OUTW2O12Spindle phase C output
52VM1IO12Vmotor
53VM2IO12Vmotor
54VCV4S1212V power supply
55VCV3S1212V power supply
56OUTV1O12Spindle phase B output
57OUTV2O12Spindle phase B output
(continued)
58RSEN3O12Spindle power sensing resitor
59RSEN4O12Spindle power sensing resitor
60OUTU1O12Spindle phase A output
61OUTU2O12Spindle phase A output
62CTI12Spindle central tap
63CPOSCHIO20Charge pump diodes connection
64VBOOSTIO20Charge Pump voltage
(*) used al so to set the IC power supply applicati on. If this pin is pull-up exter nal l y the L7250 be came a 5V appl i cation
S = Supply ; IO = Input/Output ; I = Input ; O = Output ; gnd = Ground.
POWER SUPPLY [VCC5 & VCV] VCC5 = 5V ±10%, VCV = 12V ±10%. T
SymbolParameterTest ConditionMin. Typ.Max.Unit
SERIAL PORT
VohLogic Output voltage highIoh=1mA2.7V
VolLogic Output voltage lowIol=1mA0.5V
VihL ogic input highIih=1uA2.2V
VilLogic input lowIil=-1uA0.5V
IihLogic high input currentInternal Pulldown Resistor
IilLogic low input current-1.00µA
(continued)
Vin = 3.3V
= 25°C (unless otherwise specified)
amb
33µA
1SERIAL PORT
The serial port is a bidirectional three pi n interface, using SDATA, SCLK and SE N to addr ess and communi cate
with sixteen 8 bit registers in the L7250. These registers include the status register, Spindle control registers,
VCM control registers, sinewave drive registers, and test mode register. These registers are cleared to zero at
power up.
After the SEN falling edge, the internal state machine is waiting for the first SCLK falling edge. This means that
if the SCLK line starts from an high level the first falling edge, respecting the setup time Tefcf, is considered,
and is used to read the R/W bit. During a writing process the internal state machine must see 16 SCLK falling
edges to validate the operation. The write mode is started if the R/W bit is low on the first falling edge of SCLK.
The read mode is started if the R/W bit is high on the first falling edge of SCLK. The ID, Address, and Data are
all then subsequently read by the L7250 on the falling edges of SCLK. (See Figure 1)
The microcontroller has to read the data on the falling edge of the SCLK signal. After the hold time (Tedh) the
data line switches to the next data without a tri-state phase.During a read mode the last address bit is read by
L7250 on the eighth falling edge of SCLK. The internal state machine then turns the SDATA bit around for the
L7250 to assume control at the next SCLK rising edge (the first rising edge after the 8th SCLK falling edge).
11/46
L7250
Figure 1. Default serial port timing diagram (bit 7, Reg05H = 0)
Teh
Tcfer
Tcrer
D1D0
D2
D0
Tedh
D5D4D3
D6
D6D5D4D3D2D1
D7
Tdly
Tcdd
L 7250 takes bus control
Tcds Tcdh
A1A0D7
A2
A1A0
A2
TccTch Tcl
ID2ID2A2
ID2ID2A2
ID 2
Tefcf
SEN
Note1: During writing process L7250 latches the data on the SC LK falling edge (the ASI C is writing on the SCLK
rising edge)
Note2: During reading process L7250 takes the bus control on the next SCLK rising edge after the 8th SCLK
falling edge
The L7250 write the data on the SCLK falling edge respecting the data hold time (Tedh)
Note3: The ID number for the L7250 is ID1=ID2=ID3=1
12/46
SCLK
W
SDATA
(w rite)
ID 2
R
SDATA
(read)
1.2 Default serial port timing Table
SymbolParameterMinMaxUnit
TccSerial clock period 30ns
TchSerial clock high time13ns
TclSerial clock low time13ns
TcdsSerial data setup time to clock falling edge (write mode)5ns
TcdhSerial clock falling edge to serial data hold time (write mode)4ns
TedhSerial clock falling edge to serial data hold time (read mode)5ns
TcddSerial data setup time to clock falling edge (read mode)5ns
TelSerial Enable low time490ns
TehSerial Enable high time30ns
TefcfSerial Enable falling edge to serial clock falling edge 17ns
TcferSerial clock falling edge to Serial enable rising edge 17ns
TdlySDATA turn around delay time0ns
L7250
Note 1: All specifications with respect to 50% of signal switching thresholds
Note 2: Reading mode tested at M ax 20Mhz
To set the bit7, Reg05H to 1, entering this different comunication mode, a writing process using the default comunication protocol (see the above paragraph) must be used.
After the SEN falling edge, the internal state machine is waiting for the first SCLK rising edge. This means that
if the SCLK line starts from a low level the first rising edge, respecting the setup time Tefcr, is considered, and
is used to read the R/W bit. The internal state machine must see 16 SCLK rising edges to validate the write
operation. The write mode is started if the R/W bit is low on the first rising edge of SCLK. The read mode is
started if the R/W bit is h igh on the first rising ed ge of SCLK. The ID, Address, and Data are a ll then subsequently read by the L7250 on the rising edges of SCLK (See Figure 2).
The microcontroller has to r ead (l atch) the data on the falli ng edge of the SCLK signal. L7250 pr esents the data
on the SCLK rising edge. During a read mode the last address bit is latched by the L7250 on the eighth rising
edge of SCLK. The internal state machine then turns the SDATA bit around for the L7250 to ass ume control at
the next SCLK falling edge (the first falling edge after the 8th SCLK rising edge).
13/46
L7250
Figure 2. Inverted clock serial port timing diagram (bit 7, Reg05H = 1)
Teh
Tcrer
D1D0
D2
D0
Tedh
D5D4D3
D6
Tel
D6D5D4D3D2D1
D7
Tdly
Tvld
L7250 takes bus control
Tcdh
Tcds
A1A0D 7
A1A0
Tcl
A2
A2
Tch
Tcc
ID 2ID2A2
ID 2ID2A2
ID 2
Tefcr
SEN
Note1: During writi ng proc ess L7250 l atches the data on the SCLK ris ing ed ge ( the ASIC is w riting on the S CLK
falling edge)
Note2: During reading proces s L7250 takes the bus c ontrol on the next SCLK falling edge after the 8th SCLKrising edge
The L7250 write the data on the SCLK rising edge and it is expec ting the ASIC to latches the data on the SCLK
falling edge
Note3: The ID number for the L7250 is ID1=ID2=ID3=1
14/46
SCLK
W
SDATA
(w rite)
R
SDATA
ID 2
(read)
1.4 Inverted clock serial port timing Table
SymbolParameterMinMaxUnit
TccSerial clock period 30ns
TchSerial clock high time13ns
TclSerial clock low time13ns
TcdsSerial data setup time to clock falling edge (write mode)5ns
TcdhSerial clock falling edge to serial data hold time (write mode)4ns
TedhSerial clock falling edge to serial data hold time (read mode)5ns
TvldSerial clock rising edge to SDATA stable time (read mode)
Cload=5pF (see Note2)
Cload=50pF (see Note2)11
15
TelSerial Enable low time490ns
TehSerial Enable high time30ns
TefcrSerial Enable falling edge to serial clock rising edge 17ns
TcrerSerial clock rising edge to Serial enable rising edge 17ns
L7250
ns
ns
TdlySDATA turn around delay time0ns
Note 1: All specifications with respect to 50% of signal switching thresholds
Note 2: In reading mode the clock frequency is li m i ted by this pa ram eter;
in fact the min ‘serial clock high time’ is defined by (Tvld+Tasu)
where Tasu = min ASIC setup time
Rlcalib[3]Rlcal ib[2]Rlcalib[ 1]Rlcalib[0]VCM2VCMR L reg read/write
[0]
ADC_DATA
(6)
ADCRange ADC_CH_
PREADC(1) PREADC(0)
ADC_DATA
(5)
ADDR(1)
PWMmask 1 PWMmask0
ADC_DATA
(4)
ADC_CH_
ADDR(0)
PREsm oCTR4controlread/write
ADC_DATA
(3)
(2)
ADC_START
CTR2controlread/write
ADRADC regreadonly
ADRADC regread/write
read/write
ate
16/46
L7250
Table 2. Register map content description
BitSPI field nameContent
REGISTER SR, ADDRESS: 00H
[2:0]Rev[2:0]Revision number of the device, set internally
[3]ThWarnThermal warning
[4]ThShutdownThermal shutdown
[5]ZCbadSignals a problem with spindle speed loop synchronism
[6]VCMcalOutVCM error output in calibration mode
[7]SPNCurrSignSpindle current sign to implement adaptive torque optimizer
REGISTER VCM1, ADDRESS: 01H
[0]NoBrake0=VCM active brake phase enabled
[3:1]Rltimer[2:0]000 = only Unload1 is enabled
(continued)
control
1= VCM active brake phase disabled
001 = threshold set to 0.4V
010 = threshold set to 0.8V
011 = threshold set to 1.2V
100 = threshold set to 1.6V
101 = threshold set to 2V
110 = threshold set to 2.4V
111 = only Unload2 is enabled
[5:4]Rlvoltage2[1:0]Selects between 4 values of unload voltage in Unload2 phase:
00 = 1V
01 = 1.125V
10 = 1.250V
11 = 1.375V
[7:6]Rlvoltage1[1:0]Selects between 4 values of unload voltage in Unload1 phase:
1 = shock sensor output latched (to clear the latched information
a transition 1 -> 0 -> 1 is necessary)
1 = negative regulator enabled
1 = thermal shutdown enabled
after window opening
In terms of electrical degrees the single mask step is 3.75.
1 = inverted SCLK protocol
REGISTER CTR4, ADDRESS: 06H
[0]PREsmo0 = spindle clock is system clock divided by two (FFWDADC clock
is system clock divided by 8)
1 = spindle clock is system clock (FFWDADC clock is system
clock divided by 4)
[2:1]PREADC[1:0]00 = sleep mode
01 = ADC clock is system clock divide by 4
10 = ADC clock is system clock divide by 2
11 = ADC clock is system clock
[7:3]W[4:0]Windowing while sensing ZC, expressed in terms of half samples
before TO value
In terms of electrical degrees the single window step is 3.75.
REGISTER CTR5, ADDRESS: 07H
[4:0]TO[4:0]Coarse and fine section of phase shift, applied for torque
[5]FFWEn0 = power supply compensation for spindle disabled
[6]Advance0->1 increments by one the current sample position
[7]LoadCP0->1 enables load of TO value as the current sample position
REGISTER KVR, ADDRESS: 08H
optimization.
In terms of electrical degrees the Torque Optimizer single step is
0.937 electrical degrees.
1 = power supply compensation for spindle enabled
[7:0]Kv[7:0]KVAL factor for speed loop control
19/46
L7250
Table 2. Register map content description
BitSPI field nameContent
REGISTER DAR1, ADDRESS: 09H
[6:0]Dac[14:8]7 MSB for VCM dac
[7]GainSwitch0 = gain voltage of the VCM sense amplifier equal to 4.5 V/V
REGISTER DAR2, ADDRESS: 0AH
[7:0]Dac[7:0]8 LSB for VCM dac
REGISTER ADR, ADDRESS: 0BH
[7:0]ADC_DATA[9:2]8 MSB output data from ADC conversion
REGISTER ADR, ADDRESS: 0CH
[0]ADCSTART0-> 1 starts a new ADC conversion
[2:1]ADC_CH_ADDR[1:0]Channel whose conversion is required
[3]ADCrange0 = the 4 signals enter directly (maintaining the proper dynamic
(continued)
1 = gain voltage of the VCM sense amplifier equal to 16 V/V
00 = VCM current sense amplifier output
01 = VCM voltage amplifier output
10 = VCM BEMF
11 = Auxiliary Channel (external pin)
range) the ADC block
1 = the 4 signals are scaled down to the ADC dynamic range
[5:4]ADC_RES_ADDR[1:0]Channel whose result conversion is currently present in
REGISTER ADR, ADDRESS: 0DH
0DH [7:0]reserved
REGISTER ADR, ADDRESS: 0EH
0EH [7:0]reserved
REGISTER ADR, ADDRESS: 0FH
0FH [7:0]Test[7:0]Test register
ADC_DATA
20/46
2SPINDLE MOTOR CONTROLLER
(
)
Figure 3.
REGISTER
KVAL
MULTIPLIER
ZERO
CROSSING
PERIOD
COUNTER
16+4 BIT
KVAL
DIGI TAL
6 State
or
Sine
Mode
COARSE
PHASE
ADVANCE
BITS
LOADCP
BIT
OLSIX/O L SIN
OR CLSIX/CLSIN
ADVANCE
BIT
FINE
PHASE
ADVANCE
BITS
SMOOTHDRIVE
RAW
DUTY CYCLE
SMOOTHDRIVE
PROFILE
MEMORY/
LOGIC
MEMORY
ADDRESS
COUNTER
N=48
FSCAN
FSCAN
COUNTERZCTc
SYSCLK
16.5MHZ
SMOOTHDRIVE
MODULATED
DUTY CYCLE
START-OF-COUNT
WINDOW
TRISTATE
CMD
WINDOW
MASK
PWM MASK
MASK
REGISTERS
COMPENSATION
COUNTER
&
COM PA R ATOR S
CURRENT
COMP.
SUPPLY
VOLTAGE
ADC
BEMF
COMP.
LIMIT
VM
TIME DOMAIN
DUTY CYCLE
SIGNALS
FET
GATE
DRIV E
FET
GATE
DRIV E
FET
GATE
DRIV E
CUR DAC
L7250
VM
HGU
MOTU
LGU
VM
HGV
MOTV
LGV
VM
HGW
MOTW
LGW
CTAP
xx
SPSENH
xx
SPINDLE
MOTOR
2.1 Spindle Sm oothdrive Functionality
L7250 utilizes ST's proprietary Smoothdrive commutation algorithm. Smoothdrive is a voltage mode pseudosinusoidal spindle drive scheme where the duty cycles of the three windings are modulated to form sinusoidal
voltages across each winding. The system determines the shape and amplitude of the driving voltages in a
completely digital manner.
2.2 SYSCLK
The Smoothdrive system clock comes through the SYSCLK pin.
The system expects eit her 33MH z or 16.5M Hz on t his pi n, and needs 16.5MH z internally. A SYSCLK divide by
two can be enabled by a SPI register bit PRESMO to accomodate a 33MHz external clock.
2.3 Smoothdrive Wave shape
The basic Smooth drive wave shape is stored in digital memory. A voltage profile designed to reduce switching
losses and increase th e voltage headr oom has been im plemented. Essenti ally, two phas es are PWM' ed, while
the low side driver of the third phase is on at 100% duty cycle. The PWM duty cycles are modulated in such a
way as to result in sinusoidal cur rents on all 3 motor phases. Driv ing in this manne r, as opposed to dri ving true
sinusoids on all three phases, results in improved headroom and effici ency, appr oachi ng that of conventional 6
state commutation.
The system is phase locked to the motor by sensing one BEMF zero crossi ng on one winding, once per electrical
21/46
L7250
cycle. A window is opened up in that winding, and it is tri-stated to allow sensing of the zero crossing. The width
of the window opening is programmable, and can be made very small in steady stat e. A frequency lock ed loop
keeps the wave shape in sync with the motor speed. The system is entirely digital, requiring no external components.
The Smoothdrive wave shape is sync with the motor. It divides the electrical period, from one zero crossing to
the next, into 48 evenly spaced sample periods. For each sample period, the driving duty cycle is defined for
each motor phase by a table in the Smoothdrive logic. The Memory Address Counter sequences the samples
through the cycle, and is clocked N times per cycle. The following describes how the frequency locked loop
system works:
There are N sine wave samples per electrical rev. N=48 for this design.
Each electrical period (from one ZC to the next) is measured by a timer with an effective frequency of Fsysclk/
48, resulting in a measured zero crossing period Tc. The timer does not actually run at Fsysclk/48 - the resolution is more like Fsysclk/3.
The FSCAN Counter is a down counter preloaded with Tc, and running at Fsysclk. The FSCAN Counter puts
out a pulse each time it hits zero, then it resets to Tc and counts down again. This cycle occurs N (48) times
per electrical cyc le. Thus, t he FSCAN Counter divides the el ectr ical cycl e into N ev enly spaced s amples based
on the previous Tc. The pulse signal out of this block, that occurs 48 times per electrical period, is called FSCAN.
The Memory Address Counter counts FSCAN pulses, and tells the Profile Logic which full scale duty cycle values to use for each Smoothdrive sample period.
2.4 PWM rate
The PWM rate is unrelated to the Smoothdrive sample rate. The minimum PWM rate is 32.2kHz with 16.5MHz
spindle system cl ock, defined by (Fsys /512). The spin sy stem clock is SYSCLK or SYSCLK/2, chosen via s erial
port (SYSCLK/2 is the default at power up). 9 bits of resolution define the duty cycle at each sample period.
The PWM counter is reset at the beginning of each electrical cycle (at the ZC).
The PWM duty cycle is defined for each of the two chopping phases by comparing the appropriate duty cycle
values to the counter. The duty cycle values are the result of multiplying values in the Smoothdrive waveform
table by the amplitude value KVAL coming from SPI.
2.5 Supply Voltage Compensation via ADC
The Smoothdrive system is a voltage mode drive scheme. Without compensation, the spindle drive amplitude
would be a proportion of the motor supply voltage. L7250 implements a supply voltage compensation scheme
whereby the drive amplitude is indipendent on motor supply voltage.
An internal 6 bit ADC reads the motor supply voltage variation (+/-10%), and the applied duty cycle is modified
to keep the applied voltage constant. A side effect is that the PWM frequency will be changed as well as the
duty cycle.
The ADC runs on a 4MHz clock derived from the SYSCLK (it is divided by 8 if the PRESMO bit is set to zero
else it is divided by 4). The conversion resul ts affects the PWM counter onc e per PWM cycle, nominally 32 kH z.
2.6 BEMF comparator Hysteresis
Since only one polarity ZC is detected, the BEMF comparator hysteresis no longer needs to contribute a time
offset. The hysteresis is zero on the significant edge, and is engaged on the other edge. Thus, larger values of
hysteresis can be used to provide noise immunity at low speed while coasting, without affecting ZC timing.
Hysteresis of 50mV provides adeguate sensitivity for detecting motion startup, while improving noise immunity
when the motor is moving very slow or is stationary.
2.7 Startup Algorithm Description
L7250's spindle motor startup is controlled by firmware, and consists of four distinct phases: Inductive Position
22/46
L7250
Sense, to determine rotor position, Open Loop Commutation, which accelerates the motor to build up BEMF,
Synchronization , to measure motor speed and position, initializing the Smoothdrive system, and Closed Loop
Smoothdrive Commutation, the normal synchronous commutation mode to accelerate and run at speed.
2.7.1 Inductive Position Sense
Inductive position sen sing is achieved throug h a firmware routine that measur es the current rise time in each of
the six possible states (six steps profile), and uses this information to determine the rotor position.
The six steps profile still comes from the Profile Memory that contains 48 samples, but in this case there are
only six different configuration, each of them r epeated eight times; the line ar scansion of the memor y one sample at a time gives a new six step configuration every eight increments.
Before any operation can be done, the firmware routi ne must set the KVAL v alue present in S PI to the maximum
value (*1) , to saturate the PWM signals given to the motor, and put the Memory Address Counter in a known
position (*3); this is done keeping the motor in OLCOAST (*2) state and asserting a LoadCP command (*4) to
load the content of the torque optimizer related SPI register into the Memory Address Counter.
At this point, the present six steps configuration can be energized through the INDSENSE state (*5) , w aiting
for the current to reach the thre shold programmable vi a SPI (*6); the current lim iting comparator will be trigger ed
by this condition, and it's output will be visible at ZC pad. The current rise time will be measured and stored from
the ASIC (*7) .
The device automatically limits the PWM si gnals for the three phases to limit the cur rent, but the cur rents in the
windings must be recirculated from firmware putting the motor in OLCOAST (*8) state.
A burst of eight ADVANCE signals (*9) must be asserted from SPI to reach the next configuration in the profile
memory, then the procedure can be r epeated. Each w inding can be e xcited mor e than one ti me, to av erage the
measurements, and at the end of the sensing sequence the ASIC decides the rotor position.
Figure 4. Inductive Sense Routine
START
Inductive Sense Routine
Nadv=0 , Nph=0
(*2)
(*1)
(*3)
(*4)
(*5)
(*6)
ZC=0
Set OLCOAST
Write Reg.03 H
Spstate[3:0] = 0001
Set KVAL
Write Reg.08 H
Kv[7:0] = 11111111
Set Torque Optimizer
Write Reg.07 H
TO[4:0] = 00000
Set Load Coarse Phase
Write Reg.07 H
LoadCP = 1
Set INDUCTIVE SENSE
Write Reg.03 H
Spstate[3:0] = 0101
Measure Current
Rise Time
By reading the
ZC
(pin 22)
ZC=1
Nph = 48
Nadv=0
YESNO
YES
Nadv=8
Inc Nadv
Inc Nph
Set ADVANCE
Write Reg.07 H
Advance = 1
Wait for
Current Decay
Set OLCOAST
Write Reg.03 H
Spstate[3:0] = 0001
Store the measured
Current Rise Time
& Nph associated
NO
(*9)
(*8)
(*7)
Compare the Six
Measured Rise Time
to define the
ROTOR POSITION
EXIT
Inductive Sense
Routine
23/46
L7250
2.7.2 Open Loop Commutation
After position sense is complete, the microcontroller commutates the motor following a constant acceleration
profile until sufficient BEMF is developed to reliably measure it.
The starting position of the open loop commutation, determined by the position sense routine, is set up by first
initializing the Memory Address Counter using LOADCP (*1), then clocking ADVANCE (*2) the appropriate
number of times (8 pulses pe r 6 s tate position). The spindle state wil l be OLCOAST whi le setting the initial state.
Then, drivers ar e enabled in ei ther OL_SIX or O L_SIN modes (*3 ) , dependi ng on whether 6 state or sine mode
open loop commutation is desired. Once the motor is accelerated up to an appropriate speed (*4) , the motor
is tri-stated by transitioning to the OLCOAST (*5) and then CLCOAST states, as described below, to synchronize the Smoothdrive system to the motor.
Figure 5. Open Loop Commut ation
Note1: Spstate[3:0] condition has
been set in OLCOAST
by the Inductive Sense
Routine
Open Loop Commutation
Nadv=0 , i=0
Set Load Coarse Phase
(*1)
Write Reg.07H
LoadCP = 1
START
(*5)
EXIT
Open Loop
Commutation
Set OLCOAST
Write Reg.03H
Spstate[3:0]=0001
(*2)
Note2: Nalign is received from
the Inductive Sense routine
Indicating the rotor position
alignement
(*3)
Set ADVANCE
Write Reg.07H
Advance = 1
Nadv=Nalign
Accelerate in
Sine or Six
Inc Nadv
SIX
SINE
Set Open Loop SIX
Write Reg.03H
Spstate[3:0] =0010
Set Open Loop SINE
Write Reg.03H
Spstate[3:0] =0011
(*4)
i = RAMP_Steps
Inc i
Wait the End of
RAMP_DELAY[ i ]
Set ADVANCE
Write Reg.07H
Advance = 1
2.7.3 Synchronization to Smoothdrive Commutation
When the open loop commutati on is complete, the dr ivers are put i n OLC OAST mode, and after a delay for setting the Bemf sampling period, CLCOAST is asserted, so that a ZC Period (Tc, the time between two BEMF
zero crossings) can be detected and measured.
The BEMF sampling period is set in OLCOAST (*1) and after a delay (30 usec ) a Load CP ( *2) is asserted.
After a delay of time Tc0 (300usec suggested) another Load CP is asserted (*3); this initializes the electrical
period for BEMF sampling. Once pregrammed the transition to CLCOAST (*4) , the BEMF is sampled at the
rate of Tc0 to look for two consecutive LOW readings (in anticipation of the LOW->HI zero crossing transition
(*5) ).
After the first ZC rising edge, the BEMF sampling period is refreshed to Tc0 value.
If two consecutive ZC edges are detected (*6), then after the last rising edge the Smoothdrive commutation is
synchronized with the motor rotor position and it is ready to be programmed in closed loop commutation .
At least two ZCs must be observed before transitioning to closed loop spinup (CLSIX or CLSIN) (*7a or *7b) .
This ensures that the Smoothdrive circuitry is synchronized to the spindle motor.
24/46
Figure 6. Synchronization to Smooth Drive Commutation
L7250
ZC_SamplingRoutine
Set OLCOAST
(*1)
Write Reg.03H
Spstate[3:0]=0001
Wait Loop
(30 usec)
Set Load Coarse Phase
(*2)
Write Reg.07H
LoadCP = 1
Wait Loop
(300 usec)
Set Load Coarse Phase
(*3)
Write Reg.07H
LoadCP = 1
Set CLCOAST
(*4)
Write Reg.03H
Spstate[3:0]=0000
ZC_SamplingRoutine
BEGIN
END
NO
Time Out
Control
YES
START UP
FAILURE
Exit
ZC_SamplingTime
Reset Time Out
Wait Rising Edge
of ZC (pin 22)
(*6)
YES
START
i=0
CALL
Routine
i = 2
(*5)
YES
NO
Sync. To SmoothDrive Commutation
NO
Set Closed Loop SIX
Write Reg.03H
Spstate[3:0] =0110
Inc i
Drive Commutation
SIX
CALL
ZC_SamplingTime
Routine
Reset Time Out
EXIT
Sync. To Smooth
(*7a)
(*7b)
Motor Running in
Sine or Six
Set Closed Loop SINE
Write Reg.03H
Spstate[3:0] =0111
SINE
2.7.4 Closed Loop Commutation
During closed loop commutation, the motor is driven following the smooth driver wave shape (or the traditional
six step profile). To keep sync, each electrical cycle a winding of the spindle motor (phase U) is tri-stated, for a
programmable (via SPI) window (W), to sense for the ZC occurrence; to mask the current flyback time a masking time is applied starting from the opened window for a certain number M of samples (settable via SPI). Due
to the fact that the moto r windi ng is driven i n voltag e mode a control of the phase shift betw een the applied voltage and the Bemf is required in order to optimize the system efficiency (the loss in efficiency is related to the
cosine of the angle between Bemf and current). Via the SPI it is possible to set an appr opriate Torque Optimizer
(TO) value based on the application characteristics (Rm, Lm, Speed).
When a ZC is detected the circuit starts scanning the s tored smooth drive wave shape (or the traditional six step
profile) from the number of sam ple poi nted by the TO r egister; the tri- s tated window is opened a cer tain number
of samples before.
In the following table the relation between the TO register contents and the window and masking time position
and duration:
startstop
windowTO-WAt ZC detection
maskTO-WTO-W+M
25/46
L7250
2.8 Spindle PWM Current Limiting
Peak motor current is limited with a fixed frequency PWM scheme that works in conjunction with the Smoothdrive PWM rate. When the current limit threshold is reached the motor is put in brake condition, and it is reenabled at the beginning of the next PWM cycle if the current limiting condition is false.
Spindle current is sensed via an external resistor connected from the low side driver sources to ground. This
sense voltage is compared to an internal programmable voltage reference (Reg04H Currdac[2:0]).
There is a built in digital filter, generating a SYSCLK derived delay (20 * SYSCLK period) from the over current
event. This delay appears on both edges of the current limiting comparator.
2.9 Slew Rate Control
Closed loop Voltage Slew rate control is provided on both edges for the high and low side drivers. The slew rate
value can be set with three bits in the serial port (Reg04H Spslew[2:0]). Slew rates up to 80V/us and down to
10V/us will be controllable.
2.10Synchronous rectificat ion
The appropriate low-side driv er is enabl ed during the off-time phase to conduct recirculation curr ent with a lower
voltage drop than the low side driver body diode, reducing power losses. Crossover current protection is provided to prevent shoot-through currents.
2.11Open loop and closed loop brake
Spindle braking may be done while keeping the Smoothdrive system in sync with the motor, or not.
Closed Loop Braking means ZC's are sti ll being detected in the same way as when normally commutating. S o,
all 3 motor phases are dr iv en low, but when the window is normal ly opened to l ook for a ZC, MOTU is tri- stated.
When the ZC occurs, MOTU is driven low as the other motor phases, until the next window comes up. A motionless motor will wait for a ZC, keeping MOTU tri-stated and the other two phases low. Open loop braking
means that all 3 motor phases are driven low, and ZC's are not detected. Braking caused by a power fault is
always open loop braking.
CBRK provides control voltage for br ake ci rcuitry after power fail s. An external cap on this pin is charged to 5V ,
so that the cap stays charged after a power failure.
26/46
L7250
3VOICE COIL MOTOR DRIVER
The VCM driver is configured as a transconductance amp, with an n-channel DMOS H-bridge power output,
current sense amp, error amp, and 15 bit linear DAC for command input. The power stage is a class AB voltage
amp. The error amp closes the transconductance loop around the power amp, using feedback from the current
sense amp. The VCM block is shown below.
Figure 7. VCM Driver Block Diagram
VCV
1/2/54/55
POR
39
DACREF
38
37
40
S1
Tristate
DAC 15
ErrorAmp
S2
DACREF
AGND
DACREF
DACREF
VM/2
Gpow
VM/2
Gpow
SenseAmp
DACREF
Rc
Cc
Ri
Rf
43/44
VM
VM
52/53
VCMN
45/46
VCM
GND
VCMP
VCM GND
Gs
Rs
Rm
Lm
3/4
5/6
42
41
Tristate
The current flowing into the voice coil is equal to:
R
------
–
Where G
I
coil
is the sensing opamp gain (programmable via serial port
s
Considering a typical application where Rf = 5.6k, Ri = 2.5k, Rs = 0.25
R
ƒ
⋅⋅=
i
1
---------------- R
⋅
sGs
V
in
Ω
and Gs = 4.5V/V we obtain a maximum
current equal to about 2A for 1V DAC output (Vin). The sense amplifier input range is about 0.55V. The power
stages assure this current requirement and they have a differential gain of 16.
The loop is compensated through the RC network Rc and Cc that cancels out the motor pole Lm/Rm.
This graphic shows the theoretic Gloop Bode diagram and put in evidence the second pole of the loop that is
strictly related to the error amplifier bandwidth.
Figure 8. Gloop
A02G
-------------------------------------------------
⋅⋅⋅
powRsGs
+
R
sRm
A
⋅
0
R
-----------------
⋅
RiRf+
R
i
----------------RiRf+
i
R
c
-----R
f
Gloop
2G
--------------------------------------
⋅⋅
powRsGs
R
+
R
s
m
----------------
⋅
RfC
1
⋅
c
Fdt erro r
closed loop
ω
⋅
t
R
i
----------------RiRf+
1
---------------- R
⋅
cCc
1
---------------R
⋅
fCc
---------------------------------
ω
⋅
t
R
c
RfR
⋅
RfRi+()⋅
i
27/46
L7250
Considering a typical application with Rs = 0.25Ω, Lm = 0.75mH, Rm = 7.5Ω, Gs = 4.5 Gpow = 8, Rf = 5.6K, Cc =
3.3nF, Rc = 33k we will obtain a bandwidth about 20kHz. To increase the bandwidth a differen t values of the external
components could be calculated following the above relation and taking in account the limitation introduced by the
second pole due to the error amplifier bandwidth (
3.1 VCM Operating Modes and Control
At power-on-reset the VCM register is cleared and the VCM is in Unload/Retract mode.
Via serial port is possible to command the following modes: Unload/Retract, Tri-state (disable), Brake, Enable
Current Mode, Enable Voltage Mode, Offset Calibration
3.2 VCM Power Driver H-Bridge
The VCM driver is capable of high performance linear, class-AB, H-bridge operation with all power devices internal. The power amp st age is configured as a voltage amp with gain of 16. The H -bridge c onsists of 4 N -channel DMOS power transistors. Power is supplied to the H-bridge through the internal ISO-FET ( at pins VM
52,53), and ground returned via four VCMGND pins (5,6,43,44). Boosted gate drive for the high side drivers is
provided by the charge pump circuitry, with the boosted voltage at the VCP pin.
3.3 VCM Current Command 15 bit DAC
The VCM current command is defined by an internal linear, 2's complement, 15 bit DAC. The mid scale reference for the DAC, VREF25, is defined by an on-chip reference at 2.5V. VREF25 is the reference for the sense
amp and error amp in the VCM loop. Level shifting from VREF25 to VM/2 will be done in the power stage.
0x3FFF Max current flowing from VCMN to VCMP (current mode operation)
0x---0x0001
0x0000 zero current
0xFFFF
0x---0x4000 Max current flowing from VCMP to VCMN (current mode operation)
To write the 15 bit DAC the two register REG09H [14:8] and REG0AH [7:0] have to be referred.
At any time the MSB register is entered, to apply the modification also the LSB register must be write. Instead
writing only the LSB register its content will be immediatly visible on the DAC structure.
Then a double write sequence its necessary if the [14:8] bit have to be modified while it is possible to move the
DAC in a fine way (write of the [7:0] bit) with only one write sequence.
ω
t). This one has a ty pical value about 4MHz.
3.4 VCM Current Sense Amp
VCM current is sensed by a diff amp that amplifies and level shifts the voltage drop across an external resistor
in series with the VCM coil. The sense amp has a nominal differential voltage gain programmable through the
serial port bit Reg09H bit 7, and the output, VSENSE, is relat ive to V REF25 (pin 21). The am p has been des ign
to have high common mode rejection (over 70dB at DC), Power supply rejection over 60dB, and as low an input
offset as possible.
3.5 VCM Curre nt Loop Erro r Amplifier
The VCM error amp gains up the difference between the current command voltage DAC_OUT and the current
sense voltage VSENSE. VCM current loop compensation is implemented externally with an RC network connected across ERR_IN and ERR_OUT. The error amp output is referred to VREF25.
3.6 Error Am p Ou tput Clamp
The error amp output swing is clamped in both directions (Vref25+/-3Vbe) to prevent wind-up of the integrating
compensation components around the error amp in the event of saturation.
28/46
L7250
3.6.1 Voltage Mode
In Voltage Mode, the VCM power outputs will apply a voltage to the VCM motor commanded by the VCM DAC.
This is implemented by tristating the sense amp and error amp outputs, and connecting DAC_OUT to
ERR_OUT with an internal switch (switch S2). Skipping the err_out amplifier the DAC command will enter the
power section without any inve rsion, then the DAC codifi cation must be consi dered in opposite dir ection respect
to the current mode operation.
3.7 VCM Loop Offset Calibration Mode
The VCM Loop Calibration mode can be implemented following two different approach:
1)
The VCM loop is enabled (sense amp, error amp, DAC), but the VCM power stage is tri-stated. Thus,
the sense amp is guaranteed to be monitoring a zero current condition.
To implement offset c alibration, the current command is swept through zero by the controller ASIC.
Since the Gm loop is open, the error amp output will be saturated in one direction or the other depending
on the current comman d (to configura te the error op amp as a comparat or the external compensation
network will be disconnected opening the switch S1). As the command sweeps through the zero current
command point, the error amp output will swing to the other extreme. The comparator senses the output swing of the error amp, and through the serial port (Re g. 00H -> b6) interrupts the A SIC. The appropriate DAC value corresponding to the trip point interrupt is the loop zero current offset.
Figure 9. VCM Current Loop Of fset Calibration 1
START
VCM Current Loop
Offset Calibrat ion R out ine
Set SenseAmpl.Gain
Write Reg.09H
GainSW bit = 0
DAC_VAL = DAC_VAL +1
Set VCM Offset Calibration
Write Reg.03H
VCMState[2:0] = 101
DAC_VAL = 0
Flag1 = 0 , Flag2 = 0
4.5 V/V16 V/V
Flag1 = 1
NO
Flag2 =1Flag1 = 1
YES
NOYES
Select
Sense Amplifier
Gain
UPDATE 15 Bit DAC
Write Reg.09H
dac[14:0]= DAC_VAL
Read Error Ampl Output
Read Reg.00H
VCMcalOut bit va lue
VCMcalOut = 0
* DAC_VAL is in 2 complement format
Flag2 = 1
DAC_VAL = DAC_VAL -1
NO
YES
Set SenseAmpl.Gain
Write Reg.09H
GainSW bit = 1
Store the DAC_ VAL
as the zero loop offset
EXIT
VCM Current Loop
Offset Calibrat ion R out ine
29/46
L7250
g
g
g
g
g
g
g
g
g
g
g
g
2)
A second approach is considering to have the VCM in stop position; to enable it in current mode configuration driving current in the right direction in order to be sure to mantain the stop position; to decrement the 15bit DAC value to reach the zero current condition using the 10bit ADC to measure the
current value.
In the following diagram a detailed flow chart is presented.
Figure 10. VCM Current Loop Offset Cal ib rat io n 2
START
Current Mode “Zero Iout”
Calibration Routine
Flag_A=0
DACvalue=1200 ( 0x4B0 )
Note 1
Set VCM in Tristate
Write Re
VCMState[2:0] = 001
IoutDigitalVal Routine
Iout_Offset = ADC_DATA[9:0]
Set 15BitDAC to have VCM Current
Write Re
Dac[14:0] = DACvalue
Set the GainSw to High or Low
Set VCM in En.Current Mode
VCMState[2:0] = 011
Note 1 : once the VCM will be enabled in current mode with the DAC value at 1200 the current will keep the motor against the crash stop posit ion
Note 2 : with the VCM in tristate, the result of the digital conversion of the Iout Channel has to be used as ZERO current offset value
.03H
Call
Note 2
with no motion
.09H & Reg.0Ah
Write Re
.03H
Wait 20 msec
Flag_A=1
DACvalue-=1
DACvalue<-1200
Update the 15BitDAC
Write Re
.09H & Reg.0Ah
Dac[14:0] =DACvalue
Call
IoutDigitalVal
Routine
No
No
IoutYes
Polarity check
ADC_DATA[9] = 0
Yes
ADC_DATA[9:0] -= Iout_offset
( Subtract the offset )
Flag_A=0
No
Store DACvalue
As reference for
ZERO Iout
EXIT with Error 2
Calibration not performed
Ne
ative offset to bi
Yes
Calibration not performed
START
IoutDi
Routine
START 10Bit ADC Conversion
of the Iout Channel
Write Re
ADC_CH_ADDR[1:0] =00
ADC_START=1
Read 10Bit ADC
Read Re
ADC_DATA[9:2]
Read Re
ADC_DATA[1:0]
EXIT
IoutDi
Routine
EXIT with Error 1
Positive offset to bi
EXIT
Current Mode “Zero Iout”
Calibration Routine
italVal
.0CH
Wait End of
Conversion
.0BH
.0CH
italVal
YES
NO
30/46
3.8 VCM Ramp Load / Unload System
Figure 11.
L7250
VCM
Predriver
+A
VCMP
VCM
Rs
VCMN
-A
_
VGA
+
Offset
calibration
Gain
Calibration
Procedure
_
+
_
+
+
_
(Sense Ampl)
Bemf
Voltage
Current
5 MSB from
ADC
CalCoarse
Fine calibration
bit from
Serial Port
ADC
10 bit
Sel&start
Vcontrol
29
to
Serial Port
The Ramp Load system is designed to allow a microcontrolled assisted constant velocity for ramp loading and
unloading.
VCM Current-Voltage-Bemf monitor circuitry is integrated for the loading or unloading operation. VCM CurrentVoltage-Bemf are converted in digital by a 10 bit AD converter and can be read through the serial port.
3.8.1 Load/Unload operatio n at pow er good
When both the 12V and 5V are present, the Load/Unload operation can be as sisted b y the microc ontr oller. The
power stage can be driven in both current and voltage mode and the velocity of the Load/Unload operation is
controlled by reading the internal registers that give information regarding the VCM current, voltage and the
Bemf generated by the VCM motion.
The VCM current measurements is done by sending to the AD converter the output of the VCM Current Sense
Ampl.
The VCM voltage is measured by connecting an operational amplifier, with a scaling factor, to the VCMP and
VCMN of the power stage.
The VCM Bemf detection is done using a first amplifier, having a controlled gain, followed by a second operational amplifier implementing the transfer function necessary to BEMF reconstruction. The programmable gain
of the first operational amplifier it is necessary to consider various coil resistance values related to different application.
The BEMF information is carry out on pin VCMBEMF (31) for filtering pourpose (the output impedance is typically set to 500ohm).
The conversion in digital of these parameters is used by the microcontroller as a feedback to close the velocity
control loop during the ramp loading or unloading operation, and to perform calibrations.
All these signals can enter directly the ADC block (ADCrange bit = 0) or can be scaled to adjust the dynamic
range to the ADC one (ADCRange bit = 1).
The scaling factor is set equal to 2.25 for the ‘Current’, ‘Voltage’, ‘Auxiliary’ input channels, while is set to 1.25
for the ‘Bemf’ input channel.
31/46
L7250
3.8.2 Gain Calibration Procedure
The Bemf detector circuitry must be calibrated right before the beginning of any Load/Unload operation.
Because the coil resistance can vary up to 30% due to thermal effects, it is necessary to calibrate the gain of
the first stage depending on the ratio between the operating coi l resistance value and the sense resistance value.
The output of the Bemf detector circuiry is:
Bemf = OutP - OutM - Rs*Ivcm ( 1+ Rm/Rs)
where: Rm = motor resistance
Rs = sensing resistance
If the Gain of the first stage is matching the ratio between the coil resistance at operating temperature and the
sense resistor, the Bemf measured is right the value generated by the VCM motion.
The gain trimming is done with the VCM in a stop position (no Bemf must be generated) with a certain amount
of current flowing into the coil; in this con dition the gain must be adj usted in order to have zero voltage from the
Bemf circuitry.
The gain adjusting is splitted i n two phases. A coarse calibr ation is obtained setti ng the external resistor divider
at the CalCoarse pin (29) following the relation:
Vcontrol = [0.21 + (Rm/Rs) / 28.8]
Vcontrol max. range = Vbg ±0.75V
Where: Vbg = bandgap voltage (typ = 1.25)
A fine calibration is obtained by writing the internal register 02H -> b[3:0]. The fine calibration is used to com-
pensate the variation of the VCM coil resistance according with operating temperature condition.
The calibration is implemented moving the Vcontrol voltage by a percentage indicated on the RLcal table at
pag.17.
3.8.3 VCM Bemf offset trimming
Due to the high gain necessary to implement the BEMF reconstruction, the inpact of the offset on the output
value is very high. For this reason dedicated ci rcuitry, usin g the 5 MSB of the AD converter, has been integrated
in order to compensate this offset.
The flow chart below reported are describing the method to implement the offset calibration.
To r es tart th is routin e is mandato ry to sta r t
Fir s t t h e clea r routine (see F ig. 10 )
NO
At the end of the calibration routine the analog value measured at pin 31 is rapresenting the VCM BEMF value
at the zero motion (BEMF zero va lue) . With the ADC it i s poss ible to operate a new c onvertion i n or der to memorize this value and to take in account of it during the load/unload procedure.
3.8.4 Power Off Unload - Active brake and constant voltage unload operation
In case of power shut down, an unload procedure start automatically in order to take the heads over the ramp
in the parking positio n ( the s ame proc edur e can be al so e nabled, w hen the power is on, via serial por t programming the unload/retract status of the VCM -> reg. 03H. In this case at the end of the unload phase the spindle
motor is driven in tri-state condition).
The unload procedure doesn’t start at power off if the V CM status bit are set to 000 because the syste m is considering the heads already in park position. No entering the unload procedure also the spindle brake is not activated.
The unload procedure is done in two step:
- active brake
- constant voltage unload operation
The unload procedure take place only if the VCM status bit have moved from the 000 configuration. Otherwise
the unload procedure doesn't star t and in case of power shut down the s pindle motor enter the brake condi tion.
Active Brake : it is used to have a fast recovery of the VCM velocity down to the unload programmed velocity.
If just before a power shut down a fast seek was commanded, it is necessary to recover the VCM velocity in
34/46
L7250
order to avoid to rise the ramp or to meet the ID crash stop at high speed.
The over velocity det ector circui t consist in a window compara tor; in case of power fai lure the VCM power stage is tri-
stated (for a fix ed time about 200
If the VCM Bemf is out of the window of the over velocity detector (this means that the heads are travelling at
high speed versus the inner or outer position), the active brake routine is invoked.
The voltage threshold ( = motor electrical constant * motor angular velocity), setting the over velocity detector
window, is set internally to 1.1V (to 0.4V if 5V application is considered).
At the contrary, if the VCM speed is inside the window (the heads where on track or moving slowly) the active
brake is skipped and the constant unload operation is commanded.
The active brake routine consist in a procedure that drive the VCM alternately with two steps:
- first activating the diagonal of the power stage in order to drive current in the right direction to slow down the
speed of the VCM for a time (RLTonBrake) that is half of the programmed RLToffBrake.
- then activating both the low side drivers of the power st age putting the VCM in short br ake conditi on for a programmable time (RLToffBrake).
With the VCM in short brake the current into the coil is forced by the Bemf generated by the motion of the motor
and the sense amplifier output is sensed in order to detect indirectly the VCM speed.
The switch bet ween the acti ve brake rou tine and th e constant vo ltage unl oad operati on is done when t he VCM current,
measured at the sense amplifier outpu t dur ing the short brake conditi on, fall down to zero (VCM is stopped).
The RLToffBrake (and so the RLTonBrake) time can be programmed by writing the Reg. 02H.
The active brake procedure can enabled/disabled by writing the Reg. 01H. In case the active brake procedure
is disabled, at power off the constant unload operation start immediately.
µ
s) in order to detect the amplitude of the Bemf generated by the VCM motion.
Constant Voltage Unload operation : a constant voltage (with a sink and source capability) is applied to the
VCM in order to drive the heads over the ramp in the parking position.
According with the contents of the registers REG. 01H it is possible to perform the unload operation in one or
two steps and for each steps to select the voltage level applied to the VCM.
The capacitor connected at the Timer1 (pin 28) define the total time of the unload operation ; during the unload
operation this capacitor is discharged by un internal constant current generator.
Programming the bit ‘b3b2b1’ of the REG. 01H it is possible to select different unload procedures:
With these bit set to 000 the unload is done in one step with the voltage selected by the two bit RLvoltage1 of
REG. 01H.
With these bit set to 111 the unload is done in one step with the voltage selected by the two bit RLvoltage2 of
REG. 01H.
The spindle motor is tristated during the unload operation
The other combinations of the bit ‘b3b2b1’ defines different threshold for the comparison with the discharging
voltage of the capacitor at pin 21 .
The timing for the first step is with the capacitor voltage greater then the programmed threshold, the timing for
the second step start when the capacitor voltage is below the threshold and end when the capacitor is discharged under the 'end unload threshold' (0.2V typ) .
In all the cases, when the capacitor at pin 21 is discharged under the 'end unload threshold' the spindle motor
is driven inbrake condition.
The typical value of the retract procedure timing can be extimated using the following expression:
T = Tstep1 + Tstep2 = 1.15 * C
ext
Where:
Cext = External capacitor at pin ‘Timer1’ (28) measured in uF
35/46
L7250
g
g
g
g
g
Figure 14. Costant voltage retract operation at power do wn
Constant Voltage
R etra c t O p e ra tion
Get Rltim er[2:0]
Read Re
Rltimer[2:0] = “000”
Start ONLY U nload1
with the selected
Rlvolta
e1
DisabledEnabled
.01H
No
Rltimer[2:0] = “111”
Yes
Start ONLY U nload2
with the selected
Rlvolta
High
Check NPOR
Status
Set Spindle P owers
in TRISTATE
Check VCM
Active Brake Proc.
.01H -bit[0]
Re
No
Start Unload1 + Unload2
e2
Rlvolta
Low
with the selected
e1 & Rlvoltage2
Start the VCM
Active Brake
Procedure
(*)
Wait END
of Rltimer
Figure 15. Two step unload temporization
Voltage
Capacitor
pin 21
POR
Programming
Threshold
End Unload
Threshold
Step 1Step 2
36/46
Set Spindle P owers
in BR AKE
END
Time
L7250
3.8.5 Constant Voltage Unload operation at POWER ON
The same costant voltage retract operation can be activated via software (during a power on phase). In that
case no actions are implemented to the spindle motor; the spindle motor will continue to mantain its running
status.
Again in power on condition if the bit ‘ b3b2b1’ of the REG. 01 H are set to 000 or 111 only one step cost ant voltage retract is activated as in power off condition with the difference that when the ‘End unload threshold’ is
reached the retract voltage is manta ined appli ed to the motor until a di fferent pr ogrammation i s as sert ed via serial port by the microcontroller.
In all the others ‘b3b2b1’ combination as the timer1 is elapsed the VCM is put in tristate condition.
NOTE: In case of Hard Disk application with CSS operation (no Ramp Loading), the polarity of the VCM connection must be re-
versed. In this way the active brake and the constant voltage unload operations will force the heads in the inner position
of the disks.
3.9 10 bit AD converter
The L7250 device includes a 10 bit analog to digital converter (hereafter ADC).
The ADC uses a two complement output code.
The ADC converts one of four different channels on demand, through SPI, and result of conversion can be read
from SPI too. The uC tells the ADC which channel must be converted, gives a start signal, reads the conversion
result; all this happens through the SPI.
The ADC convertion frequency, then its conversion time, could be changed using two bits into the serial port
(Reg 06H -> b1,b2). Setting these tw o bit to the configur ation 00 the ADC can be dis abled enteri ng a sleep mode
status.
Hereafter is listed the recommended sequence of operations to obtain a conversion from ADC:
µ
A)
C selects which channel must be converted, writing the ADC_CH_ADDR field in SPI (Reg 0CH -> b1,b2);
µ
C selects the ADC input range writing the ADCRange bit (Reg 0CH -> b3);
µ
C writes high the ADC_START bit (Reg 0CH ->b0) in SPI (end of required conversion automatically resets it);
µ
B) now
C can read the conversion result from the SPI registers;
C) a new conversion can be required.
µ
C isn't allowed to require a conversion start when the ADC is already running; the start bit can be written
The
anyway, but ADC logic ignores it and continues the current conversion. If the uC avoids modifies over the
ADC_START bit, it can be used as a flag to state the end of the conversion.
The result of conversion is ten bits wide, larger than the 8 bits SPI registers, so it has been spanned over two
registers; if allow ed by the precision required for the a pplicati on, only the 8 msbits can be r ead with a s ingle SPI
read operation, saving some time.
A new conversion can be required after the end of the previous one but before the read-back of the result, i.e.
swapping the order of (B) and (C) points listed before; working this way, it's possible to convert values closer in
time than with the previous sequence.
SPI includes an additional read-only field (2bits) that contains the channel number related to the present conversion result.
37/46
L7250
g
g
4POWER MONITOR, VOLTAGE REGULATORS AND SHOCK SENSOR
4.1 NPOR - Power ON Reset
The Power On Reset circuit monitors 12V and 5V power supplies as well as 3.3V and 2.5V regulators. If any
monitored voltage fall s below its under voltage thresho ld, NPOR is latc hed low after an internal glitch filter del ay.
When the positive regulators are in position, a delay time is added, the POR delay, before NPOR goes high and
the reset condition is cleared. During this delay time, any power fault will reset the POR delay and start the
process over again.
T
= 0.520 * C
Delay
Where :
= External capacitor on pin CPOR measured in uF.
C
ext
4.2 Linear Voltage Regulators:1.8V & 3.3V
The 3.3V linear use an external NPN transistor connected to the 5V power supply line, instead the 1.8V linear
regulator use an external NPN transistor that could be connected to the 3.3V line or to the 5V power supply line.
To fix the 1.8V regulator voltage output an external resistor divider as to be used.
The regulated voltage could be varied around the 1.8V value (from 1.3V to 2V) choosing the external divider
appropriately.
The stability of the two regulators is guarantee by the external filter capacitor .
The internal Vbg reference is trimmed at the wafer level.
ext
Figure 16. Linear positive regul ators
Vb
R2
R1
Vb
15
16
13
14
33_Base
33_Feed
25_Base
25_Feed
VCC5
3.3V output
Cext
VCC5
R1ext
R2ext
1.8V output
Cext
38/46
L7250
4.3 Negative Voltage Regulator (flyback configuration)
This is the default Negative Voltage R egulator configuration; programming the Test Register is possible to reconfigurate this regulator following the indication present on the next paragraph.
The negative voltage regulator is a fixed frequency switcher intended to provide bias for the MR head preamp.
The NVR consists of an internal triangular wave oscill ator, an error amplifier , a comparator and a circuitry to soft
start_up the regulator itself, in conjuncti on with an external PMOS power device, power diode, inductor, capacitor, feedback r esistors and compens ation netw ork (r efer to the block diagram of the negative voltage regulator
including also the external components).
The error amp compares the exter nal voltage fee dback to the internal re ference (Vb g = 1.25V). The volta ge difference value is scaled by two external resistors. The ratio of these two resistors determines the nominal value
of the regulated negative voltage (the internal reference is set to the bandgap voltage ~1.25V). The error amplifier input is available at N_FEED pin and the amplifier output is available at N_COMP pin. The voltage error
gain and the loop compensation can be adjusted by the external components across these two pins. The output
of the error amplifier is compared to an internal triangular wave oscillator to determine the duty cycle of the external PMOS power switch. A voltage clamp is placed on the error amplifier output to limit the maximum duty
cycle. The nominal value of the triangular wave oscillator frequency is 500 kHz (programming the test register
Reg 0FH to ‘00001001’ it is possible to increment the switching fr equency to the nominal value of 1Mhz). Dur ing
the ON portion of the duty cycle, the PMOS charges an external inductor. During the OFF phase, the inductor
charges a capacitor through an external diode, in a voltage inverter configuration. This architecture avoids any
negative voltage on the L7250 IC pins. Under normal specified load conditions and correct scaling of the external components the regulator circuit should operates in a constant frequency v ariable duty c ycle switch mode
without any cycle slips. The NVR include also a digital soft start_up circuitry in order to limit the in rush current
coming from the power supply when the regulator is turned-on. The NVR is controlled via serial port (using the
Reg. 05H -> b1 the regulator could be turned on and off). During the power-up and power-down phases the
regulator is always off being the serial port in reset status then the VnegEn bit equal to zero. During those phases the N_DRV output driver is in tri-sta t e condition then an external pul l- up to assure the Pch off condition must
be considered.
4.4 Negative Voltage Regulator (CUK configuration)
Programming the Test Register Reg 0FH to ‘00101001’ it is possible to re-configurate the negative regulator
loop inverting its polarity. All the others test register (Reg0FH) configurations are resetting to the default negative voltage regulator loop polari ty (take care to avoid the test register bits modi fication if the ‘CUK configuration’
hardware is present and the negative regulator is enabled).
The functionality of the regulator is the same descripted on the previous paragraph with the difference that the
loop polarity is reversed to permit to drive the external Nch component.
During this operation the nominal value of the triangular wave oscillator frequency is always fixed to 1 MHz.
The NVR is controlled via serial port (using the Reg. 05H -> b1 the regulator could be turned on and off).
Take care to program correctly the Test Register to enter the CUK configuration before to enable the NVR.
During the power-up and power-down phases the r egulator is always off being the serial port in res et status then
the VnegEn bit equal to zero. During those phases the N_DRV output driver is in tri-state condition then an external pull-down to assure the Nch off condition must be considered.
This block takes input from a piezoelectric or charging mode shock sensor element (selectable using the SPI
bit ShockConf -> Reg02H, bit 7 ), and includes external filtering capability. A digital latched signal is available
on SkDout pin if the Sken bit (from SPI) is set to 1 otherwise the SkDout pin is transparent to the shock signal.
If the output signal has been latched, a pulse to zero of the Sken bit it is necessary to clear it.
The shock sensor element will be connected to the Skin and VREF25.
Figure 19. Piezoelectric Shock Sen sor typical app lication bloc k diagram (Reg0 2H->bit7=0)
L7250 has a temperature protection circuit consisting of a temperature sense cir cuit and two comparators. The
temperature sense circuit generates a voltage proportional to the absolute die temperature. One comparator
trips when the die temperature exceeds 140 deg C, asserting the temperature warning signal in the status register (ThWarn in the Reg 00H -> b3). The thermal warning comparator has nominally 20 deg C hysteresis.
The thermal Shutdown comparator trips when the die temperature exceeds 160 deg C, indicates an over temperature condition in the status register (ThShutdown in the Reg00H -> b4). The status register is transparent
to the thermal shutdown information.
If the ThShutdown bit is equal to zero only the flag on the status register is activated, else the L7250 is driven
into thermal shutdown mode, which initiates Unload of the Voice Coil Motor (no actions on the Spindle motor
has been taken). Hysteresis of 25 deg C on this comparator allows the die temperature to stabilize before it is
re-enabled.
Iif the ThShutdown bit is set to 1, the thermal Shutdown condition is latched, then to re-enable the function a
reset cycle is needed (ThShutdown bit must be programmed to 0, then set again to 1).
Information furnished is believed to be accurate and reliable. However, STMicroelectronics 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 implic ation or otherwise under any patent or patent r i ght s of STMi croelectr oni cs. Spec i fications mentione d i n this publication are subject
to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics product s are not
authorized for use as cri tical comp onents in lif e support devi ces or systems without express written approva l of STMicroe l ectronics.
The ST logo is a registered trademark of STMicroelectronics
2001 STMi croelectronics - All Ri ghts Reserved
Australi a - Brazil - China - Finland - France - Germany - Hong Kong - India - Italy - Japan - Malaysia - Malt a - Mo rocco - Sing apore - Spain
STMicroelectronics GROUP OF COMPANIES
- Sweden - Sw itzerlan d - United Kin gdom - U.S.A.
http://www.s t. com
46/46
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.