<< Click to Display Table of Contents >> Debounce |
|
This block can be use for reject glitch or non-stable input, example when reading digital input from Button/ Switch.
1. Normal:
- Output state is 0 (FALSE) when input is steady at 0 for a Debounce period (or longer).
- Output state is 1 (TRUE) when input is steady at non-zero for a Debounce period (or longer).
2. Single Pulse:
- Output state will generate a single pulse (one time-step) when input signal change from 0-to-NonZero and steady for a Debounce period.
3. Toggle Latch:
- Output state will toggle when input signal change from 0-to-NonZero and steady for a Debounce period
Debounce period,
- Debounce period (sec) = Debounce count * Sample time (sec)