Programming manual
L6470
54/64
Doc ID 16737 Rev 2
9.2.3 SetParam
(PARAM,
VALUE)
The SetParam command sets the PARAM register value equal to VALUE; PARAM is the
respective register address listed in
Some registers cannot be written (see
); any attempt to write one of those registers
causes the command to be ignored and the WRONG_CMD flag to rise at the end of
command byte as like as unknown command code is sent (see paragraph
Some registers can only be written in particular conditions (see
); any attempt to
write one of those registers when the conditions are not satisfied causes the command to be
ignored and the NOTPERF_CMD flag to rise at the end of last argument byte (see
paragraph
Any attempt to set an inexistent register (wrong address value) causes the command to be
ignored and WRONG_CMD flag to rise at the end of command byte as like as unknown
command code is sent.
9.2.4 GetParam
(PARAM)
This command reads the current PARAM register value; PARAM is the respective register
address listed in
. All registers can be read anytime.
Returned value is the register one at the moment of SetParam command decoding. If
register values changes after this moment the response will not be accordingly updated.
Any attempt to read an inexistent register (wrong address value) causes the command to be
ignored and WRONG_CMD flag to rise at the end of command byte as like as unknown
command code is sent.
Table 38.
SetParam command structure
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
0
0
PARAM
From host
Byte 2 (if needed)
Byte 1 (if needed)
Byte 0
Table 39.
GetParam command structure
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
0
1
PARAM
from host
Byte 2 (if needed)
to host
Byte 1 (if needed)
to host
Byte 0
to host