[Menu]>[CPLD]>[CPLD Programmer]


Circuit explanation
of CPLD Programmer



The main part of circuit is based on the information which the Xilinx Inc. makes open on the following site for the person who want to build own download cable.

JTAG Parallel Download Cable Schematic

Parallel port



The CPLD programmer is connected with the parallel port of the personal computer. A printer is generally connected with the parallel port.
The figure on the left shows the signal of each pin of the parallel port.

A pin numbering is written by the small character at the connector. Because the assignment position with number becomes opposite on the side of the male connector and the side of the female connector, make not make a mistake. The 1st pin is connected with the 1st pin of the opposing connector.


At the equipment this time, each pin is used as follows.
Pin #Usual nameName this timeUseage
2PD0(I/O)DIN(OUT)Data signal output(TDI)
3PD1(I/O)CLK(OUT)Clock signal output(TCK)
4PD2(I/O)TMS_IN(OUT)Mode selection output(TMS)
5PD3(I/O)CTRL(OUT)Output control signal
6PD4(I/O)PROG(OUT)Input control signal
8PD6(I/O)D6(OUT)Signal for condition detection?
11BUSY(IN)BUSY(IN)Busy detection
12PE(IN)PE(IN)Parity error detection
13SLCT(IN)DONE(IN)Data signal input(TDO)
15ERR#(IN)VCC SENSE(IN)Dvice status detection
18-25GNDGNDGrounding

In the table above, the IN and OUT are the direction of the signal which was seen from the side of the personal computer.
It becomes contrary to the seeing from the side of the equipment.

    The 8, 11 and 12th pins are connected at the connector. These three pins seem to be the one to confirm whether or not a programmer is connected.



Bus buffer circuit


CAY
HXZ
LLL
LHH

A bus buffer is put in the signal conductor of JTAG(TMS, TCK, TDI and TDO). 3 State buffer is used for buffer circuit. By this, the writing circuit to the CPLD device doesn't influence the parallel port of the personal computer. The buffer circuit works only when transferring data with the CPLD device. When not transferring data, the output of the buffer becomes high impedance and becomes the condition which was separated from the circuit. When the transfer of the data is done, the buffer becomes low impedance to the CPLD device and makes the writing of data possible.

When the C terminal is H level, output terminal (Y) becomes high impedance. In this condition, it becomes the same when a bus buffer isn't connected.
When the C terminal becomes an L level, the condition of input terminal (A) comes out to output terminal (Y).
Because there is a high impedance condition in addition to H level and L level, this buffer is called a 3 State buffer.

In the table, Z shows a high impedance condition.




Device switching circuit


A device is switched by the rotary switch. Either one device can be controlled.

Because it uses only any one generally, it is to be OK even if it doesn't switch. In the case, it is necessary to be careful when using.

In case of the PWB mode, the power supply to the CPLD device uses the outside power. It is possible to use the power of this equipment only in about 100 mA.





LED display

    The green LED displays the situation of power (Vcc) and the TDI-signal makes a red LED light up at the time of the L level.
    Because the red LED is during the blink while forwarding data, don't dissolve to switch off the power, to pull out a cable and to remove a device.
    To make an influence over the TDI-signal little, the value of the resistor to be putting in the LED in series is big comparatively.




Power circuit



This power circuit makes the stable voltage(+5V) which the bus buffer and the CPLD device needs.
3 terminal regulator is used to get +5V output from +12V power in.