I am applying a Schmitt-trigger to the waveform given in the figure below.
This is a 3.5 volt signal and I want to perform thresholding so I use 1.58 volts as upper threshold and 1.17 volts as lower threshold for my Schmitt-trigger circuit. My designed Schmitt trigger is given in the image below.
After applying Schmitt-trigger I was expecting a square waveform and it should be. But I got a signal that was not a pure square wave it was rounded from the top. the resulting waveform is as follows:
My question is why it is happening? Why I am not getting a square waveform as an output?