SDAA623 December   2026 TPLD2001

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Implementation Architecture
  6. 3Register Map and I2C Protocol
  7. 4Multi-Device I2C System Configuration
  8. 5I2C Communication Examples
  9. 6Ordering Information
  10. 7Summary
  11. 8References

Implementation Architecture

The I2C GPIO Expander consists of three main functional blocks as is shown in Figure 2-1. This example design has the goal to provide the I2C expander with the maximum number of outputs, but the Elements included in this example can be configured in several ways, as datasheet's sections Virtual I/O and State Machine (FSM) describe
 I2C - GPIO Expander with
                    TPLD2001 Figure 2-1 I2C - GPIO Expander with TPLD2001

I2C Interface

The I2C interface is implemented as a peripheral receiver/transmitter that handles the I2C bus protocol and manages register read/write operations. The implementation includes a Virtual Input/Output register and the Outputs of the FSM that are also registered.

Virtual I/O

Within the TPLD, this macro-cell has 8 inputs and 8 outputs to allow for reading of up to eight digital macro-cell outputs and provide up to eight virtual inputs to be used within the device. In this example GPIOs 10 to 17 are attached to the virtual inputs. Virtual I/O can be used as virtual outputs, but there are some limitations in the total number of GPIO can be used. Consult the TPLD2001 datasheet for further details.

Finite State Machine Outputs

TPLD2001 has the capability of being controlled by the I2C or SPI serial interfaces. There are several registers that are part of the User's space register that control the current State of the FSM and the FSM's outputs as well. In this example there is no need to control the State of the FSM but the output values. Customer can however develop a more complex situation where the state of the FSM could be changed and predefined output values in each of the states, providing sophisticated output sequencing capabilities.