L6470
9.2.3
9.2.4
Programming manual
SetParam (PARAM, VALUE)
Bit 7
0
Bit 6
0
Table 39. SetParam command structure
Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0
PARAM
VALUE Byte 2 (if needed)
VALUE Byte 1 (if needed)
VALUE Byte 0
From host
The SetParam command sets the PARAM register value equal to VALUE; PARAM is the
respective register address listed in Table 12 on page 44.
The command should be followed by the new register VALUE (most significant byte first).
The number of bytes making up the VALUE argument depends on the length of the target
register (see Table 12).
Some registers cannot be written (see Table 12); 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 the
command byte as if an unknown command code were sent (see Section 9.1.22 on page
55).
Some registers can only be written in particular conditions (see Table 12); 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 the last argument byte (see
Section 9.1.22).
Any attempt to set an inexistent register (wrong address value) causes the command to be
ignored and the WRONG_CMD flag to rise at the end of the command byte as if an
unknown command code were sent.
GetParam (PARAM)
Bit 7
0
Bit 6
0
Table 40. GetParam command structure
Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
1
PARAM
ANS Byte 2 (if needed)
ANS Byte 1 (if needed)
ANS Byte 0
From host
To host
To host
To host
This command reads the current PARAM register value; PARAM is the respective register
address listed in Table 12.
The command response is the current value of the register (most significant byte first). The
number of bytes making up the command response depends on the length of the target
register (see Table 12).
The returned value is the register one at the moment of GetParam command decoding. If
register values change after this moment, the response is not accordingly updated.
All registers can be read anytime.
DocID16737 Rev 7
59/73
73