Debounce

<< Click to Display Table of Contents >>

Navigation:  STM32F4 Target > Demos > Standard Peripherals Demos > GPIO >

Debounce

Previous pageReturn to chapter overviewNext page

Demo File: stm32f4_debounce_demo.mdl

stm32f4_demo_gpio_debounce

Setup

1. Sample time for demo model is 0.01 seconds.

2. At Debounce block, set Debounce count to 16. Debounce time will be 0.16 seconds. The output of Debounce block will be changed when input steady at high state for 0.16 seconds.

Mode: Normal

In this test, select "Normal" at mode configuration.

stm32f4_demo_gpio_debounce_normal

Mode: Single Pulse

In this test, select "Single Pulse" at mode configuration.

stm32f4_demo_gpio_debounce_single

Mode: Toggle Latch

In this test, select "Toggle Latch" at mode configuration.

stm32f4_demo_gpio_debounce_togglelatch