SLVUAW9C September 2016 – February 2020 UCD90320
This Read/Write Block common command configures the PWM identified by the PWM_SELECT command. The duty cycle is in LINEAR11 format and valid values are between 0 and 100 (%). Frequency is an unformatted, 32-bit value. See Section 8 for more information about configuring the PWM frequency. The Phase is in LINEAR11 format and valid values are less than 360 (degrees) and greater than or equal to 0. Attempts to write invalid values to this command will result in a NACK. To un-configure a PWM, set the frequency to zero, perform a STORE_DEFAULTS_ALL command, and reset the device.
Byte Number
(Write) |
Byte Number
(Read) |
Payload
Index |
Description |
---|---|---|---|
0 | CMD = E1 | ||
1 | 0 | BYTE_COUNT = 8 | |
2 | 1 | 0 | Duty cycle (high byte) |
3 | 2 | 1 | Duty cycle (low byte) |
4 | 3 | 2 | Frequency (high byte) |
5 | 4 | 3 | Frequency |
6 | 5 | 4 | Frequency |
7 | 6 | 5 | Frequency (low byte) |
8 | 7 | 6 | Reserved |
9 | 8 | 7 | Reserved |