SLUUCH2 March 2021 BQ40Z50-R2
This write-only command sets 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 format of the command is an 8-bit field, with 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.
| 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 | RSVD | RSVD | RSVD |
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| LEDCNTLC1 | LEDCNTLC0 | LEDCNTLB1 | LEDCNTLB0 | LEDCNTLA1 | LEDCNTLA0 | DISP1 | DISP0 |
| RSVD (Bits 15–8): Reserved. Do not use. | ||
| 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 | |