| Electronic Components Datasheet Search |
|
AFEX8201 Datasheet(PDF) 47 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
AFEX8201 Datasheet(HTML) 47 Page - Texas Instruments |
|
47 / 95 page ![]() 7.5.1.2 UART Mode At power up, the UART interface is set to 9600 baud with UBM enabled. Any reset clears the UBM register, and the register must be set again to use UBM. To set up the device in UBM: 1. Using UBM, set UBM.REG_MODE = 1 at 9600 baud. This setting blocks the SPI from accessing the device and enables the UART interface access to the entire register map. 2. Optionally, set CONFIG.CLR_PIN_EN and CONFIG.IRQ_PIN_EN (See Table 7-15 for details). Figure 7-18 shows the UBM logical connections (through the isolation barrier, if used) for both minimum communication functionality (all optional communication pins disconnected, most GPIO pins available shown) and maximum communication functionality (all communication pins connected, least GPIO pins available shown). If CONFIG.IRQ_PIN_EN = 1 is set, then the SDO pin functions as the IRQ output. If CONFIG.CLR_PIN_EN = 1 is set, then the SDI pin controls the clear pin function. Enable each GPIO pin for use through proper register configuration. If a GPIO pin remains unused, tie the pin to either IOVDD using a pullup resistor or to GND using a pulldown resistor to avoid floating I/Os. Resistive tie for unused or undriven GPIO UART Interface Control Logic SCLK GPIO4 GPIO5 UARTOUT UARTIN Tx Rx System Controller AFE GND RESET GPIO6 GPIO0 SCLR IOVDD Minimum Communication Functionality (Most GPIOs) IOVDD RESET GPIO6 IOVDD UART Interface Control Logic SCLK SDO SDI UARTOUT UARTIN Tx Clear Interrupt Rx System Controller AFE GND Reset Maximum Communication Functionality (Least GPIOs) GND SCLR CLK_OUT Monitor Figure 7-18. UBM (UART Interface) Connections 7.5.2 GPIO Programming 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 7.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 7.5.1. Table 7-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: 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. www.ti.com AFE78201, AFE88201 SLASF44 – MAY 2023 Copyright © 2023 Texas Instruments Incorporated Submit Document Feedback 47 Product Folder Links: AFE78201 AFE88201 |
|
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 |