SLLA677 October 2025 TPLD1202 , TPLD1202-Q1
TPLD™ devices need a serial peripheral interface (SPI) or inter-integrated circuit (I2C) interface to be configured temporary or permanently. Moreover, TPLD801 and TPLD1201 devices need a general purpose input (GPI) line as well, which means that five general-purpose input/output (GPIO) total (IO5, IO4, IO2, IO1 and GPI) must be used for configuration. In some cases, the user prefers to install the TPLD device in one's own system specially in the development phase of a given project.
Because the number of general purpose input/outputs (GPIOs) are limited, a method to temporarily program the device using SPI can be possible by installing tri-state buffers in the lines that are going to be used for temporary programming and also used as GPIOs in the system. In this way, isolation can be generated when the programming lines are needed to update the TPLD functionality. Figure 1 illustrates this concept.
Figure 1 TPLD In-system Developing
Block Diagram
Figure 2 TPLD In-System Developing
Prototype ExampleSuppose the TPLD is going to divide by two an input frequency. In this case, the input signal SYS_CLK is active all the time and attached to a tri-state buffer input. Meanwhile TPLD GPIO5 is tied to the tri-state buffer output. Figure 3 shows that SYS_CLK is running all the time but is not able to reach GPIO5 because the tri-state enable (OE#) is deasserted high.
Figure 3 TPLD UnprogrammedFigure 4 shows that the TPLD is being programmed through the SPI interface using the same OE# configuration. The SYS_CLK signal is active but isolated from GPIO5, but the SPI CS line.
Figure 4 TPLD During
ProgrammingOnce the device is programmed, OE# can be grounded to activate the tri-state buffers so the external clock is reaching IO5 and the clock output (CLK_SYS divided by 2) is present in IO4 and also at the output tri-state buffer as shown in Figure 5.
Figure 5 TPLD After ProgrammingIt is possible to make changes to or add features to a system with TPLD devices using external tri-states buffers to isolate the device during the upgrade of its internal configuration. The number of such buffers depends on how many GPIOs must be used both as GPIO and as configuration pins as well. Finally, it is important to remember that the method described above can not be applied to GPI because it also has an alternative function as +8V VPP, a voltage that is at the top of the maximum 5V typically accepted by tri-state buffers.