JAJSNU3 December 2023 AFE782H1 , AFE882H1
PRODUCTION DATA
Seven physical pins are interoperable as GPIOs in the AFEx82H1 when not used for communication. The state of these pins is set after the communication interface mode is determined (see Section 6.5.1 for power-up conditions and connection-diagram options for each communication mode supported by the AFEx82H1). Configure any unused communication pins as GPIO, and resistively tie the pins to IOVDD or GND, respectively, as described in Section 6.5.1.
Table 6-11 shows the pins and pin functions in UBM, SPI Mode, or SPI plus UART mode and lists the register configuration conditions to enable GPIO functionality for each pin. In addition to these register configurations, to use an available pin as GPIO, set the corresponding GPIO_CFG.EN bit.
For a GPIO pin to be configured as an input, the following conditions must be met:
After initialization, the pin state is Hi-Z. Reading the GPIO.DATA register reads the pin value.
If the previous conditions are not met, the pin is an output. In this case, the output drive type is determined by the GPIO_CFG.ODE bits to be push-pull or pseudo open drain. The GPIO output is driven by the GPIO.DATA bits. All reads of GPIO.DATA reports the values of the pins, regardless if the pins are configured as GPIO or not. Data written to the GPIO.DATA bits cannot be read directly. If a pin is available for use as GPIO, then the corresponding GPIO_CFG.EN bit must be set to enable GPIO functionality.
PIN | UBM | SPI | SPI PLUS UART | REGISTER CONFIGURATION TO ENABLE GPIO(1) | |||
---|---|---|---|---|---|---|---|
FUNCTION | DIRECTION | FUNCTION | DIRECTION | FUNCTION | DIRECTION | ||
GPIO6/CS | GPIO | Input/Output | CS | Input | CS | Input | (UBM.REG_MODE = 1) |
GPIO5/SDI | CLR/GPIO | Input/Output | SDI | Input | SDI | Input | (UBM.REG_MODE = 1) AND (CONFIG.CLR_PIN_EN = 0) |
GPIO4/SDO | IRQ/GPIO | Input/Output | SDO | Output | SDO | Output | (UBM.REG_MODE = 1) AND (CONFIG.IRQ_PIN_EN = 0) |
GPIO3/UARTIN | UARTIN | Input | GPIO | Input/Output | UARTIN | Input | (CONFIG.UART_DIS = 1) |
GPIO2/UARTOUT | UARTOUT | Output | IRQ/GPIO | Input/Output | UARTOUT | Output | (CONFIG.UART_DIS = 1) AND (CONFIG.IRQ_PIN_EN = 0) |
GPIO1/CD | CD | Output | CD/GPIO | Input/Output | CD | Output | (CONFIG.UART_DIS = 1) |
GPIO0/CLK_OUT | CLKO/GPIO | Input/Output | CLKO/GPIO | Input/Output | CLKO/GPIO | Input/Output | (CONFIG.CLKO = 0) AND ((UBM.REGMODE = 1) OR (CONFIG.UART_DIS = 1)) |