Amis 30532 D PDF
Amis 30532 D PDF
Amis 30532 D PDF
Micro-Stepping Motor
Driver
Introduction
The AMIS−30532 is a micro−stepping stepper motor driver for
bipolar stepper motors. The chip is connected through I/O pins and an www.onsemi.com
SPI interface with an external microcontroller. It has an on−chip
voltage regulator, reset−output and watchdog reset, able to supply
peripheral devices. The AMIS−30532 contains a current−translation
table and takes the next micro−step depending on the clock signal on
the “NXT” input pin and the status of the “DIR” (=direction) register
or input pin. The chip provides a so−called “speed and load angle”
output. This allows the creation of stall detection algorithms and
NQFP−32, 7x7
control loops based on load−angle to adjust torque and speed. It is CASE 560AA
using a proprietary PWM algorithm for reliable current control.
The AMIS−30532 is implemented in I2T100 technology, enabling
both high−voltage analog circuitry and digital functionality on the
MARKING DIAGRAM
same chip. The chip is fully compatible with the automotive voltage
requirements.
The AMIS−30532 is ideally suited for general−purpose stepper
motor applications in the automotive, industrial, medical, and marine
environment. With the on−chip voltage regulator it further reduces the
BOM for mechatronic stepper applications.
Key Features
• Dual H−Bridge for 2−Phase Stepper Motors
• Programmable Peak−Current up to 1.6 A Continuous† (3.0 A Short
Time) using a 5−bit Current DAC
• On−Chip Current Translator
• SPI Interface
• Speed and Load Angle Output
A = Assembly Location
• Seven Step Modes from Full−Step Up to 32 Micro−Steps WL = Wafer Lot
• Fully Integrated Current−Sense YY = Year
WW = Work Week
• PWM Current Control with Automatic Selection of Fast and Slow G = Pb−Free Designator
Decay CCCCC = Country of Assembly
• Low EMC PWM with Selectable Voltage Slopes
• Active Fly−Back Diodes
ORDERING INFORMATION
• Full Output Protection and Diagnosis See detailed ordering and shipping information in the package
• Thermal Warning and Shutdown dimensions section on page 27 of this data sheet.
†Output current level may be limited by ambient temperature and heat sinking.
*For additional information on our Pb−Free strategy and soldering details, please
download the ON Semiconductor Soldering and Mounting Techniques
Reference Manual, SOLDERRM/D.
Block DIAGRAM
CLR
Band− AMIS−30532
ERR gap
GND
Figure 1. Block Diagram AMIS−30532
www.onsemi.com
2
AMIS−30532
PIN DESCRIPTION
POR/WD
MOTXP
MOTXP
TST0
VDD
VBB
DO
32 31 30 29 28 27 26 25
GND 1 24 GND
DI 2 23 GND
CLK 3 22
MOTXN
NXT 4 21 MOTXN
DIR 5
AMIS −30532 20 MOTYN
ERR 6 19
MOTYN
SLA 7 18
GND
8 17 GND
9 10 11 12 13 14 15 16
MOTYP
MOTYP
CPP
VCP
CLR
CS
VBB
CPN
Junction – to – Ambient
www.onsemi.com
3
AMIS−30532
EQUIVALENT SCHEMATICS
Following figure gives the equivalent schematics of the user relevant inputs and outputs. The diagrams are simplified
representations of the circuits used.
4K
IN
OUT
Rin
TYPE 1: CLR input TYPE 4: DO and ERRB open drain outputs
4K
IN Rout
SLA
TYPE 2 : CLK , DI, CSB , NXT , DIR inputs TYPE 5: SLA analog output
VDD VBB
VDD VBB
.
TYPE 3: VDD and VBB power supply inputs
The AMIS−30532 is available in a NQFP32 package. For The Rthja for 2S2P is simulated conform JEDEC
cooling optimizations, the NQFP has an exposed thermal JESD−51 as follows:
pad which has to be soldered to the PCB ground plane. The • A 4−layer printed circuit board with inner power planes
ground plane needs thermal vias to conduct the heat to the and outer (top and bottom) signal layers is used
bottom layer. Figure 3 gives an example for good power • Board thickness is 1.46 mm (FR4 PCB material)
distribution solutions.
• The 2 signal layers: 70 mm thick copper with an area of
For precise thermal cooling calculations the major
5500 mm2 copper and 20% conductivity
thermal resistances of the device are given. The thermal
media to which the power of the devices has to be given are: • The 2 power internal planes: 36 mm thick copper with
• Static environmental air (via the case) an area of 5500 mm2 copper and 90% conductivity
The Rthja for 1S0P is simulated conform to JEDEC
• PCB board copper area (via the exposed pad) JESD−51 as follows:
The thermal resistances are presented in Table 5: DC
Parameters.
• A 1−layer printed circuit board with only 1 layer
The major thermal resistances of the device are the Rth • Board thickness is 1.46 mm (FR4 PCB material)
from the junction to the ambient (Rthja) and the overall Rth • The layer has a thickness of 70 mm copper with an area
from the junction to exposed pad (Rthjp). In Table 5 below of 5500 mm2 copper and 20% conductivity
one can find the values for the Rthja and Rthjp, simulated
according to JESD−51:
www.onsemi.com
4
AMIS−30532
ÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉ
ÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏ
ÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏ
ÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉ
ÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏ
ÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉ
ÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏ
ÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉ
ÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏ
ÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉ
ÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏ
ÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉ
NQFP−32
ÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏ
ÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉ
ÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏ
ÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉ
ÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏÏ
ÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉÉ
Figure 4. Example of NQFP-32 PCB Ground Plane Layout in Top View (Preferred Layout at Top and Bottom)
ELECTRICAL SPECIFICATION
www.onsemi.com
5
AMIS−30532
Table 5. DC PARAMETERS (The DC parameters are given for VBB and temperature in their operating ranges unless otherwise
specified) Convention: currents flowing in the circuit are defined as positive.
www.onsemi.com
6
AMIS−30532
Table 5. DC PARAMETERS (The DC parameters are given for VBB and temperature in their operating ranges unless otherwise
specified) Convention: currents flowing in the circuit are defined as positive.
CHARGE PUMP
Vcp Output voltage 6 V< VBB < 15 V 2*VBB–1.5 V
www.onsemi.com
7
AMIS−30532
Table 6. AC PARAMETERS (The AC parameters are given for VBB and temperature in their operating ranges)
Symbol Pin(s) Parameter Remark/Test Conditions Min Typ Max Unit
INTERNAL OSCILLATOR
CLR FUNCTION
TCLR CLR Hard reset duration time 100 ms
POWERUP
tPU Powerup time VBB = 12 V, ILOAD = 50 mA, 110 ms
CLOAD = 220 nF
POR /
tPOR WD Reset duration See Figure 16 100 ms
tRF Reset filter time See Figure 16 1.0 ms
WATCHDOG
tWDTO Watchdog time out interval 32 512 ms
POR /
tWDPR WD Prohibited watchdog acknowledge 2.0 ms
delay
NXT FUNCTION
tNXT_HI NXT Minimum, High Pulse Width See Figure 5 2.0 ms
tNXT_HI NXT Minimum, Low Pulse Width See Figure 5 2.0 ms
tDIR_SET NXT NXT Hold Time, Following Change of See Figure 5 0.5 ms
DIR
tDIR_HOLD NXT Hold Time, Before Change of DIR See Figure 5 0.5 ms
11. Characterization Data Only
12. Guaranteed by design
www.onsemi.com
8
AMIS−30532
tNXT_HI tNXT_LO
0.5 VCC
NXT
tDIR_SET tDIR_HOLD
ÎÎ ÎÎÎÎÎÎÎÎÎÎ
DIR ÎÎ
ÎÎ VALID ÎÎÎÎÎÎÎÎÎÎ
ÎÎÎÎÎÎÎÎÎÎ
Figure 5. NXT−Input Timing Diagram
CS 0. 2 V CC 0 .2 VCC
0 .8 V CC
CLK 0 .2 VCC 0.2 VCC
tCLK_HI tCLK _LO
ÎÎÎ ÎÎÎÎÎÎÎÎÎÎÎ
tSET_DI tHOLD_DI
www.onsemi.com
9
AMIS−30532
D1
100 nF 100 nF 100 nF
VBAT
C2 C1
C4 C3
C5 C6 100 μF
R2 R3 R4
100 nF VDD VBB VBB
220 nF
32 14 27
VCP
11
POR/WD CPN
28 9
C7
DIR
5
NXT
AMIS−3053 210 220 nF
4 CPP
DO 31 MOTXP
25, 26
DI
2
μC CLK
3 21, 22
MOTXN
CS 13 M
CLR MOTYP
12 15, 16
ERR 6 MOTYN
19, 20
SLA
7
R1
C8 1 17 18 23 24 29
TSTO
GND
www.onsemi.com
10
AMIS−30532
FUNCTIONAL DESCRIPTION
Icoil
Set value
Actual value
t
0
TPWM
www.onsemi.com
11
AMIS−30532
Automatic Duty Cycle Adaptation process is completely automatic and requires no additional
In case the supply voltage is lower than 2*Bemf, then the parameters for operation. The over−all current−ripple is
duty cycle of the PWM is adapted automatically to > 50% to divided by two if PWM frequency is doubled (see SPI
maintain the requested average current in the coils. This Control Parameter Overview PWMF).
Icoil
Duty Cycle
< 50% Duty Cycle >50% Duty Cycle < 50%
Actual value
Set value
TPWM
Step Translator and Step Mode When remaining in the same step mode, subsequent
The step translator provides the control of the motor by translator positions are all in the same column and increased
means of SPI register Stepmode: SM[2:0], SPI register or decreased with 1. Table 10 lists the output current versus
DIRCNTRL, and input pins DIR and NXT. It is translating the translator position.
consecutive steps in corresponding currents in both motor As shown in Figure 10 the output current−pairs can be
coils for a given step mode. projected approximately on a circle in the (Ix, Iy) plane.
One out of seven possible stepping modes can be selected There are, however, two exceptions: uncompensated half
through SPI−bits SM[2:0] (see SPI Control Parameter step and full step. In these step modes the currents are not
Overview). After power−on or hard reset, the coil−current regulated to a fraction of Imax but are in all intermediate steps
translator is set to the default 1/32 micro−stepping at regulated at 100%. In the (Ix, Iy) plane the current−pairs are
position ‘0’. Upon changing the step mode, the translator projected on a square. Table 9 lists the output current versus
jumps to position 0* of the corresponding stepping mode. the translator position for these cases.
Table 9. SQUARE TRANSLATOR TABLE FOR FULL STEP AND UNCOMPENSATED HALF STEP
Stepmode ( SM[2:0] ) % of Imax
101 110
www.onsemi.com
12
AMIS−30532
www.onsemi.com
13
AMIS−30532
www.onsemi.com
14
AMIS−30532
Iy Iy Iy
NXT
Update Update
Translator Position Translator Position
Synchronization of Step Mode and NXT Input If the step resolution is decreased at a translator table
When step mode is re−programmed to another resolution position that is shared both by the old and new resolution
(Figure 12), then this is put in effect immediately upon the setting, then the offset is zero and micro−stepping is
first arriving “NXT” input. If the micro−stepping resolution proceeds according to the translator table.
is increased, the coil currents will be regulated to the nearest If the translator position is not shared both by the old and
micro−step, according to the fixed grid of the increased new resolution setting, then the micro−stepping proceeds
resolution. If however the micro−stepping resolution is with an offset relative to the translator table (See Figure 12
decreased, then it is possible to introduce an offset (or phase right hand side).
shift) in the micro−step translator table.
www.onsemi.com
15
AMIS−30532
Change from lower to higher resolution Change from higher to lower resolution
Iy Iy Iy Iy
DIR DIR DIR DIR
NXT2 NXT1
endpos NXT3 NXT1 endpos startpos
Ix Ix Ix NXT3
Ix
Left: Change from lower to higher resolution. The left−hand side depicts the ending half−step position during which a new
step mode resolution was programmed. The right−hand side diagram shows the effect of subsequent NXT commands on the
micro−step position.
Right: Change from higher to lower resolution. The left−hand side depicts the ending micro−step position during which a new
step mode resolution was programmed. The right−hand side diagram shows the effect of subsequent NXT commands on the
half−step position.
Note: It is advised to reduce the micro−stepping resolution only at micro−step positions that overlap with desired micro−step
positions of the new resolution.
Peak Current
3.02 A
Current Range 3
CUR[ 4:0] = 23 −> 31
1.26 A
Current Range 2
CUR [4:0] = 16 −> 22
654 mA
Current Range 1
CUR[4:0] = 9 −> 15
328 mA
Current Range 0
CUR[4:0] = 0 −> 8
0 8 15 22 31 CUR[4:0]
www.onsemi.com
16
AMIS−30532
Speed and Load Angle Output current zero crossings”. Per coil, two zero−current positions
The SLA−pin provides an output voltage that indicates the exist per electrical period, yielding in total four zero−current
level of the Back−e.m.f. voltage of the motor. This observation points per electrical period.
Back−e.m.f. voltage is sampled during every so−called “coil
I COIL V BEMF
ZOOM
Previous Next
Coil Current Zero Crossing
M icro −step M icr o −step
V COIL
Voltage Transient
V BB
|V BEMF |
Because of the relatively high recirculation currents in the of the coil voltage is not visible anymore, this mode
coil during current decay, the coil voltage VCOIL shows a generates smoother Back e.m.f. input for post−processing,
transient behavior. As this transient is not always desired in e.g. by software.
application software, two operating modes can be selected In order to bring the sampled Back e.m.f. to a descent
by means of the bit <SLAT> (see “SLA−transparency” in output level (0 V to 5 V), the sampled coil voltage VCOIL is
see SPI Control Parameter Overview). The SLA pin shows divided by 2 or by 4. This divider is set through an SPI bit
in ”transparent mode” full visibility of the voltage transient <SLAG>. (see SPI Control Parameter Overview)
behavior. This allows a sanity−check of the speed−setting The following drawing illustrates the operation of the
versus motor operation and characteristics and supply SLA−pin and the transparency−bit. “PWMsh” and “ICOIL =
voltage levels. If the bit “SLAT” is cleared, then only the 0” are internal signals that define together with SLAT the
voltage samples at the end of each coil current zero crossing sampling and hold moments of the coil voltage.
are visible on the SLA−pin. Because the transient behavior
www.onsemi.com
17
AMIS−30532
Ssh Sh
VCOIL div2
div4
buf SLA−pin
Csh Ch
Icoil=0 SLAT
PWMsh NOT(Icoil=0)
PWMsh
Icoil=0
SLAT
VCOIL
Warning, Error Detection and Diagnostics Note: Successive reading the SPI StatusRegisters 1 and 2 in
Feedback case of a short circuit condition, may lead to damage to the
drivers.
Thermal Warning and Shutdown
When junction temperature rises above TTW, the thermal Open Coil/Current Not Reached Detection
warning bit <TW> is set (Table 16 SPI Status registers Open coil detection is based on the observation of 100%
Address SR0). If junction temperature increases above duty cycle of the PWM regulator. If in a coil 100% duty cycle
thermal shutdown level, then the circuit goes in “Thermal is detected for longer than 200 ms then the related driver
Shutdown” mode (<TSD>) and all driver transistors are transistors are disabled (high−impedance) and an
disabled (high impedance) (see Table 16 SPI Status registers appropriate bit in the SPI status register is set (<OPENX> or
Address SR2). The conditions to reset flag <TSD> is to be <OPENY>). (Table 16)
at a temperature lower than TTW and to clear the <TSD> flag When the resistance of a motor coil is very large and the
by reading it using any SPI read command. supply voltage is low, it can happen that the motor driver is
not able to deliver the requested current to the motor. Under
Overcurrent Detection these conditions the PWM controller duty cycle will be
The overcurrent detection circuit monitors the load 100% and after 200 ms the error pin and <OPENX>,
current in each activated output stage. If the load current <OPENY> will flag this situation (motor current is kept
exceeds the overcurrent detection threshold, then the alive). This feature can be used to test if the operating
over−current flag is set and the drivers are switched off to conditions (supply voltage, motor coil resistance) still allow
reduce the power dissipation and to protect the integrated reaching the requested coil−current or else the coil current
circuit. Each driver transistor has an individual detection bit should be reduced.
in (see Table 16 SPI Status registers Address SR1 and SR2:
<OVCXij> and <OVCYij>). Error condition is latched and Charge Pump Failure
the microcontroller needs to clean the status bits to reactivate The charge pump is an important circuit that guarantees
the drivers. low RDS(on) for all drivers, especially for low supply
www.onsemi.com
18
AMIS−30532
voltages. If supply voltage is too low or external components some low−voltage analog blocks and external circuitry. The
are not properly connected to guarantee RDS(on) of the voltage is derived from an internal bandgap reference. To
drivers, then the bit <CPFAIL> is set (Table 16). Also after calculate the available drive−current for external circuitry,
POR the charge pump voltage will need some time to exceed the specified Iload should be reduced with the consumption
the required threshold. During that time <CPFAIL> will be of internal circuitry (unloaded outputs) and the loads
set to “1”. connected to logic outputs. See Table 5 DC Parameters.
VBB
VDDH
VDDL
t
< tRF
POR/WD pin
tPOR tRF
Watchdog Function analog circuits is depending on the reset state of the digital,
The watchdog function is enabled/disabled through charge pump remains active. Logic 0 on CLR pin resumes
<WDEN> bit (Table 13: SPI CONTROL REGISTERS (ALL normal operation again.
SPI control registers have Read/Write Access and default to The voltage regulator remains functional during and after
”0” after power−on or hard reset.)). Once this bit has been set the reset and the POR/WD pin is not activated. Watchdog
to “1” (watchdog enable), the microcontroller needs to function is reset completely.
re−write this bit to clear an internal timer before the
watchdog timeout interval expires. In case the timer is Sleep Mode
activated and WDEN is acknowledged too early (before The bit <SLP> in SPI Control Register 2 (See Table 12)
tWDPR) or not within the interval (after tWDTO), then a reset is provided to enter a so−called “sleep mode”. This mode
of the microcontroller will occur through POR/WD pin. In allows reduction of current−consumption when the motor is
addition, a warm/cold boot bit <WD> is available (see not in operation. The effect of sleep mode is as follows:
Tables 16 and 17) for further processing when the external • The drivers are put in HiZ
microcontroller is alive again. • All analog circuits are disabled and in low−power mode
• All internal registers are maintaining their logic content
CLR Pin (=Hard Reset)
Logic 0 on CLR pin allows normal operation of the chip. • NXT and DIR inputs are forbidden
To reset the complete digital inside AMIS−30532, the input • SPI communication remains possible (slight current
CLR needs to be pulled to logic 1 during minimum time increase during SPI communication)
given by tCLR. (Table 6 AC Parameters). This reset function • Reset of chip is possible through CLR pin
clears all internal registers without the need of a
power−cycle, except in sleep mode. The operation of all
www.onsemi.com
19
AMIS−30532
• Oscillator and digital clocks are silent, except during leaving sleep mode, this timer continues from the value it
SPI communication had before entering sleep mode.
The voltage regulator remains active but with reduced Normal operation is resumed after writing logic ‘0’ to bit
current−output capability (ILOADSLP). The watchdog timer <SLP>. A start−up time is needed for the charge pump to
stops running and it’s value is kept in the counter. Upon stabilize. After this time, NXT commands can be issued.
VBB
VDD tPU
VDDH
tPOR
POR/WD pin
Enable WD
= tWDPR or = tWDTO
> tWDPR and < tWDTO
Acknowledge WD
t
tWDTO
WD timer t
Note: tDSPI is the time needed by the external microcontroller to shift−in the <WDEN> bit after a power−up.
The duration of the watchdog timeout interval is programmable through the WDT[3:0] bits (See also Table 13: SPI
CONTROL REGISTERS (ALL SPI control registers have Read/Write Access and default to “0” after power−on or hard reset.).
The timing is given in Table 12 below.
www.onsemi.com
20
AMIS−30532
SPI INTERFACE
The serial peripheral interface (SPI) allows an external DO signal is the output from the Slave (AMIS−30532), and
microcontroller (Master) to communicate with DI signal is the output from the Master. A chip select line
AMIS−30532. The implemented SPI block is designed to (CS) allows individual selection of a Slave SPI device in a
interface directly with numerous micro−controllers from multiple−slave system. The CS line is active low. If
several manufacturers. AMIS−30532 acts always as a Slave AMIS−30532 is not selected, DO is pulled up with the
and can’t initiate any transmission. The operation of the external pull up resistor. Since AMIS−30532 operates as a
device is configured and controlled by means of SPI Slave in MODE 0 (CPOL = 0; CPHA = 0) it always clocks
registers which are observable for read and/or write from the data out on the falling edge and samples data in on rising
Master. edge of clock. The Master SPI port must be configured in
MODE 0 too, to match this operation. The SPI clock idles
SPI Transfer Format and Pin Signals low between the transferred bytes.
During a SPI transfer, data is simultaneously transmitted The diagram below is both a Master and a Slave timing
(shifted out serially) and received (shifted in serially). A diagram since CLK, DO and DI pins are directly connected
serial clock line (CLK) synchronizes shifting and sampling between the Master and the Slave.
of the information on the two serial data lines (DO and DI).
# CLK cycle 1 2 3 4 5 6 7 8
CS
CLK
ÎÎÎÎ
DI MSB 6 5 4 3 2 1 LSB
ÎÎÎÎ
ÎÎÎ
ÎÎÎ
ÎÎÎ
DO MSB 6 5 4 3 2 1 LSB
Transfer Packet
Serial data transfer is assumed to follow MSB first rule.
The transfer packet contains one or more 8−bit characters
(bytes).
BYTE 1 BYTE 2
Command and SPI Register Address Data
Byte 1 contains the Command and the SPI Register sent from the Master in a WRITE operation, or received
Address and indicates to AMIS−30532 the chosen type of from AMIS−30532 in a READ operation.
operation and addressed register. Byte 2 contains data, or
www.onsemi.com
21
AMIS−30532
Two command types can be distinguished in the READ command. This READ command contains the
communication between master and AMIS−30532: address of the SPI register to be read out. At the falling edge
• READ from SPI Register with address ADDR[4:0]: of the eight clock pulse the data−out shift register is updated
CMD2 = “0” with the content of the corresponding internal SPI register.
• WRITE to SPI Register with address ADDR[4:0]: In the next 8−bit clock pulse train this data is shifted out via
CMD2 = “1” DO pin. At the same time the data shifted in from DI
(Master) should be interpreted as the following successive
READ Operation command or dummy data.
If the Master wants to read data from Status or Control
Registers, it initiates the communication by sending a
COMMAND
DATA DATA
Figure 20. Single READ Operation where DATA from SPI register with Address 1 is read by the Master
All 4 Status Registers (see SPI Registers) contain 7 data high, the Master should force CS high immediately after the
bits and a parity check bit The most significant bit (D7) READ operation. For the same reason it is recommended to
represents a parity of D[6:0]. If the number of logical ones keep the CS line high always when the SPI bus is idle.
in D[6:0] is odd, the parity bit D7 equals “1”. If the number
of logical ones in D[6:0] is even then the parity bit D7 equals WRITE Operation
“0”. This simple mechanism protects against noise and If the Master wants to write data to a Control Register it
increases the consistency of the transmitted data. If a parity initiates the communication by sending a WRITE
check error occurs it is recommended to initiate an command. This contains the address of the SPI register to
additional READ command to obtain the status again. write to. The command is followed with a data byte. This
Also the Control Registers can be read out following the incoming data will be stored in the corresponding Control
same routine. Control Registers don’t have a parity check. Register after CS goes from low to high! AMIS−30532
The CS line is active low and may remain low between responds on every incoming byte by shifting out via DO the
successive READ commands as illustrated in Figure 22. data stored in the last received address.
There is however one exception. In case an error condition It is important that the writing action (command − address
is latched in one of Status Registers (see SPI Registers) the and data) to the Control Register is exactly 16 bits long. If
ERRB pin is activated. (See Section Error Output). This more or less bits are transmitted the complete transfer packet
signal flags a problem to the external microcontroller. By is ignored.
reading the Status Registers information about the root A WRITE command executed for a read−only register
cause of the problem can be determined. After this READ (e.g. Status Registers) will not affect the addressed register
operation the Status Registers are cleared. Because the and the device operation.
Status Registers and ERRB pin (see SPI Registers) are only Because after a power−on−reset the initial address is
updated by the internal system clock when the CS line is unknown the data shifted out via DO is not valid.
www.onsemi.com
22
AMIS−30532
COMMAND DATA
Figure 21. Single WRITE Operation where DATA from the Master is written in SPI register with Address 3
Examples of Combined READ and WRITE by writing a control byte in Control Register at ADDR2.
Operations Note that during the write command the old data of the
In the following examples successive READ and WRITE pointed register is returned at the moment the new data is
operations are combined. In Figure 22 the Master first reads shifted in.
the status from Register at ADDR4 and at ADDR5 followed
Registers are updated with the internal The NEW DATA is written into the
status at the rising edge of the internal correspondinginternal register at
AMIS−30532 clock when CS = 1 the rising edge of CS
CS
After the write operation the Master could initiate a read transmitted. This rule also applies when the master device
back command in order to verify the data correctly written wants to initiate an SPI transfer to read the Status Registers.
as illustrated in Figure 23. During reception of the READ Because the internal system clock updates the Status
command the old data is returned for a second time. Only Registers only when CS line is high, the first read out byte
after receiving the READ command the new data is might represent old status information.
www.onsemi.com
23
AMIS−30532
Registers are updated with The NEW DATA is written into the
the internal status at the correspondinginternal register at
rising edge of CS the rising edge of CS
CS
Figure 23. A WRITE Operation Where DATA from the Master is Written in SPI Register with Address 2 Followed by
a READ Back Operation to Confirm a Correct WRITE Operation
NOTE: The internal data−out shift buffer of AMIS−30532 is updated with the content of the selected SPI register only at the last (every
eight) falling edge of the CLK signal (see SPI Transfer Format and Pin Signals). As a result, new data for transmission cannot be
written to the shift buffer at the beginning of the transfer packet and the first byte shifted out might represent old data.
Table 13. SPI CONTROL REGISTERS (All SPI control registers have Read/Write Access and default to “0” after power−on or
hard reset)
Structure
Address Reset 0 0 0 0 0 0 0 0
WR (00h) Data WDEN WDT[3:0] − − −
www.onsemi.com
24
AMIS−30532
Controls the direction of rotation (in combination <DIRCTRL> = 1 CCW motion (Note 15)
DIRCTRL
with logic level on input DIR) <DIR> = 1 <DIRCTRL> = 0 CCW motion (Note 15)
<DIRCTRL> = 1 CW motion (Note 15)
<NXTP> = 0 Trigger on rising edge
NXTP Selects if NXT triggers on rising or falling edge
<NXTP> = 1 Trigger on falling edge
00 Very Fast
Turn On – Turn−off Slopes of motor driver 01 Fast
EMC[1:0]
(Note 14) 10 Slow
11 Very Slow
<SLAT> = 0 SLA is transparent
SLAT Speed load angle transparency bit
<SLAT> = 1 SLA is NOT transparent
<SLAG> = 0 Gain = 0.5
SLAG Speed load angle gain setting
<SLAG> = 1 Gain = 0.25
<PWMF> = 0 Default Frequency
PWMF Enables doubling of the PWM frequency (Note 14)
<PWMF> = 1 Double Frequency
<PWMJ> = 0 Jitter disabled
PWMJ Enables jittery PWM
<PWMJ> = 1 Jitter enabled
000 1/32 Micro − Step
001 1/16 Micro − Step
010 1/8 Micro − Step
011 1/4 Micro − Step
SM[2:0] Stepmode
100 Compensated Half Step
101 Uncompensated Half Step
110 Full Step
111 n.a.
<SLP> = 0 Active mode
SLP Enables sleep mode
<SLP> = 1 Sleep mode
<MOTEN> = 0 Drivers disabled
MOTEN Activates the motor driver outputs
<MOTEN> = 1 Drivers enabled
00 Default PWM control
01 DCMin Mode 1
M[1:0] PWM Mode Control
10 DCMin Mode 2
11 DCMin Mode 3
00 4 PWM clock cycles
PWM Strobe B Control: DON mask comparator 01 8 PWM clock cycles
StrB[1:0]
time (Note 16) 10 12 PWM clock cycles
11 19 PWM clock cycles
PWM Strobe C Control: Switch time top/bottom <StrC> = 0 86% duty cycle PWM regulator
StrC
regulation <StrC> = 1 75% duty cycle PWM regulator
00 4 PWM clock cycles
PWM Strobe E Control: Compensation bridge 01 8 PWM clock cycles
StrE[1:0]
active time (Note 16) 10 12 PWM clock cycles
11 19 PWM clock cycles
14. The typical values can be found in Table 5: DC Parameters and in Table 6: AC parameters
15. Depending on the wiring of the motor connections
16. The duration is depending on the selected PWM frequency
www.onsemi.com
25
AMIS−30532
CUR[4:0] Selects IMCmax peak. This is the peak or amplitude of the regulated current waveform in the motor coils.
Access R R R R R R R R
Address Reset 0 0 0 0 0 0 0 0
SR0 (04h) Data is not PAR TW CPfail WD OPENX OPENY − −
latched
Where:
R Read only mode access
Reset Status after power-on or hard reset
PAR Parity check
www.onsemi.com
26
AMIS−30532
MSP[6:0] Micro−step position 7 Status Register 3 Translator micro step position ‘0000000’
OPENX OPEN Coil X 1 Status Register 0 ‘1’ = Open coil detected ‘0’
OPENY OPEN Coil Y 1 Status Register 0 ‘1’ = Open coil detected ‘0’
OVCXNB OVer Current on X 1 Status Register 1 ‘0’ = no failure ‘0’
H−bridge; MOTXN ‘1’ = failure: indicates that over current is
terminal; Bottom detected at bottom transistor XN−terminal
tran.
OVCXNT OVer Current on X 1 Status Register 1 ‘0’ = no failure ‘0’
H−bridge; MOTXN ‘1’ = failure: indicates that over current is
terminal; Top detected at top transistor XN−terminal
transist.
OVCXPB OVer Current on X 1 Status Register 1 ‘0’ = no failure ‘0’
H−bridge; MOTXP ‘1’ = failure: indicates that over current is
terminal; Bottom detected at bottom transistor XP−terminal
tran.
OVCXPT OVer Current on X 1 Status Register 1 ‘0’ = no failure ‘0’
H−bridge; MOTXP ‘1’ = failure: indicates that over current is
terminal; Top detected at top transistor XP−terminal
transist.
OVCYNB OVer Current on Y 1 Status Register 2 ‘0’ = no failure ‘0’
H−bridge; MOTYN ‘1’ = failure: indicates that over current is
terminal; Bottom detected at bottom transistor YN−terminal
tran.
OVCYNT OVer Current on Y 1 Status Register 2 ‘0’ = no failure ‘0’
H−bridge; MOTYN ‘1’ = failure: indicates that over current is
terminal; Top detected at top transistor YN−terminal
transist.
OVCYPB OVer Current on Y 1 Status Register 2 ‘0’ = no failure ‘0’
H−bridge; MOTYP ‘1’ = failure: indicates that over current is
terminal; Bottom detected at bottom transistor YP−terminal
tran.
OVCYPT OVer Current on Y 1 Status Register 2 ‘0’ = no failure ‘0’
H−bridge; MOTYP ‘1’ = failure: indicates that over current is
terminal; Top detected at top transistor YP−terminal
transist.
TSD Thermal shutdown 1 Status Register 2 ‘0’
TW Thermal warning 1 Status Register 0 ‘0’
WD Watchdog event 1 Status Register 0 ‘1’ = watchdog reset after time−out ‘0’
NOTE: WD − This bit indicates that the watchdog timer has not been cleared properly. If the master reads that WD is set to “1” after reset,
it means that a watchdog reset occurred (warm boot) instead of POR (cold boot). WD bit will be cleared only when the master
writes “0” to WDEN bit.
www.onsemi.com
27
AMIS−30532
PACKAGE DIMENSIONS
NQFP−32, 7x7
CASE 560AA
ISSUE O
www.onsemi.com
28
AMIS−30532
PACKAGE DIMENSIONS
NQFP−32, 7x7
CASE 560AA
ISSUE O
ON Semiconductor and are registered trademarks of Semiconductor Components Industries, LLC (SCILLC). SCILLC owns the rights to a number of patents, trademarks,
copyrights, trade secrets, and other intellectual property. A listing of SCILLC’s product/patent coverage may be accessed at www.onsemi.com/site/pdf/Patent−Marking.pdf. SCILLC
reserves the right to make changes without further notice to any products herein. SCILLC makes no warranty, representation or guarantee regarding the suitability of its products for any
particular purpose, nor does SCILLC assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without
limitation special, consequential or incidental damages. “Typical” parameters which may be provided in SCILLC data sheets and/or specifications can and do vary in different applications
and actual performance may vary over time. All operating parameters, including “Typicals” must be validated for each customer application by customer’s technical experts. SCILLC
does not convey any license under its patent rights nor the rights of others. SCILLC products are not designed, intended, or authorized for use as components in systems intended for
surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the SCILLC product could create a situation where
personal injury or death may occur. Should Buyer purchase or use SCILLC products for any such unintended or unauthorized application, Buyer shall indemnify and hold SCILLC and
its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly,
any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that SCILLC was negligent regarding the design or manufacture
of the part. SCILLC is an Equal Opportunity/Affirmative Action Employer. This literature is subject to all applicable copyright laws and is not for resale in any manner.
www.onsemi.com AMIS−30532/D
29