Use clr to clear d1
I can detect if odd or even number of 1