Simulation diagram and assembler for controlling the stepping motor to rotate 45°