| Electronic Components Datasheet Search |
|
AFEX8201 Datasheet(PDF) 46 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
AFEX8201 Datasheet(HTML) 46 Page - Texas Instruments |
|
46 / 95 page ![]() 7.5 Programming The AFEx8201 communicate with the system controller through a serial interface that supports either a UART- compatible two-wire bus or an SPI-compatible bus. Based on the hardware configuration, either interface can be enabled. Figure 7-17 and Figure 7-18 show the configurations to enable SPI mode and UART break mode (UBM), respectively. The SPI supports an 8-bit frame-by-frame CRC that is enabled by default, but can be disabled by the user. UBM does not support CRC, but does support the UART protocol parity bit. 7.5.1 Communication Setup After any reset or power up, the AFEx8201 wake up able to use the SPI or UART break mode (UBM). The devices include a robust mechanism that configures the interface between either an SPI-compatible or UART- compatible protocol based system, thus preventing protocol change during normal operation. The selection is based on initial conditions from the respective hardware configurations (see Figure 7-17 and Figure 7-18) and any subsequent user configuration. 7.5.1.1 SPI Mode By default, the AFEx8201 can be fully accessed with the SPI (except UBM.REG_MODE). To set up the device in SPI mode: 1. Set CONFIG.UART_DIS = 1 (disables the UART communication). 2. Optionally, set CONFIG.DSDO, CONFIG.FSDO, CONFIG.CLR_PIN_EN, and CONFIG.IRQ_PIN_EN. For details, see Table 7-15. CLK_OUT Monitor SCLK Clock SCLK Clock Resistive tie for unused or undriven GPIO SDI SDO Data In Data Out Chip Select CS GPIO3 UARTOUT Interrupt IOVDD RESET UART Interface Control Logic GPIO1 System Controller AFE GND SCLR Reset Maximum Communication Functionality (Least GPIOs) Clear SDI SDO IOVDD Data In Data Out Chip Select CS GPIO3 GPIO2 IOVDD RESET UART Interface Control Logic GPIO1 System Controller AFE GND SCLR Minimum Communication Functionality (Least GPIOs) GND GPIO0 Figure 7-17. SPI Mode Connections Figure 7-17 shows the SPI mode 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 UARTOUT pin functions as the IRQ output. In SPI mode, set CONFIG.SDO_DSDO = 0 to enable the readback function. This function is disabled by default to save power. If the readback function not enabled, SDO remains in Hi-Z mode even during the subsequent frame after a read request. Enable each GPIO pin for use through proper register configuration. If a pin remains unused, tied the pin to either IOVDD using a pullup resistor or to GND using a pulldown resistor as indicated to avoid floating IOs. AFE78201, AFE88201 SLASF44 – MAY 2023 www.ti.com 46 Submit Document Feedback Copyright © 2023 Texas Instruments Incorporated 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 |