| Electronic Components Datasheet Search |
|
AFEX82H1 Datasheet(PDF) 60 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
AFEX82H1 Datasheet(HTML) 60 Page - Texas Instruments |
|
60 / 115 page ![]() 6.5.2 GPIO Programming 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: 1. GPIO_CFG.ODE for the pin must = 1 2. GPIO.DATA for the pin must = 1 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. Table 6-11. Pin Configuration in Each Interface Mode 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)) (1) Required by pin in addition to the corresponding GPIO_CFG.EN bit. AFE782H1, AFE882H1 SLASF43 – DECEMBER 2023 www.ti.com 60 Submit Document Feedback Copyright © 2023 Texas Instruments Incorporated Product Folder Links: AFE782H1 AFE882H1 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |