Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

fpga board push button questions

Altera_Forum
Honored Contributor II
1,894 Views

I just wanted to clarify: does pushing the button correspond to a single pulse? And is the default state of the button a logical 0, and when pushed is it a logical 1?

0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
982 Views

I doubt the button is de-bounced. As for the logic levels, you need to look at the schematic of the board you're working with to see which logic level they are set to by default.

0 Kudos
Altera_Forum
Honored Contributor II
982 Views

How do I go about debouncing the button? It's a stratix ii gx si board.

0 Kudos
Altera_Forum
Honored Contributor II
982 Views

If you want to make a single clock pulse width signal from a physical button push, I suggest first double registering your input, then making a simple state machine that triggers when the button is first pushed, and verifies the button has not been pressed for a period of time to assume the button press has finished. 

 

The pulse can happen when you transition from the idle state, to the "waiting for the button to finish being pressed" state.
0 Kudos
Altera_Forum
Honored Contributor II
982 Views

You also can find useful information here: 

 

http://www.fpgarelated.com/usenet/fpga/show/78095-1.php
0 Kudos
Altera_Forum
Honored Contributor II
982 Views

I think you can find some code/sopc component in the shared materials thread in the NIOS 2 forum.

0 Kudos
Reply