SLAU858A november   2021  – june 2023

 

  1.   1
  2.   AFE881H1 Evaluation Module
  3.   Trademarks
  4. 1Overview
    1. 1.1 Kit Contents
    2. 1.2 Related Documentation From Texas Instruments
  5. 2USB2ANY Interface Adapter
    1. 2.1 Signal Definitions for J10
    2. 2.2 USB2ANY Theory of Operation
  6. 3EVM Hardware Overview
    1. 3.1 Electrostatic Discharge Caution
    2. 3.2 EVM Block Diagram
    3. 3.3 EVM Jumper Summary
    4. 3.4 Terminal and Pin Definitions
    5. 3.5 Connecting the USB2ANY
    6. 3.6 Connecting the USB Cable to the USB2ANY Interface Adapter
    7. 3.7 Optional EVM Operations
      1. 3.7.1 Power Configuration
      2. 3.7.2 External SPI and UART Controllers
  7. 4Software Overview
    1. 4.1 Software Installation
    2. 4.2 Launching the Software
    3. 4.3 Software Features
      1. 4.3.1 AFE881H1 Register Page
      2. 4.3.2 High Level Configuration Page
      3. 4.3.3 Using the Python Scripting Tool
  8. 5Schematics, PCB Layout, and Bill of Materials
    1. 5.1 Board Schematic
    2. 5.2 PCB Components Layout
    3. 5.3 Bill of Materials
  9. 6Revision History

Using the Python Scripting Tool

The AFE881H1EVM software provides a scripting tool to automate register reads and writes for reuse. To use the scripting tool, the Python™ programming environment must be installed. Download the latest x86 version of Python 2.7 at https://www.python.org/downloads/. To launch the scripting tool, click Script > Launch Window, as shown in Figure 4-7.

GUID-20210619-CA0I-LFFP-SBWW-NHFTMQWPLPJ2-low.svg Figure 4-7 Launch Script Window

The scripting tool launches a Python IDLE window. This window lists any register interaction when recording a macro. To record a macro, find the Launch Window function in the Scripting tab. Figure 4-8 shows the scripting tool recording a macro. After the actions are recorded, use the Stop button to end the script. This script can be saved and reused as desired.

GUID-20210619-CA0I-GTBK-HQBV-TM1L3BFBJZKS-low.svg Figure 4-8 Scripting Tool Recording a Macro

If the python IDLE window does not appear, check the settings for application execution aliases. To do so, open the Windows Settings, and then select Apps. In the resulting Apps window, select Apps & features, and then click on the Manage app execution aliases link. The next page loads a list of apps. Deselect both application installers for python.exe and python3.exe. Figure 4-9 shows the windows settings for managing application execution aliases.

GUID-B97D3826-5BEB-4875-904B-7E5AC9B05B6C-low.gif Figure 4-9 Deselecting App Execution Aliases