NCV70514
www.onsemi.com
27
SPI Status Registers (SR)
All SPI status registers have Read Only Access, with the odd parity on Bit7. Parity bit makes the numbers of 1 in the byte odd.
Table 19. SPI STATUS REGISTERS (SR)
4−bit
Address
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Comment
Default
after
Reset
08h or 18h
(SR1)
PAR SPI,L SHORT,R* OPEN,R* TSD,L TW,R STALL,L HR,L Errors 0xx 0001
09h or 19h
(SR2)
PAR ORErr, R BemfRes UV1,L UV2,L UV2M,L UV3,L UV3M,L INTst 101 1010
0Ah or 1Ah
(SR3)
PAR MSP6,R MSP5,R MSP4,R MSP3,R MSP2,R MSP1,R MSP0,R Micro−step
position
001 0000
0Bh or 1Bh
(SR4)
PAR BemfCoil, R Bemfs, R Bemf4, R Bemf3, R Bemf2, R Bemf1, R Bemf0, R Bemf x00 0000
0Ch or 1Ch
(SR5)
Sp7,R Sp6,R Sp5,R Sp4,R Sp3 ,R Sp2,R Sp1,R Sp0,R Speed 1111 1111
0Dh or 1Dh
(SR6)
PAR Sl6,L Sl5,L Sl4,L Sl3,L Sl2,L Sl1,L Sl0,L StepLoss 000 0000
0Eh (SR7) PAR T/BX,R SignX,R PWMX4,R PWMX3,R PWMX2,R PWMX1,R PWMX0,R PWMX 000 0000
0Fh (SR8) PAR T/BY,R SignY,R PWMY4,R PWMY3,R PWMY2,R PWMY1,R PWMY0,R PWMY 000 0000
1Eh (SR7A) PAR OPENX,L STEP0pin,R STEP1pin,R SHRTXPB,L SHRTXNB,L SHRTXPT,L SHRTXNT,L Input pins
& ShortsX
xxx 0000
1Fh (SR8A) PAR OPENY,L RHBpin,R DIRpin, R SHRTYPB,L SHRTYNB,L SHRTYPT,L SHRTYNT,L Input pins
& ShortsY
xxx 0000
Flags have “,L” for latched information or “,R” for real time information. All latched flags are “cleared upon read”.
X = value after reset is defined during reset phase (diagnostics)
R* = real time read out of values of other latches. Reading out this R* value does not reset the bit, and does not reset the values of the
latches this bit reads out.
Table 20. BIT DEFINITION
Symbol MAP Position Description
PAR Bit 7 – ADDR_0x08 or 0x18 (SR1) Parity bit for SR1
SPI Bit 6 – ADDR_0x08 or 0x18 (SR1) SPI error: no multiple of 16 rising clock edges between falling and rising
edge of CSB line
SHORT Bit 5 – ADDR_0x08 or 0x18 (SR1) An over current detected (common: set if at least one of the SHORTij indi-
vidual bits is set)
OPEN Bit 4 – ADDR_0x08 or 0x18 (SR1) Open Coil X or Y detected (common: set if at least one of the two specific
X/Y open coil bits is set)
TSD Bit 3 – ADDR_0x08 or 0x18 (SR1) Thermal shutdown
TW Bit 2 – ADDR_0x08 or 0x18 (SR1) Thermal warning
STALL Bit 1 – ADDR_0x08 or 0x18 (SR1) Stall detected by the internal algorithm
HR Bit 0 – ADDR_0x08 or 0x18 (SR1) Hard reset flag: 1 indicates a hard reset has occurred
PAR Bit 7 – ADDR_0x09 or 0x19 (SR2) Parity bit for SR2
ORErr Bit 6 – ADDR_0x09 or 0x19 (SR2) Logic OR of all bits of SR1 (Error bits)
BemfRes Bit 5 – ADDR_0x09 or 0x19 (SR2) BEMF result ready at <Bemf> register
UV1 Bit 4 – ADDR_0x09 or 0x19 (SR2) Under voltage 1 detection
UV2 Bit 3 – ADDR_0x09 or 0x19 (SR2) Under voltage 2 detection
UV2M Bit 2 – ADDR_0x09 or 0x19 (SR2) Under voltage 2 detection and NXT pulse arrive during UV2 state (Motion)
UV3 Bit 1 – ADDR_0x09 or 0x19 (SR2) Under voltage 3 detection
UV3M Bit 0 – ADDR_0x09 or 0x19 (SR2) Under voltage 3 detection and NXT pulse arrive during UV3 state (Motion)
PAR Bit 7 – ADDR_0x0A or 0x1A (SR3) Parity bit for SR3