Jump to content
Electronics-Lab.com Community

TTL pulse for counter


MikeB

Recommended Posts


Hi MikeB

Take a 4.7Kohm resistor from +5v and connect it to the input.  Connect a switch between input and ground.

This circuit will count every time there is a transition from high to low voltage on the input pin.  The first thing you may notice is that each time you hit the switch and expect an increase of 1 in the displayed count, you get several counts - this is switch bounce and can't be avoided unless you add a debounce circuit first.  There are also many other kinds of input that you can use which don't suffer the bounce problem to the same extent, for example, optical or magnetic switches.

Hope this helps

Ed

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
  • Create New...