AMIS30521, NCV70521
http://onsemi.com
22
Examples of Combined READ and WRITE Operations
In the following examples successive READ and WRITE
operations are combined. In Figure 19 the Master first reads
the status from Register at ADDR4 and at ADDR5 followed
by writing a control byte in Control Register at ADDR2.
Note that during the write command (in Figures 18 and 19)
the old data of the pointed register is returned at the moment
the new data is shifted in.
Figure 19. Two Successive READ Commands Followed by a WRITE Command
COMMAND COMMAND COMMAND COMMAND
DATA DATA DATA DATA
DO
DI
CS
DATA from previous
command or NOT VALID
after POR or RESET
READ DATA
from ADDR4
READ DATA
from ADDR5
WRITE DATA
to ADDR2
NEW DATA
for ADDR2
OLD DATA
or NOT VALID
DATA
from ADDR4
DATA
from ADDR5
OLD DATA
from ADDR2
The NEW DATA is written into the corresponding
internal register at the rising edge of CS
Registers are updated with the internal status at the
rising edge of the internal AMIS30521/NCV70521
clock when CS = 1
After the write operation the Master could initiate a read
back command in order to verify if the data is correctly
written, as illustrated in Figure 20. During reception of the
READ command the old data is returned for a second time.
Only after receiving the READ command the new data is
transmitted. This rule also applies when the master device
wants to initiate an SPI transfer to read the Status Registers.
Because the internal system clock updates the Status
Registers only when CS
line is high, the first read out byte
might represent old status information.
COMMAND
DATA DATA DATA DATA
OLD DATA
or NOT VALID
OLD DATA
from ADDR2
OLD DATA
from ADDR2
NEW DATA
from ADDR2
DO
DI
CS
Figure 20. A WRITE Operation Where DATA From the Master is Written in SPI Register with Address 2 Followed
by a READ Back Operation to Verify a Correct WRITE Operation
DATA COMMAND
WRITE DATA
to ADDR2
NEW DATA
for ADDR2
READ DATA
from ADDR2
COMMAND or
DUMMY
Registers are Updated with the Internal Status at the
Rising Edge of CS
Registers are Updated with the Internal Status at the
Rising Edge of the Internal 521 Clock when CS
= 1
NOTE: The internal dataout shift buffer of the AMIS30521/NCV70521 is updated with the content of the selected SPI register only at
the last (every eighth) 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 11. SPI CONTROL REGISTERS (All SPI Control Registers have Read/Write Access and default to ”0” after Poweron or
hard reset)
Address
Content
Structure
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Access R/W R/W R/W R/W R/W R/W R/W R/W
Reset 0 0 0 0 0 0 0 0
CR0 (01h) Data SM[2:0] CUR[4:0]
CR1 (02h) Data DIRCTRL NXTP PWMF PWMJ EMC[1:0]
CR2 (03h) Data MOTEN SLP SLAG SLAT
Where:
R/W: Read and Write access
Reset: Status after PowerOn or hard reset
AMIS30521, NCV70521
http://onsemi.com
23
Table 12. SPI CONTROL PARAMETER OVERVIEW
Symbol Description Status Value
DIRCTRL
Controls the Direction of Rotation (in
Combination with Logic Level on Input DIR)
<DIR> = 0
<DIRCTRL> = 0 CW Motion
<DIRCTRL> = 1 CCW Motion
<DIR> = 1
<DIRCTRL> = 0 CCW Motion
<DIRCTRL> = 1 CW Motion
EMC[1:0] Turn On and Turnoff Slopes (Note 15)
00 Very Fast
01 Fast
10 Slow
11 Very Slow
MOTEN Activates the Motor Driver Outputs
<MOTEN> = 0 Drivers Disabled
<MOTEN> = 1 Drivers Enabled
NXTP
Selects if NXT triggers on Rising or Falling
Edge
<NXTP> = 0 Trigger on Rising Edge
<NXTP> = 1 Trigger on Falling Edge
PWMF
Enables Doubling of the PWM Frequency
(Note 15)
<PWMF> = 0 Default Frequency
<PWMF> = 1 Double Frequency
PWMJ Enables Jitter PWM
<PWMJ> = 0 Jitter Disabled
<PWMJ> = 1 Jitter Enabled
SM[2:0] Stepmode
000 1/32 Micro Step
001 1/16 Micro Step
010 1/8 Micro Step
011 1/4 Micro Step
100 Compensated Half Step
101 Uncompensated half Step
110 Full Step
111 n.a.
SLAG Speed Load Angle Gain Setting
<SLAG> = 0
Gain = 0.5
<SLAG> = 1
Gain = 0.25
SLAT Speed Load Angle Transparency Bit
<SLAT> = 0
SLA is NOT Transparent
<SLAT> = 1
SLA is Transparent
SLP Enables Sleep Mode
<SLP> = 0
Active Mode
<SLP> = 1
Sleep Mode
15.The typical values can be found in Table 5: DC Parameters and Table 6: AC Parameters
AMIS30521, NCV70521
http://onsemi.com
24
CUR[4:0] Selects IMCmax peak. This is the peak or amplitude of the regulated current waveform in the motor coils.
Table 13. SPI CONTROL PARAMETER OVERVIEW: CURRENT AMPLITUDE CUR[4:0]
Current Range
(Note 17)
Index
CUR[4:0]
Current (mA)
(Note 16)
Current Range
(Note 17)
Index
CUR[4:0]
Current (mA)
(Note 16)
0
0 00000 33
2
16 10000 365
1 00001 64 17 10001 400
2 00010 95 18 10010 440
3 00011 104 19 10011 485
4 00100 115 20 10100 530
5 00101 126 21 10101 585
6 00110 138 22 10110 630
7 00111 153
3
23 10111 750
8 01000 166 24 11000 825
1
9 01001 190 25 11001 895
10 01010 205 26 11010 975
11 01011 230 27 11011 1065
12 01100 250 28 11100 1155
13 01101 275 29 11101 1245
14 01110 300 30 11110 1365
15 01111 325 31 11111 1480
16.Typical current amplitude at T
J
= 125.
17.Reducing the current over different current ranges might trigger overcurrent detection, please refer to dedicated application note for solutions.
SPI Status Register Description
All 4 SPI Status Registers have Read Access and are default to ”0” after Poweron or hard reset.
Table 14. SPI STATUS REGISTERS
Address
Content
Structure
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Access R R R R R R R R
Reset 0 0 0 0 0 0 0 0
SR0 04h Data Not
Latched
PAR TW CPfail OPENX OPENY
SR1 05h Data is
Latched
PAR OVCXPT OVCXPB OVCXNT OVCXNB
SR2 06h Data is
Latched
PAR OVCYPT OVCYPB OVCYYNT OVCYNB TSD
SR3 07h Data Not
Latched
PAR MSP[6:0]
Where:
R Read only mode access
Reset Status after PowerOn or hard reset
PAR Parity check

NCV70521MN003G

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