AMIS30521, NCV70521
http://onsemi.com
19
Charge Pump Failure
The charge pump is an important circuit that guarantees
low R
DS(on)
for all drivers, especially for low supply
voltages. If the supply voltage is too low or external
components are not properly connected to guarantee R
DS(on)
of the drivers, then the bit <CPFAIL> is set in the SPI status
register 0. Also after poweronreset the charge pump
voltage will need some time to exceed the required
threshold. During that time <CPFAIL> will be set to “1”.
Error Output
This is an open drain digital output to flag a problem to the
external microcontroller. The signal on this output is active
low and the logic combination of:
NOT(ERR
) = <TW> OR <TSD> OR <OVCXij> OR <
OVCYij> OR <OPENi> OR <CPFAIL>
CLR Pin (=Hard Reset)
Logic 0 on CLR pin allows normal operation of the chip.
To reset the complete digital inside the AMIS30521/
NCV70521, the input CLR needs to be pulled to logic 1
during minimum time given by t
CLR
. (See AC Parameters)
This reset function clears all internal registers without the
need of a powercycle except in sleep mode. The operation
of all analog circuits is depending on the reset state of the
digital, charge pump remains active. Logic 0 on CLR pin
resumes normal operation again.
Sleep Mode
The bit <SLP> in SPI control register 2 is provided to enter
a socalled “sleep mode”. This mode allows reduction of
currentconsumption when the motor is not in operation.
The effect of sleep mode is as follows:
The Drivers are Put in HiZ
All Analog Circuits are Disabled and in LowPower
Mode
All Internal Registers are Maintaining Their Logic
Content
NXT and DIR Inputs are Ignored
SPI Communication Remains Possible (Slight Current
Increase During SPI Communication)
Oscillator and Digital Clocks are Silent, Except During
SPI Communication
Normal operation is resumed after writing logic ’0’ to bit
<SLP>. A startup time is needed for the charge pump to
stabilize. After this time, NXT commands can be issued.
When the device is in sleep mode and V
BB
becomes lower
than V
BB_min
the device might reset.
SPI INTERFACE
The serial peripheral interface (SPI) allows an external
microcontroller (Master) to communicate with the
AMIS30521/NCV70521. The implemented SPI block is
designed to interface directly with numerous microcontrollers
from several manufacturers. The AMIS30521/NCV70521
acts always as a Slave and cannot initiate any transmission.
The operation of the device is configured and controlled by
means of SPI registers which are observable for read and/or
write from the Master.
SPI Transfer Format and Pin Signals
During a SPI transfer, data is simultaneously transmitted
(shifted out serially) and received (shifted in serially). A
serial clock line (CLK) synchronizes shifting and sampling
of the information on the two serial data lines (DO and DI).
DO signal is the output from the Slave
(AMIS30521/NCV70521), and DI signal is the output
from the Master. A chip select line (CS
) allows individual
selection of a Slave SPI device in a multipleslave system.
The CS
line is active low. If the AMIS30521/NCV70521
is not selected, DO is pulled up with the external pull up
resistor. Since AMIS30521/NCV70521 operates as a Slave
in MODE 0 (CPOL = 0; CPHA = 0) it always clocks data out
on the falling edge and samples data in on rising edge of
clock. The Master SPI port must be configured in MODE 0
too, to match this operation. The SPI clock idles low
between the transferred bytes.
The diagram below is both a Master and a Slave timing
diagram since CLK, DO and DI pins are directly connected
between the Master and the Slave.
AMIS30521, NCV70521
http://onsemi.com
20
DI MSB
CLK
1 2 3 4 5 6 7 8
CS
DO
#CLK Cycle
MSB
LSB
LSB
6 54321
6 54321
Figure 15. Timing Diagram of a SPI Transfer
NOTE: At the falling edge of the eighth clock pulse the dataout shift register is updated with the content of the addressed internal SPI
register. The internal SPI registers are updated at the first rising edge of the AMIS30521/NCV70521 system clock when
CS = High.
Transfer Packet
Serial data transfer is assumed to follow MSB first rule.
The transfer packet contains one or more bytes.
PC20080630.6
LSB
DataCommand and SPI Register Address
CMD2 CMD1 CMD0 ADDR4 ADDR3 ADDR2 ADDR1 ADDR0 D7 D6 D5 D4 D3 D2 D1 D0
MSBLSBMSB
BYTE 1
BYTE 2
Command
SPI Register Address
Figure 16. SPI Transfer Packet
Byte 1 contains the Command and the SPI Register
Address and indicates to the AMIS30521/NCV70521 the
chosen type of operation and addressed register. Byte 2
contains data, or sent from the Master in a WRITE operation,
or received from the AMIS30521/NCV70521 in a READ
operation.
Two command types can be distinguished in the
communication between Master and
AMIS30521/NCV70521:
READ from SPI Register with address ADDR[4:0]:
CMD[2:0] = “000”
WRITE to SPI Register with address ADDR[4:0]:
CMD[2:0] = “100”
READ Operation
If the Master wants to read data from Status or Control
Registers, it initiates the communication by sending a
READ command. This READ command contains the
address of the SPI register to be read out. At the falling edge
of the eighth clock pulse the dataout shift register is
updated with the content of the corresponding internal SPI
register. In the next 8bit clock pulse train this data is shifted
out via DO pin. At the same time the data shifted in from DI
(Master) should be interpreted as the following successive
command or is dummy data.
Figure 17. Single READ Operation where DATA from SPI Register with Address 1 is Read by the Master
DATA from previous command or NOT VALID
after POR or RESET
Registers are updated with the internal status at the rising edge of the internal AMIS30521/NCV70521 clock when CS
= 1
READ Data from ADDR1 COMMAND or DUMMY
OLD DATA or NOT VALID DATA from ADDR1
COMMAND
DATA DATA
DO
DI
CS
AMIS30521, NCV70521
http://onsemi.com
21
All 4 Status Registers (see SPI Registers) contain 7 data
bits and an even parity check bit. The most significant bit
(D7) represents a parity of D[6:0]. If the number of logical
ones 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 “0”. This simple mechanism protects against
noise and increases the consistency of the transmitted data.
If a parity check error occurs it is recommended to initiate
an additional READ command to obtain the status again.
Also the Control Registers can be read out following the
same routine. Control Registers don’t have a parity check.
The CS
line is active low and may remain low between
successive READ commands as illustrated in Figure 19.
There is however one exception. In case an error condition
is latched in one of Status Registers (see SPI Registers) the
ERR
pin is activated. (See the “Error Output” Section). This
signal flags a problem to the external microcontroller. By
reading the Status Registers information, the root cause of
the problem can be determined. After this READ operation
the Status Registers are cleared. Because the Status
Registers and ERR
pin (see SPI Registers) are only updated
by the internal system clock when the CS
line is high, the
Master should force CS
high immediately after the READ
operation. For the same reason it is recommended to keep
the CS
line high always when the SPI bus is idle.
WRITE Operation
If the Master wants to write data to a Control Register it
initiates the communication by sending a WRITE
command. This contains the address of the SPI register to
write to. The command is followed with a data byte. This
incoming data will be stored in the corresponding Control
Register after CS
goes from low to high!
AMIS30521/NCV70521 responds on every incoming byte
by shifting out via DO the data stored in the last received
address.
It is important that the writing action (command address
and data) to the Control Register is exactly 16 bits long. If
more or less bits are transmitted the complete transfer packet
is ignored.
A WRITE command executed for a readonly register
(e.g. Status Registers) will not affect the addressed register
and the device operation.
Because after a poweronreset the initial address is
unknown the data shifted out via DO is not valid.
DATA from previous command or
NOT VALID after POR or RESET
DO
DI
CS
Write DATA to ADDR3 NEW DATA for ADDR3
OLD DATA or NOT VALID DATA from ADDR3
COMMAND
DATA DATA
DATA
The NEW DATA is written into the corresponding
internal register at the rising edge of CS
Figure 18. Single WRITE Operation Where DATA from the Master is Written in SPI Register with Address 3

AMIS30521C5212G

Mfr. #:
Manufacturer:
ON Semiconductor
Description:
Motor / Motion / Ignition Controllers & Drivers 800MA STEPPER DRVR 1600mA
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union