In one of my projects where I use 89C2051 microcontroller, I connect one O/P pin to a mechanical counter (through a driver). My problem is when reset during switch ON, my O/P pin goes high and come down thus generating a pulse which the counter counts. I want to avoid this unwanted counting till my program gets control. Can anyone please suggest a solution?