English
Language : 

EVAL6470H Datasheet, PDF (56/70 Pages) STMicroelectronics – dSPIN fully integrated microstepping motor driver with motion engine and SPI
Programming manual
L6470
Table 37. Application commands (continued)
Command mnemonic
Command binary code
[7..5] [4] [3] [2..1] [0]
Action
HardStop
101 1 1 00 0 Stops motor immediately
SoftHiZ
101 0 0
00
0
Puts the bridges into high impedance status after a
deceleration phase
HardHiZ
101 0 1 00 0 Puts the bridges into high impedance status immediately
GetStatus
RESERVED
110 1 0 00 0 Returns the STATUS register value
111 0 1 01 1 RESERVED COMMAND
RESERVED
111 1 1 00 0 RESERVED COMMAND
9.2.1
Command management
The host microcontroller can control motor motion and configure the L6470 through a
complete set of commands.
All commands are composed by a single byte. After the command byte, some bytes of
arguments should be needed (see Figure 20). Argument length can vary from 1 to 3 bytes.
Figure 20. Command with 3-byte argument
3$)
FROMHOST
#OMMANDBYTE
!RGUMENTBYTE
-3"
!RGUMENTBYTE
!RGUMENTBYTE
,3"
3$/
TOHOST
X
X
X
X
By default, the device returns an all zero response for any received byte, the only exceptions
are the GetParam and GetStatus commands. When one of these commands is received,
the following response bytes represent the related register value (see Figure 21). Response
length can vary from 1 to 3 bytes.
Figure 21. Command with 3-byte response
3$)
FROMHOST
#OMMANDBYTE
./0
./0
./0
3$/
TOHOST
X
2ESPONSEBYTE
-3"
2ESPONSEBYTE
2ESPONSEBYTE
,3"
During response transmission, new commands can be sent. If a command requiring a
response is sent before the previous response is completed, the response transmission is
aborted and the new response is loaded into the output communication buffer (see
Figure 22).
56/70
Doc ID16737 Rev 5