NCV70522DQ
www.onsemi.com
22
Examples of Combined READ and WRITE Operations
In the following examples successive READ and WRITE
operations are combined. In Figure 20 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 19 and 20)
the old data of the pointed register is returned at the moment
the new data is shifted in.
Figure 20. Two Successive READ Commands Followed by a WRITE Command
COMMAND
COMMAND COMMAND
DATA
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
Registers are updated with the internal status at the rising
edge of the internal NCV70522DQ clock when CS = 1
The NEW DATA is written into the corresponding
internal register at the rising edge of CS
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 21. 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 21. 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 In-
ternal Status at the Rising Edge of
the Internal NCV70522DQ Clock
when CS
= 1
DATA from previous
command or NOT VALID
after POR or RESET
NOTE: The internal data−out shift buffer of the NCV70522DQ 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 Power−on 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
CRWD (00h) Data WDEN WDT[3: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 Power−On or hard reset
WDEN: Watchdog enable. Writing “0” to this bit will clear WD bit (see SPI Status Register 0)
WDT[3:0]: Watchdog timeout interval
NCV70522DQ
www.onsemi.com
23
Table 12. SPI CONTROL PARAMETER OVERVIEW
Symbol Description Status Value
WDEN Watchdog enable.
<WDEN> = 1
Writing “1” to this bit will enable the watchdog timer (if not
enabled yet) or will clear this timer (if already enabled)
<WDEN> = 0 Writing “0” to this bit will disable the Watchdog
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 Turn−off 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 1/2 Compensated Half Step
101 1/2 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
NCV70522DQ
www.onsemi.com
24
WDT[3:0] Selects the watchdog timeout interval.
Table 13. WATCHDOG TIMEOUT INTERVAL AS FUNCTION OF WDT[3:0]
Index WDT[3:0] t
WDTO
(ms)
0 0 0 0 0 32
1 0 0 0 1 64
2 0 0 1 0 96
3 0 0 1 1 128
4 0 1 0 0 160
5 0 1 0 1 192
6 0 1 1 0 224
7 0 1 1 1 256
Index WDT[3:0] t
WDTO
(ms)
8 1 0 0 0 288
9 1 0 0 1 320
A 1 0 1 0 352
B 1 0 1 1 384
C 1 1 0 0 416
D 1 1 0 1 448
E 1 1 1 0 480
F 1 1 1 1 512
CUR[4:0] Selects IMCmax peak. This is the peak or amplitude of the regulated current waveform in the motor coils.
Table 14. 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°C.
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 Power−on or hard reset.
Table 15. 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 WD 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 Power−On or hard reset
PAR: Parity check

NCV70522DQ004R2G

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

Products related to this Datasheet