# Debounce circuit with D flip flip

1. Nov 29, 2009

### physixchic

1. The problem statement, all variables and given/known data
Draw a waveform diagram with inputs D and clk of the Flip-flop and output Q. For the
clock input, show two (2) clock cycles with a period of 10 milliseconds and a positive pulse
with a width equal to 2 clock cycles. Assume the Arduino Duemilanove clock frequency of
16 MHz. For the D input assume the switch is initially pressed and that the input is at logic
zero. Next add the bounce waveform shown Figure 2. The switch bounce should occur
somewhere relative to the leading edge of the first clock signal. The exact phase
relationship of the switch bounce to the clock edge is left to you, but time scales must be the same between the two (2) inputs. Based on these two inputs to the D Flip-flop draw output signal Q.

2. Relevant equations
D flip flop wave form
bounce / figure 2
http://i49.tinypic.com/fqvz5.jpg

3. The attempt at a solution
Is this correct? If it is I also need help labeling the time scales.
http://i47.tinypic.com/aubhcl.jpg