Datasheet

DocID023278 Rev 4 63/75
L6480 Programming manual
75
9.2.1 Command management
The host microcontroller can control motor motion and configure the L6480 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 21). Argument length can vary from 1 to 3 bytes.
Figure 21. Command with 3-byte argument
By default, the device returns an all zero response for any received byte, the only
exceptions are GetParam and GetStatus commands. When one of these commands is
received, the following response bytes represent the related register value (see Figure 22).
Response length can vary from 1 to 3 bytes.
Figure 22. 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 23).
Figure 23. 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 paragraph Section 9.1.24 on page
59).
6',
6'2
&RPPDQGE\WH
$UJXPHQWE\WH
06%
$UJXPHQWE\WH
/6%
$UJXPHQWE\WH
[ [ [ [
IURPKRVW
WRKRVW
$0Y
6',
6'2
&RPPDQGE\WH
5HVSRQVHE\WH
06%
5HVSRQVHE\WH
/6%
5HVSRQVHE\WH[
123 123 123
IURPKRVW
WRKRVW
$0Y
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
$0Y