DLPU041G April 2016 – July 2024 DLPC230-Q1 , DLPC230S-Q1
This command is used to set the output values for non-reserved GPIO.
Each of the 32 GPIO pins has a mask bit (byte 4:1) and a value bit (byte 8:5). If the mask bit is set to 0x1, then the value bit will be applied. If the mask bit is not set, then the value will be ignored.
The mask should be set to 0x0 for all reserved GPIOs. Any other mask configuration for reserved GPIO will cause a command error and the values will not be set.
If a value is specified for a GPIO configured as an input, the value will not be applied until the GPIO is configured as an output.
Refer to Section 2.2.2 for more details on GPIO usage.
Write Parameters
Table 8-21 indicates the GPIO index for each write bit. Each byte is noted as either a mask byte or a value byte.
BYTE | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
---|---|---|---|---|---|---|---|---|
1 (Mask) | 07 | 06 | 05 | 04 | 03 | 02 | 01 | 00 |
2 (Mask) | 15 | 14 | 13 | 12 | 11 | 10 | 09 | 08 |
3 (Mask) | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
4 (Mask) | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
5 (Value) | 07 | 06 | 05 | 04 | 03 | 02 | 01 | 00 |
6 (Value) | 15 | 14 | 13 | 12 | 11 | 10 | 09 | 08 |
7 (Value) | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
8 (Value) | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
Table 8-22 defines the mask bit values.
GPIO MASK VALUES | DESCRIPTION |
---|---|
0x0 | Not selected - The value written will be ignored. |
0x1 | Selected - The value written will be used. |
Table 8-23 defines the GPIO values.
GPIO VALUES | DESCRIPTION |
---|---|
0x0 | Set low. |
0x1 | Set high. |