![](http://datasheet.mmic.net.cn/370000/L6239_datasheet_16703398/L6239_7.png)
INTERNAL REGISTER DEFINITION
Spin Control Register (Reg 0)
The first (bits 0-8) is to programthe current to the
Reg:
0
Type:
Write only.
spindle motor to allow motor control and to pre-
sent the ”at speed”voltagefor the chargepump.
Oftenthis will be used to limit the start-up current.
BIT
0
1
2
3
4
5
6
7
8
LABEL
DESCRIPTION
@POR_ LOW
0
0
0
0
0
0
0
0
0
SPIN DAC BIT 0
SPIN DAC BIT 1
SPIN DAC BIT 2
SPIN DAC BIT 3
SPIN DAC BIT 4
SPIN DAC BIT 5
SPIN DAC BIT 6
SPIN DAC BIT 7
SPIN RANGE
Spindle current limit LSB
Spindle current limit MSB
Spindle transconductance loop gain range select, 0 = 4:1, 1= 20:1
BIT
0
1
2
3
4
5
6
7
8
LABEL
DESCRIPTION
@POR_ LOW
0
0
0
0
0
0
0
0
0
SLEEP
BRAKE
PWM/LINEAR
SINGLE/MULTI
ENABLE CLK
RESPHASE
TRIST di
CLKDIV2
ENABLE NEG
A0 puts the spindle into a high impedance state
A1 turns on all lower spindle drivers to brake the spindle
Selects either PWM (1) or Linear (0) modes of operation
1 selects phase. A for zero crossings, 0 selectsall three phases
Enables (1) the SPIN CLK pulses to increment the spindle counter
Logic low to reset spindle counter
Logic low to tristate BEMF DET output.
Logic low - sys clk; logic high - half system clock
Enables Negative Voltage circuitry (when set to 1).
Logic low - masking time equal to 512 cyclesof sys clk. Logic high -
masking time equal to 1024 cycles of sys clk.
Test pin
Test pin
9
TIME2X
0
10
11
TEST PIN1
TEST PIN2
0
0
SystemInput Register (Reg 1)
Reg:
1
Type:
Write only.
BIT
0
1
2
3
4
5
LABEL
DESCRIPTION
@POR
0
0
0
0
0
0
BEMF A
BEMF B
BEMF C
IN X
IN Y
IN Z
Phase A zero crossing detected
Phase B zero crossing detected
Phase C zero crossing detected
Grey codecounter bit X
Grey codecounter bit Y
Grey codecounter bit Z
Thermal shutdown warning. This occurs approximately 25
°
C before
the device goes into thermal shutdown.
If PWM bit is set to 0, this bit represent the status of the loopback
comparator
6
THERM_WARN
0
7
LOOP_BACK
0
SystemInput Register (Reg 2)
Reg:
2
Type:
Readonly.
L6239
7/13