DLPU041G April 2016 – July 2024 DLPC230-Q1 , DLPC230S-Q1
This command is used to configure non-reserved GPIO pins as inputs or outputs. The default GPIO configurations are stored in flash and are set by the DLPC230-Q1 main application at startup. The default GPIO configurations can be found in the flash header file that is delivered along with the flash data or by reading the GPIO Configure command during system operation.
"No change (0x0)" should be specified for all reserved GPIOs. Any other configuration for reserved GPIO will cause a command error and the values will not be set.
Refer to Section 2.2.2 for more details on GPIO usage.
Write Parameters
Table 8-17 indicates the GPIO index for each pair of configuration bits. Table 8-18 shows the configuration options available for each GPIO.
BYTE | BIT(7:6) | BIT(5:4) | BIT(3:2) | BIT(1:0) |
---|---|---|---|---|
1 | 03 | 02 | 01 | 00 |
2 | 07 | 06 | 05 | 04 |
3 | 11 | 10 | 09 | 08 |
4 | 15 | 14 | 13 | 12 |
5 | 19 | 18 | 17 | 16 |
6 | 23 | 22 | 21 | 20 |
7 | 27 | 26 | 25 | 24 |
8 | 31 | 30 | 29 | 28 |
Table 8-18 shows the configuration options available for each non-reserved GPIO pin.
GPIO CONFIGURATION VALUES | DESCRIPTION |
---|---|
0x0 | No change. The previous configuration of the GPIO will be retained. |
0x1 | Input |
0x2 | Output (standard) |
0x3 | Output (open drain) |