Altera_Forum
Honored Contributor
10 years agoHow to use the "Debounce Operation" for a Cyclone V.
I would like to use the "Debounce Operation" for a Cyclone V GX, 5CGXFC5C6F27C7N, on a Terasic "Cyclone V GX Starter Kit." The starter kit uses a Schmitt-Trigger buffer on the board to reduce bounce from the momentary switches. Unfortunately, it is its not good enough and I'm still getting a debouncing problem.
The Cyclone V Device Handbook, page 3137, section functional description of the gpio interface, subsection debounce operation, states, "The GPIO modules provided in the HPS include optional debounce capabilities. The external signal can be debounced to remove any spurious glitches that are less than one period of the external debouncing clock, gpio_db_clk."That is the feature I would like to use. Question 1. Does the version of the Cyclone V GX I am using support that Debounce Operation? As the Debounce Operation is described in the HPS section of the manual, I am concerned that my Cyclone V GX does support HPS. Question 2. Using Quartus II, V15.0.0, I am using schematic entry, i.e., Block Editor, to create a program to be downloaded to the "Cyclone V GX Starter Kit." The program is working fine except for the bouncing issues. How do I implement the Debounce Operation? I looked in Pin Planner and IP Catalog but saw nothing relevant. I did Google and Altera Forum searches on gpio_db_clk with nothing helpful. I do know how to implement a debouncing circuit using flip-flops but if the capabilities is already built into Quartus II, I'd prefer to use that feature. Thank you. :cool: