[Menu]>[CPLD]>[Tester]


Circuit explanation
of Function Tester for CPLD



Input setting by the DIP switch



It is possible to do 12 kinds of input setting using the DIP switch.
The level of the terminal changes into the L level(0V) when the contact of the switch closes.
When the contact of the switch opens, the level of the terminal changes into the H level by the pull-up resistor.





Square wave oscillator


About 1-Hz square wave is generated by this oscillator.
When examining a counter, you need confirm the rising edge, the falling edge of the pulse sometimes.
The LED which is put to the output of the oscillator lights up by the H level of the pulse. By this LED, you can confirm the timing of the rising edge, the falling edge of the pulse.
The frequency of the oscillator can be calculated by the following formula.

f:Output frequency (Hz)
RA:Resistor (ohm)
RB:Resistor (ohm)
C:Capacitor (F)


At the circuit this time, they are RA=1.2K-ohm, RB=5.6K-ohm and C=100uF.
So, the oscillation frequency is as follows.
f=1.49 / (( RA + 2RB ) x C )

=1.49 / (( 1.2 x 103 + 2 x 5.6 x 103 ) x 100 x 10-6 )

=1.49 / 1.24

=1.20 Hz

In the actual circuit, because of the error of the resistance, the capacitor and so on, it differs from the calculation value a little.



Input setting by the BCD switch
This circuit is used when setting in the BCD(Binary Coded Decimal) input.
By the position of the switch, the condition of each terminal changes as follows.
PositionTerminals
1248
0OOOO
1LOOO
2OLOO
3LLOO
4OOLO
5LOLO
6OLLO
7LLLO
8OOOL
9LOOL

L : L level ( 0V )
O : Open ( It is connected with nowhere. )



Output confirmation by the LED

The output level of CPLD can be confirmed by the lighting-up of the LED.
When the output is H level, the LED lights up and in case of the L level, it goes out.



Output confirmation by 7 segment LED
Because each segment of the 7 segment LED is connected with the terminal, the 7 segment LED control action by the CPLD can be confirmed.
Because the circuit this time used an anode common-type LED, it is possible to use only in case of the way of controlling which lights up by the L level.
In case of the way of controlling which lights up by the L level, the cathode common-type LED needs be used.