Hi i have a project in school to create a count by 16 counter, the problem is that i can't even get one JK-FF to work properly i'm using 4027b ic its a CMos ic and i couldn't find a ttl one , in school they had a built in kit with ttl and i had no problems with it. i connected the S and R of the first JK to ground, the J and K to high, also Vdd to high and Vss to ground am using a high voltage around 7v, the clock is connected to a 6 pin push button when pressed it inputs high when left it shorts the clock pin with the ground. then finall the Q pin is connected via a 270 ohm resistor to a Red Led anode and ofc its cathode is grounded. my problem is that i don't get constant effect. sometimes i press the push button and the state toggles sometimes it doesn't, i tried changing the ground wire several times and also the Vdd wire and they are perfect. i read that Cmos technology requires all input pins to be grounded so i grounded the pins of the second FF leaving only its Q and inverse Q without connection. please i need help with this as soon as possible.