I'm trying to simulate a simple frequency divider by usinf D-Flip-Flop, but I get strange output. I guess the simulator doesn't know the initial state of flip-flop. Is there a way to solve the problem?
You need to disconnect CLR pin from +5vdc and connect it to a reset signal. This reset can be another STIM source which is at 0 for several microsecond and then goes to 1 for the rest of the time.
in toolbars ->power pins ....u can find 'high' and 'low' pins.
use these to insert a high or a low digital input for simulation
or use STIM .................
No analog power supply is used in digital circuit. Put HI/LOW ports instead!! And for simulation setting window you have to initialize the state of the flip flop.