JAJSNU4A May 2023 – June 2024 AFE78201 , AFE88201
PRODUCTION DATA
デバイスごとのパッケージ図は、PDF版データシートをご参照ください。
Seven physical pins are interoperable as GPIOs in the AFEx8201 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 AFEx8201). 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-8 shows the pins and pin functions in UBM or SPI 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 | REGISTER CONFIGURATION TO ENABLE GPIO(1) | ||
---|---|---|---|---|---|
FUNCTION | DIRECTION | FUNCTION | DIRECTION | ||
GPIO6/CS | GPIO | Input/Output | CS | Input | (UBM.REG_MODE = 1) |
GPIO5/SDI | CLR/GPIO | Input/Output | SDI | Input | (UBM.REG_MODE = 1) AND (CONFIG.CLR_PIN_EN = 0) |
GPIO4/SDO | IRQ/GPIO | Input/Output | SDO | Output | (UBM.REG_MODE = 1) AND (CONFIG.IRQ_PIN_EN = 0) |
GPIO3/UARTIN | UARTIN | Input | GPIO | Input/Output | (CONFIG.UART_DIS = 1) |
GPIO2/UARTOUT | UARTOUT | Output | IRQ/GPIO | Input/Output | (CONFIG.UART_DIS = 1) AND (CONFIG.IRQ_PIN_EN = 0) |
GPIO1 | GND | N/A | GPIO | Input/Output | (CONFIG.UART_DIS = 1) |
GPIO0/CLK_OUT | CLKO/GPIO | Input/Output | GPIO/CLKO | Input/Output | (CONFIG.CLKO = 0) AND ((UBM.REGMODE = 1) OR (CONFIG.UART_DIS = 1)) |