Diode circuit is not performing as expected, where I went wrong

Thread Starter

hoyyoth

Joined Mar 21, 2020
528
Hi,

I am designing a circuit in which cathode is connected to a CLOCK and anode is pulled up to 5V.
My intention is when The pullup is present the clock should come at the load.
When pullup is not present output should be zero.

But what I can see is when pull up is not present there is a spike in output waveform.

When Pull up is present.

1717913612900.png

When Pullup is not present

1717913720719.png
 

Attachments

Ian0

Joined Aug 7, 2020
13,097
It's due to the internal capacitance of the diode.
The datasheet gives the capacitance as 5pF
Replace the diode by a 5pF capacitor and see if you get the same spike.
 

Ian0

Joined Aug 7, 2020
13,097
Thank you.
I understood the problem.
May I know how any method to avoid the spikes
Any of the following. . . .
Ignore them. Will they actually cause a problem?
If your GPIO has a filter option, use it.
Put a bigger capacitor across the 1M resistor (i.e. bigger than the diode capacitance)
Use an AND gate (74LVC1G08) instead of the diode circuit.
 
Top