amis-30523 ON Semiconductor, amis-30523 Datasheet - Page 29

no-image

amis-30523

Manufacturer Part Number
amis-30523
Description
Amis-30523 Product Preview Can Micro-stepping Motor Driver
Manufacturer
ON Semiconductor
Datasheet
READ Operation
Registers, it initiates the communication by sending a
READ command. This READ command contains the
7 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 “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.
same routine. Control Registers don’t have a parity check.
successive READ commands as illustrated in Figure 28.
There is however one exception. In case an error condition
is latched in one of Status Registers (see Table 17 SPI
Registers) the ERRB pin is activated. (See the Error Output
section). This signal flags a problem to the external
microcontroller.
information about the root cause of the problem can be
determined. After this READ operation the Status Registers
are cleared. Because the Status Registers and ERRB pin (see
SPI Registers) are only updated by the internal system clock
when the CSB line is high, the Master should force CSB high
If the Master wants to read data from Status or Control
All 4 Status Registers (see Table 17 SPI Registers) contain
Also the Control Registers can be read out following the
The CSB line is active low and may remain low between
WRITE to SPI Register with address ADDR[4:0]:
CMD2 = “1”
DATA from previous command or
NOT VALID after POR or RESET
Figure 26. Single READ Operation where DATA from SPI Register with Address 1 is Read by the Master
CS
DO
DI
By
reading
Registers are updated with the internal status at the rising edge
of the internal AMIS−30523 clock when CS = 1
the
READ DATA from ADDR1
OLD DATA or NOT VALID
Status
COMMAND
DATA
Registers
http://onsemi.com
29
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 same time the data shifted in from DI
(Master) should be interpreted as the following successive
command or dummy data.
immediately after the READ operation. For the same reason
it is recommended to keep the CSB line high always when
the SPI bus is idle.
WRITE Operation
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 CSB goes from low to high! AMIS−30523
responds on every incoming byte by shifting out via DO the
data stored in the last received 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 (with the exception of preceding read commands
(see Figure 28)).
(e.g. Status Registers) will not affect the addressed register
and the device operation.
unknown the data shifted out via DO is not valid.
If the Master wants to write data to a Control Register it
It is important that the writing action (command − address
A WRITE command executed for a read−only register
Because after a power−on−reset the initial address is
COMMAND or DUMMY
DATA from ADDR1
DATA

Related parts for amis-30523