SLUUCN4A January 2023 – February 2024
This write-only command sets the pin direction and the output drive of each GPIO pin that is configured as a GPIO. The data associated with pins not configured as GPIOs is not impacted. The command consist of 16-bit field-. The lower 8 bits contain two bits associated with each GPIO pin. The two bits set the output drive status as: 0,0 = drive output low; 0,1 = drive output high; 1,0 = set output hi-Z; 1,1 = set output hi-Z. The upper 8-bit contain a single bit for each LEDCNTL pin to change them into input pins. This enables these pins to be used for hardware signaling purpose. Once the LEDCNTL pins are changed into input pins, they will no longer function as LED driver outputs, and bit settings for bits 7-2 are ignored.
SBS Cmd | Name | Access | Protocol | Type | Min | Max | Default | Unit | ||
---|---|---|---|---|---|---|---|---|---|---|
SE | US | FA | ||||||||
0x49 | GPIOWrite() | W | W | W | Word | U2 | — | 65535 | 0 | — |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RSVD | RSVD | RSVD | RSVD | RSVD | LEDC_IN_EN | LEDB_IN_EN | LEDA_IN_EN |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
LEDCNTLC1 | LEDCNTLC0 | LEDCNTLB1 | LEDCNTLB0 | LEDCNTLA1 | LEDCNTLA0 | DISP1 | DISP0 |
RSVD (Bits 15–11): Reserved. Do not use. | ||
LEDC_IN_EN (Bits 10): LEDCNTLC pin (pin 22) Input Enable | ||
1 = | LEDCNTLC pin becomes Input pin | |
0 = | LEDCNTLC pin ramains as Output pin (default) | |
LEDB_IN_EN (Bits 9): LEDCNTLB pin (pin 21) Input Enable | ||
1 = | LEDCNTLB pin becomes Input pin | |
0 = | LEDCNTLB pin ramains as Output pin (default) | |
LEDA_IN_EN (Bits 9): LEDCNTLA pin (pin 20) Input Enable | ||
1 = | LEDCNTLA pin becomes Input pin | |
0 = | LEDCNTLA pin ramains as Output pin (default) | |
LEDCNTLC1, LEDCNTLC0 (Bits 7–6): LEDCNTLC (pin 22) output drive | ||
1, 1 = | Set output hi-Z (default) | |
1, 0 = | Set output hi-Z | |
0, 1 = | Drive output high | |
0, 0 = | Drive output low | |
LEDCNTLB1, LEDCNTLB0 (Bits 5–4): LEDCNTLB (pin 21) output drive | ||
1, 1 = | Set output hi-Z (default) | |
1, 0 = | Set output hi-Z | |
0, 1 = | Drive output high | |
0, 0 = | Drive output low | |
LEDCNTLA1, LEDCNTLA0 (Bits 3–2): LEDCNTLA (pin 20) output drive | ||
1, 1 = | Set output hi-Z (default) | |
1, 0 = | Set output hi-Z | |
0, 1 = | Drive output high | |
0, 0 = | Drive output low | |
DISP1, DISP0 (Bits 1–0): DISP (pin 17) output drive | ||
1, 1 = | Set output hi-Z (default) | |
1, 0 = | Set output hi-Z | |
0, 1 = | Drive output high | |
0, 0 = | Drive output low |