ELM ELM411

ELM411
Debounce Circuit with Latch
Description
Features
The ELM411 provides all of the necessary
circuitry to connect as many as three independent
mechanical contacts to an electronic circuit.
All mechanical contacts, whether from switches,
relays, etc. will have inherent ‘bounce’ when they
make or break a connection. Depending on the type
of switch, this fluctuation can be quite pronounced,
often being interpreted as multiple inputs by high
speed digital circuits.
All of the logic required to remove the bounce
from most mechanical sources is provided by this
circuit, without the use of additional components. As
well, internal pull-up resistors have been provided so
that the switch inputs can be directly connected to
the 8 pin package.
The ELM411 is composed of two separate
inverters which follow the input directly, and one
latch circuit which toggles its state each time a
closed circuit is detected on the input.
Applications
•
•
•
•
Low power CMOS design - typically 1mA at 5V
Wide supply range - 3.0 to 5.5 volt operation
Simultaneous monitoring of three circuits
Full 25msec debounce period on contact closure
and opening, without external components
• Internal pullup resistors for contact monitoring
• High current drive outputs - up to 25 mA
• Can be cascaded to provide sequential outputs
Connection Diagram
PDIP and SOIC
(top view)
VDD
1
8
VSS
Out1
2
7
In1
Out2
3
6
In2
In3
4
5
Out3
• Pushbutton interface for logic circuits
• Limit switch monitoring
• Time delay generation
Block Diagram
VDD
Out1
2
Debounce
Timers
3
Debounce
Timers
7
In1
6
In2
5
Out3
VDD
Out2
VDD
In3
ELM411DSB
4
Debounce
Timers
Toggle
Flip-Flop
Elm Electronics – Circuits for the Hobbyist
< http://www.elmelectronics.com/ >
1 of 4
ELM411
Pin Descriptions
VDD (pin 1)
This pin is the positive supply pin, and should
always be the most positive point in the circuit.
Internal circuitry connected to this pin is used to
provide power on reset of the microprocessor, so
an external reset signal is not required. Refer to
the Electrical Characteristics section for further
information.
Out1 (pin 2)
This is the output pin for the first debounce
circuit. A logic low applied to In1 (pin 7) will
cause this pin to go to a logic high level, once
the input is stable for the debounce period.
Similarily, a logic high (or open circuit) at pin 7
will result in this pin being driven to a logic low
level after the debounce period.
Out2 (pin 3)
This is the output pin for the second debounce
circuit. Refer to the description for pin 2.
In3 (pin 4)
This is the input for circuit 3. Levels are standard
CMOS, not schmitt trigger, so the use of external
delay capacitors, etc. is not recommended. An
internal pullup resistor is provided to allow direct
interface to mechanical contacts (refer to the
specs for further information).
Out3 (pin 5)
This is the output pin for the third debounce
circuit. At powerup, this pin is reset to a logic low
level. On each falling edge of In3 (pin 4), the
logic level at this pin will alternate between high
and low levels.
In2 (pin 6)
This is the input pin for the second debounce
circuit. Refer to the description for pin 4.
In1 (pin 7)
This is the input pin for the first debounce circuit.
Refer to the description for pin 4.
VSS (pin 8)
Circuit common is connected to this pin. This is
the most negative point in the circuit.
Ordering Information
These integrated circuits are available in either the 300 mil plastic DIP format, or in the 200 mil SOIC surface
mount type of package. To order, add the appropriate suffix to the part number:
300 mil Plastic DIP............................... ELM411P
200 mil SOIC..................................... ELM411SM
All rights reserved. Copyright ©1999 Elm Electronics.
Every effort is made to verify the accuracy of information provided in this document, but no representation or warranty can be
given and no liability assumed by Elm Electronics with respect to the accuracy and/or use of any products or information
described in this document. Elm Electronics will not be responsible for any patent infringements arising from the use of these
products or information, and does not authorize or warrant the use of any Elm Electronics product in life support devices and/or
systems. Elm Electronics reserves the right to make changes to the device(s) described in this document in order to improve
reliability, function, or design.
ELM411DSB
Elm Electronics – Circuits for the Hobbyist
< http://www.elmelectronics.com/ >
2 of 4
ELM411
Absolute Maximum Ratings
Storage Temperature....................... -65°C to +150°C
Ambient Temperature with
Power Applied....................................-40°C to +85°C
Voltage on VDD with respect to VSS............ 0 to +7.5V
Note:
Stresses beyond those listed here will likely damage
the device. These values are given as a design
guideline only. The ability to operate to these levels
is neither inferred nor recommended.
Voltage on any other pin with
respect to VSS........................... -0.6V to (VDD + 0.6V)
Electrical Characteristics
All values are for operation at 25°C and a 5V supply, unless otherwise noted. For further information, refer to note 1 below.
Characteristic
Minimum
Typical
Supply Voltage, VDD
3.0
5.0
VDD rate of rise
0.05
Average Supply Current, IDD
Internal pullup resistances
(see note 4)
300
20
Debounce Period
Maximum Units
5.5
Conditions
V
V/ms
see note 2
1.0
2.4
mA
VDD = 5V, see note 3
500
30
600
50
KΩ
KΩ
Pin 4 - Input 3
Pins 6 & 7 - Inputs 1 & 2
25
msec
see note 5
Input low voltage
VSS
0.15 VDD
V
Input high voltage
0.85 VDD
VDD
V
0.6
V
Current (sink) = 8.7mA
V
Current (source) = 5.4mA
Output low voltage
Output high voltage
VDD - 0.7
Notes:
1. This integrated circuit is produced with a Microchip Technology Inc.’s PIC12C5XX as the core embedded
microcontroller. For further device specifications, and possibly clarification of those given, please refer to the
appropriate Microchip documentation.
2. This spec must be met in order to ensure that a correct power on reset occurs. It is quite easily achieved
using most common types of supplies, but may be violated if one uses a slowly varying supply voltage, as
may be obtained through direct connection to solar cells, or some charge pump circuits.
3. Pullup resistor currents are not included in this figure.
4. The value of the internal pullup resistance is both supply and temperature dependent.
5. Time is approximate. The input must remain stable for this period before the output is allowed to change.
ELM411DSB
Elm Electronics – Circuits for the Hobbyist
< http://www.elmelectronics.com/ >
3 of 4
ELM411
Example Application
Figure 1 shows the ELM411 used to interface two
momentary action normally open pushbutton switches to
an ELM310 in a manually controlled stepping motor
circuit. For simplicity, the stepper motor and its drive
transistors are not shown on this diagram.
The toggle input (In3) allows the user to select
motor direction using a momentary switch, as shown.
Due to the latch action, a selected direction is
maintained for subsequent step inputs, without any user
intervention. The second debounce circuit has been
used in this case to simply invert the level of Out3,
providing a logic high level to the ELM310 at powerup.
This has been done to ensure that the startup direction
will be clockwise.
Using the ELM310 to control a stepper motor has
many advantages - low cost, low power, ease of use,
etc. There is one disavantage however, in that the
integrated circuit is capable of responding quite quickly
to inputs. This would result in multiple steps of the
motor, and perceived erratic operation, if the input were
connected directly to a switch, and not debounced by a
circuit such as the ELM411.
For more permanent installations, consideration
should be given to protecting the ELM411 from
electrostatic discharges, etc. by providing series current
limiting resistors, and additional pullup resistors. For
typical useage in prototyping and experimenter circuits,
however, nothing more than is shown below would
normally be required.
The circuit below shows how easily two control
switches can be debounced and used to control the
ELM310. The two switches are simply connected
between VSS and their respective inputs, allowing the
internal pullup resistors to detect the state of the switch.
Power is obtained from the circuit being connected to,
so there will be no problems with the logic levels.
A
+5V
0.1µF
1
8
2
7
B
3
6
C
4
5
D
To winding
drive circuits
Direction
5
4
6
3
7
2
8
1
+5V
Step
Figure 1. Manual Control of a Stepper Motor
ELM411DSB
Elm Electronics – Circuits for the Hobbyist
< http://www.elmelectronics.com/ >
4 of 4