I have some problems with my little project. I have made zero crossing detector circuit work well and use atmega8 to create a square ware base on the output of this circuit like in the picture below. However when i try to pass the signal to light control block ( with moc3021) errors appeared. Please help me! My deadline is comming. I attached my code using winavr and proteus here. Thanks first.
Only the timestep too small error needs your attention. It indicates an "everydays" SPICE convergence problem. Some hints can be found in the Proteus help. In general, you need to tune the simulator options respectively interactive simulation SPICE options.