AMIS30421C4211G ONSEMI [ON Semiconductor], AMIS30421C4211G Datasheet - Page 26

no-image

AMIS30421C4211G

Manufacturer Part Number
AMIS30421C4211G
Description
Micro-Stepping Stepper Motor Bridge Controller
Manufacturer
ONSEMI [ON Semiconductor]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AMIS30421C4211G
Manufacturer:
ON Semiconductor
Quantity:
5
microcontroller
AMIS−30421. The implemented SPI block is designed to
interface directly with numerous microcontrollers from
several manufacturers. AMIS−30421 acts always as a Slave
and can’t 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
(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).
Transfer Packet
The transfer packet contains one or more bytes.
Address and indicates to AMIS−30421 the chosen type of
operation and addressed register. Byte 2 contains data, or
sent from the Master in a WRITE operation, or received
from AMIS−30421 in a READ operation.
READ Operation
Register, 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 eight
clock pulse the data−out shift register is updated with the
content of the corresponding internal SPI register. In the next
8−bit clock pulse train this data is shifted out via DO pin. At
The serial peripheral interface (SPI) allows an external
During a SPI transfer, data is simultaneously transmitted
Serial data transfer is assumed to follow MSB first rule.
Byte 1 contains the Command and the SPI Register
If the Master wants to read data from a Status or Control
MSB
CMD2
CLK
Ï Ï Ï Ï
Ï Ï Ï Ï
DO
CS
Command
DI
CMD1
(Master)
Command and SPI Register Address
CMD0
MSB
ADDR4
MSB
to
8
BYTE1
ADDR3
communicate
Figure 24. Timing Diagram of a SPI Transfer
SPI Register Address
7
6
6
ADDR2
Figure 25. SPI Transfer Packet
ADDR1
6
5
5
http://onsemi.com
SPI INTERFACE
with
ADDR0
LSB
5
4
4
26
MSB
DO signal is the output from the Slave (AMIS−30421), and
DI signal is the output from the Master. A chip select line
(CSb) allows individual selection of a Slave SPI device in a
multiple−slave system. The CSb line is active low. If
AMIS−30421 is not selected, DO is in HiZ and does not
interfere with SPI bus activity. The output type of DO can be
set in SPI (<IO_OT>). Since AMIS−30421 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.
diagram since CLK, DO and DI pins are directly connected
between the Master and the Slave.
communication between master and AMIS−30421:
the same time the data shifted in from DI (Master) should be
interpreted as the following successive command or dummy
data.
data bits and a 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
D7
The diagram below is both a Master and a Slave timing
Two command types can be distinguished in the
Status Register 0, 1 and 2 (see SPI Registers) contain 7
CMD2 = ‘0’: READ from SPI Register with address
ADDR[4:0]
CMD2 = ‘1’: WRITE to SPI Register with address
ADDR[4:0]
4
3
3
D6
3
2
2
D5
D4
2
1
1
BYTE2
Data
D3
LSB
LSB
1
D2
Ï Ï Ï
Ï Ï Ï
Ï Ï
Ï Ï
D1
D0
LSB

Related parts for AMIS30421C4211G