The BQ40Z80 supports GPIO capability on up to eight pins (RC2, RC3, RH0, RH1, RH2, RL0, RL1, RL2). To use any or all of these pins as GPIO, Pin Configuration must be configured.
- GPIOs can be selected as input or out.
- GPIO Sealed Access Config determines whether the GPIOs can be controlled or read only when the gauge is SEALED.
- The read-only command GPIORead()(0x48) returns the level of pins configured as GPIO, in read-back data.
- The write-only command GPIOWrite()(0x49) can be used to configure them as outputs driven low, outputs driven high, or high-Z.
GPIO pins can also be used to generate interrupts.