SLVUCU5 December 2025 UCD91160 , UCD91320
This Read/Write Byte 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 (%). Note that this means that valid values are between 0 and 1, with any value above 1 causing the device to set Invalid Data. Frequency is an unformatted, 32-bit value. See Section 24 for more information about configuring the PWM frequency. To unconfigure a PWM, set the frequency to zero, issue a STORE_DEFAULT_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 (Low Byte) |
| 3 | 2 | 1 | Duty Cycle (High Byte) |
| 4 | 3 | 2 | Frequency (Low Byte) |
| 5 | 4 | 3 | Frequency |
| 6 | 5 | 4 | Frequency |
| 7 | 6 | 5 | Frequency (High Byte) |
| 8 | 7 | 6 | Reserved |
| 9 | 8 | 7 | Reserved |