EDIT: Clarified the output I’m seeing at the oscilloscope.
EDIT 2: I've changed the input signal to be a different square wave with V_high = 2V and V_low = 0.5V. It seems that I may have a hidden connection between all the ports as I am seeing the same square wave from all the ports, even the ground port. At the Vcc+ port where I supply a 5V_DC, I'm seeing the square wave superimposing on the supply voltage. Thanks for suggesting ways to test and highlighting the issue regarding input voltage being beyond the limit.
Moving forward, how can I improve the design so that I don't end up getting this hidden connection? (It's on a PCB)
Make sure traces don't criss-cross and separate them as far as possible?
Separate the power and signal ports as far as possible?
Side note, have I correctly implemented the pull up resistor?
I'm testing out a comparator (TS880ICT) where I connect the following pins as follows:
Non-inverting pin via the 'signal out port' - square wave 4Vpp centered at 0V
Inverting pin via the 'threshold' port - ground
Vcc+ - 5V
Vcc- -ground
Output via the 'OUT' port - passed a pull up resistor of 1k ohm. Pulled up to Vcc+
I'm expecting to see one half of the square wave but I am seeing a slightly attenuated square wave instead. I suspect that I may have pulled up the output incorrectly. The graph below is the output after the pull up resistor, at the OUT port.
Can someone advise if this is so?
This is the circuit I'm working with.