Datasheet

Table Of Contents
Programming manual L6470
58/73 DocID16737 Rev 7
9.2.1 Command management
The host microcontroller can control motor motion and configure the L6470 device 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 19). Argument length can vary from 1 to 3 bytes.
Figure 19. Command with 3-byte argument
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 20).
Response length can vary from 1 to 3 bytes.
Figure 20. Command with 3-byte response
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 21).
Figure 21. Command response aborted
When a byte that does not correspond to a command is sent to the IC, it is ignored and the
WRONG_CMD flag in the STATUS register is raised (see Section 9.1.22).
9.2.2 Nop
Nothing is performed.
6',
6'2
&RPPDQGE\WH
$UJXPHQWE\WH
06%
$UJXPHQWE\WH
/6%
$UJXPHQWE\WH
[ [ [ [
IURPKRVW
WRKRVW
6',
6'2
&RPPDQGE\WH
5HVSRQVHE\WH
06%
5HVSRQVHE\WH
/6%
5HVSRQVHE\WH[
123 123 123
IURPKRVW
WRKRVW
6',
6'2
&RPPDQG
E\WHUHVSH[SHFWHG
&RPPDQG
E\WHUHVSH[SHFWHG
5HVSRQVHE\WH
06%
5HVSRQVHE\WH
06%
5HVSRQVHE\WH[
&RPPDQG
QRUHVSH[SHFWHG
5HVSRQVHE\WH
/6%
IURPKRVW
WRKRVW
&RPPDQG
QRUHVSH[SHFWHG
&RPPDQG
QRUHVSH[SHFWHG
&RPPDQGUHVSRQVH
LVDERUWHG
Table 38. Nop command structure
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
00000000 From host