square pulses working,need to adjust timing and test with circuit