NCV70522DQ
www.onsemi.com
19
VBB
VDD
t
t
Enable WD
Acknowledge WD
WD timer
t
t
Figure 15. Watchdog Timing Diagram
V
DDH
t
PU
t
POR
t
DSPI
POR/WD pin
t
WDTO
t
POR
t
WDRD
= t
WDPR
or = t
WDTO
> t
WDPR
and < t
WDTO
Note: t
DSPI
is the time needed by the external
microcontroller to shift−in the <WDEN> bit after a
power−up.
The duration of the watchdog timeout interval is
programmable through the WDT[3:0] bits. The timing is
given in Figure 15.
CLR Pin (=Hard Reset)
Logic 0 on CLR pin allows normal operation of the chip.
To reset the complete digital inside the NCV70522DQ, 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
power−cycle, 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. The voltage regulator remains
functional during and after the reset and the POR
/WD pin is
not activated. Watchdog function is reset completely.
Sleep Mode
The bit <SLP> in SPI Control Register 2 is provided to
enter a so−called “sleep mode”. This mode allows reduction
of current−consumption 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 low−power 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 start−up 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.
NCV70522DQ
www.onsemi.com
20
SPI INTERFACE
The serial peripheral interface (SPI) allows an external
microcontroller (Master) to communicate with the
NCV70522DQ. The implemented SPI block is designed to
interface directly with numerous micro−controllers from
several manufacturers. The NCV70522DQ 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 (NCV70522DQ), and
DI signal is the output from the Master. A chip select line
(CS
) allows individual selection of a Slave SPI device in a
multiple− slave system. The CS
line is active low. If the
NCV70522DQ is not selected, DO is pulled up with the
external pullup resistor. Since NCV70522DQ 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.
DI
MSB
CLK
1 2 3 4 5 6 7 8
DO
#CLK Cycle
MSB
LSB
LSB
654321
654321
Figure 16. Timing Diagram of a SPI Transfer
CS
NOTE: At the falling edge of the eighth clock pulse the data−out 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 NCV70522DQ 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.
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 17. SPI Transfer Packet
Byte 1 contains the Command and the SPI Register
Address and indicates to the NCV70522DQ 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 NCV70522DQ in a READ operation.
Two command types can be distinguished in the
communication between Master and NCV70522DQ:
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”
NCV70522DQ
www.onsemi.com
21
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 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.
Figure 18. 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 NCV70522DQ 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
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 20.
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! NCV70522DQ
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 read−only register
(e.g. Status Registers) will not affect the addressed register
and the device operation.
Because after a power−on−reset 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
OLD DATA from ADDR3
COMMAND
DATA DATA
DATA
The NEW DATA is written into the corresponding
internal register at the rising edge of CS
Figure 19. Single WRITE Operation where DATA from the Master is Written in SPI Register with Address 3

NCV70522DQ004G

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