thx for the reply..in between i'm simulating the comparator circuit in LTspice. How to edit the simulation cmd?? i just filled stop time, time to start saving data and maximum timestep those are 1, 0, 1m respectively. i pointed to In and Out but i don't have any clue from the waveform of simulation.