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

Register Map and I2C Protocol

I2C Addressing

The I2C Module operates as an I2C peripheral with a configurable 7-bit address determined by the OTP internal register, or the hardware address pins (4b) and some OTP register bits (3b). In this particular example where the goal is maximaze the GPIO available, the I2C GPIO Expander operates as peripheral with address 0x02 when the ADDR3 pin (GPIO5) is tied to GND and 0x0A when the ADDR3 pin (GPIO5) is tied to VCC. The I2C protocol uses standard read/write cycles with 8-bit data frames:

I2C Write Format:START → PERIPHERAL_ADDR + W(0) → REG_ADDRESS → DATA_BYTE → STOP

I2C Read Format:START → PERIPHERAL_ADDR + R(1) → DATA_BYTE → STOP

Hardware Address Configuration (ADDR3/GPIO5)

The TPLD2001 I2C interface supports hardware address configuration through GPIO pins. This design utilizes ADDR3 (GPIO5) as the primary external address pin, sampled at device power-up. This single configuration bit allows support for two TPLD devices with identical firmware/design but different I2C peripheral addresses as is shown in the Table 3-1.

Further details about I2C address configuration can be consulted at the section 8.3.16.1 I2C Mode of the TPLD2001's datasheet.

Table 3-1 Hardware Address Configuration
ADDR3 (GPIO5) I2C Peripheral Address Configuration Application
GND (Logic 0) 0x02 Default address Primary I2C GPIO Expander
VCC (Logic 1) 0x0A Alternate address Secondary I2C GPIO Expander

Design Register Map

Table 3-2 is shown the I2C address map used in this example.

Table 3-2 I2C Internal Register Map
Register Address Register Name Type Bits Description
0x0000 DEVICE_ID RO [7:0] Device Identifier (binary '2001')
0x00E0 VIRTUAL INPUT RW [7:0] 8-bit GPIO output control register (direct I/O expansion)
0x0051 STATE0_OUT RO [5:0] 6-bit FSM output status (programmable state machine control)