LS100 Series MultiChannel Debouncer IC
Users Guide
General Description
Features
The LS100 line of Ultra-Fast Response Debouncer ICs
• Utilizes adaptive NoBounce
• Eliminates switch bounce
provides the circuit designer with the unique LogiSwitch
technology
NoBounce™ technology adaptive debounce logic and
• Handshake protocol for
powerful handshake protocol for carefree, bounce-free,
efficient switch service control
delay-free, and poll-free operation.
• 3/6/9 channel options
Adaptive debounce expands the debounce cycle to fix switch
• PDIP or SOIP package options
bounces of any duration without the use of external passive
components, calculations, or user-provided timing components. It is implemented using ultrafast internal clocking and advanced bounce monitoring.
A feature of the LS100 Series exclusive to LogiSwitch is immediate output change with no delay
on both actuation and release of the switch. The active high output mirrors the switch input in
non-handshake cycles with the bounce/noise removed.
The LogiSwitch Handshake Protocol is a technique designed to transfer switch service control to
the program, where it is perfectly relevant. All LogiSwitch LS100 series devices include NL/HS
(Normally Low/Handshake) pins that incorporate the LogiSwitch request/acknowledge-based
handshake protocol. Note that the NL/HS pins act as ordinary active-high outputs when the
handshake is not utilized.
www.logiswitch.com
info@logiswitch.com
July 2022
Device Information
Part Number
Channels
Package
Size Information
LS118-P
3
PDIP (8)
Plastic DIP 300 mil
LS118-S
3
SOIC (8)
Narrow SOIC 150 mil
LS119-P
6
PDIP (14)
Plastic DIP 300 mil
LS119-S
6
SOIC (14)
Narrow SOIC 150 mil
LS120-P
9
PDIP (20)
Plastic DIP 300 mil
LS120-S
9
SOIC (20)
Wide SOIC 300 mil
Pin Description
Pin
Name
2
Function
LS118
LS119
LS120
1
1
1
Vdd
Supply Voltage +2.5 V to +5.5 V
8
14
20
Gnd
Ground Reference (Switch Common)
2-4
2-7
2-10
SWx
Switch Inputs - Normally Open
5-7
8-13
11-19
NL/HSx
Device Outputs - Normally Low / Handshake
info@logiswitch.com
www.logiswitch.com
Timing Waveforms
Operating Conditions
Parameter
t
t
t
t
t
t
3
b Bounce time
Min
Typ
0
1
t
db Debounce time
Max
Unit
ms
t
db + cl
cl Clean time
20
20
20
ms
io Time input to output
4
12
20
µs
rsp Response to ACK pulse
6
8
12
µs
ack ACK pulse time
5
info@logiswitch.com
µs
www.logiswitch.com
Electrical Characteristics
Parameter
Operating Voltage
Range
Symbol
Conditions
Vcc
Operating Temperature
Range
4
Min
Typ
2.5
5.5
-40
Max
Units
V
125
Supply Current - LS118
Icc
Vcc = 3.0V, All Inputs
Open
-
Supply Current - LS119
Icc
Vcc = 3.0V, All Inputs
Open
2.1
2.6
ma
Supply Current - LS120
Icc
Vcc = 3.0V, All Inputs
Open
2.1
2.6
ma
Input Pull-up Current
per Pin
Ipu
LS118
25
100
200
µa
Input Pull-up Current
per Pin
Ipu
LS119, LS120
25
120
200
µa
Debounce Time
(Internal)
tdb
Vcc = 2.5 V - 5.5 V
21
info@logiswitch.com
1,000 1,550
°C
µa
ms
www.logiswitch.com
Pin Description LS118
The LS118 is a three-channel IC offered in a 8-pin, 300 mil PDIP (LS118-P) or 150 mil narrow
SOIC (LS118-S) package.
Pin
5
Name
Function
1
Vdd
+2.3 V to 5.5 V Supply
2
SWO
Switch Input 0
3
SW1
Switch Input 1
4
SW2SW2 Switch Input 2
5
NL/HS2
Normally Low Output/Handshake Input 2
6
NL/HS1
Normally Low Output/Handshake Input 1
7
NL/HS0
Normally Low Output/Handshake Input 0
8
Vss
GND (Switch Common)
info@logiswitch.com
www.logiswitch.com
Pin Description LS119
The LS119 is a six-channel IC offered in a 14-pin, 300 mil PDIP (LS119-P) or 150 mil narrow
SOIC (LS119-S) package.
Pin
6
Name
Function
1
VDD
+2.3 V to +5.5 V Supply Voltage
2
SW0
Normally Open Switch Input 0
3
SW1
Normally Open Switch Input 1
4
SW2
Normally Open Switch Input 2
5
SWO
Normally Open Switch Input 3
6
SW0
Normally Open Switch Input 4
7
SWO
Normally Open Switch Input 5
8
NL/HS5
Normally Low Output/Handshake Input 5
9
NL/HS4
Normally Low Output/Handshake Input 4
10
NL/HS3
Normally Low Output/Handshake Input 3
11
NL/HS2
Normally Low Output/Handshake Input 2
12
NL/HS1
Normally Low Output/Handshake Input 1
13
NL/HS0
Normally Low Output/Handshake Input 0
14
VSS
Ground Reference (Switch Common)
info@logiswitch.com
www.logiswitch.com
Pin Description LS120
The LS120 is a nine-channel IC offered in a 20-pin, 300 mil PDIP (LS120-P) or 300 mil wide
SOIC (LS120-S) package.
Pin
7
Name
Function
1
VDD
+2.3 V to +5.5 V Supply Voltage
2
SW0
Normally Open Switch Input 0
3
SW1
Normally Open Switch Input 1
4
SW2
Normally Open Switch Input 2
5
SW3
Normally Open Switch Input 3
6
SW4
Normally Open Switch Input 4
7
SW5
Normally Open Switch Input 5
8
SW6
Normally Open Switch Input 6
9
SW7
Normally Open Switch Input 7
10
SW8
Normally Open Switch Input 8
11
NL/HS8 Normally Low Output/Handshake Input 8
12
NL/HS7 Normally Low Output/Handshake Input 7
13
NL/HS6 Normally Low Output/Handshake Input 6
14
NL/HS5 Normally Low Output/Handshake Input 5
15
NL/HS4 Normally Low Output/Handshake Input 4
16
NL/HS3 Normally Low Output/Handshake Input 3
17
NL/HS2 Normally Low Output/Handshake Input 2
18
NL/HS1 Normally Low Output/Handshake Input 1
19
NL/HS0 Normally Low Output/Handshake Input 0
20
VSS
Ground Reference (Switch Common)
info@logiswitch.com
www.logiswitch.com
LS100 Series Theory of Operation
All mechanical switches are subject to a nasty little annoyance called "switch bounce". When a
mechanical switch is actuated, the movable pole of the internal mechanism is forcefully snapped
onto the fixed surface of a stationary throw.
The movable pole strictly adheres to the laws of physics and recoils numerous times upon each
impact until it comes to rest in its new position. In nearly all cases switch bounce will cause
problems in high-speed digital electronics that need to be dealt with one way or another. The
LogiSwitch LS100 series provides a high output immediately upon sensing a switch closure and
terminates the output immediately upon sensing the release. Switches exhibit contact bounce
both when the switch is activated ("make" bounce) and when it is deactivated ("break" bounce).
Debouncing eliminates all the extraneous transitions in both the make interval and the break
interval that would otherwise be presented to the host computer. Note that the break debounce
serves no other purpose than to assure the programmer that the current switch service routine
is finished so the program will not see it as a continuation when a new switch cycle is initiated.
LogiSwitch terminates NL/HS cycle immediately at the first sign of release. A new cycle is not
permitted to be initiated until the break debounce interval has completed (20 milliseconds +
bounce time) later. The non-handshake output of a LogiSwitch LS100 Series device is a mirror
image of the raw switch input with the contact bounce removed.
Using the LogiSwitch Handshake
The NL/HS (Normally Low/HandShake) output pin for each channel is actually an I/O pin that
allows bidirectional communication to/from the host computer to which it is interfaced. A
request/acknowledge handshake between the LogiSwitch device and the target processor will
eliminate the time wasted in polled routines and will insure against extraneous interrupts when
used in interrupt service routines.
This feature transfers control of the termination of the cycle to the program rather than waiting
for the switch to be released. A short 5 µs low-level acknowledgement (ACK) pulse by the
connected host computer over the wired-OR NL/HS line is seen by the LogiSwitch device. The
LogiSwitch device answers the ACK by latching a low level on the line to terminate the cycle.
8
info@logiswitch.com
www.logiswitch.com
The ACK pulse from the program tells the LogiSwitch device that it has received the input and
no longer needs its presence on the line. Note that the device continues to monitor the input for
release of the switch, and both make and break debouncing still takes place in the background
as normal. The line will accept another input after the break debounce period is timed out and
20 contiguous milliseconds of a clean high-level signal indicates a valid switch release.
After the ACK has been issued to the LogiSwitch device, the host computer can go about its
business executing program code and never look back. The handshake enhances the
responsiveness of so-called "polled" routines by eliminating the need for polling and thereby
allowing the host to execute code throughout all the time it would have been sitting in a
continuous loop waiting for release of the switch. A polled routine in a typical pushbutton
application may delay the program by 200-500 milliseconds or longer waiting for switch release,
during which time as many as 800,000 to 2 million instructions would have been executed by a
moderate speed 16 MHz 8-bit PIC processor. Numerous operational advantages are also
gained when the handshake is utilized in interrupt-driven applications, some of which may be
seen in the “LogiSwitch No Bounce IC Applications Examples.”
9
info@logiswitch.com
www.logiswitch.com
Figure 1. LS100 Series Logic Analyzer Capture of Switch Cycle
With/Without Handshake
Figure 1 shows the input/output timing of an NL/HS output of a full switch cycle without the
handshake vs. the 5 µs – 15 µs response of the LogiSwitch handshake feature. The device
terminates the cycle within 20 µs of receipt of an ACK pulse.
Note the immediate response of the NL/HS pin in the "no handshake" cycle timing shown in this
capture. A mirrored image follows the raw switch input on the NL/HS pin without the bounce.
10
info@logiswitch.com
www.logiswitch.com
Figure 2. Handshake timing with respect to 816 µs "Make" bounce.
This zoomed-in logic analyzer view shows the response of a cycle taking advantage of the
powerful handshake feature of the LogiSwitch LS100 Series devices compared to a bounce
duration of 816 µs. Typical response time from L5100 series
11
info@logiswitch.com
www.logiswitch.com
Test for switch a service
request in the main loop. If the
NL/HS line is high, the switch
has become active. If not,
continue with the main loop until
the next time through.
Okay, it is active. To
acknowledge that we have
received the request, we will
send a pulse back to the
LogiSwitch device.
First, we set the NL/HS pin to
output mode, then make it low.
Now we set a 5 µs delay to
allow time for the LogiSwitch
device to recognize our
acknowledgement.
Has the delay timed out yet?
Timeout done. Now we want to
go back to input mode. The
LogiSwitch device has already
seen the acknowledge pulse
and has latched the line out low
to end the cycle without the
need for release of the switch.
Note that another cycle will not
be initialized until the switch has
been released and its output
debounced.
Now we are all done with this
cycle. We can execute our
switch service routine and go
back to executing code in the
main loop. The LogiSwitch
device will determine when the
switch has been released and
debounced, so the next switch
cycle may be initiated.
12
info@logiswitch.com
www.logiswitch.com
Software – Implementing the Handshake with and Arduino
The following few lines of code for an Arduino Uno demonstrate the simplicity of a host computer interface
using the LogiSwitch handshake.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
13
//
//
//
//
***********************************************************************
This code snippet for Arduino Uno demonstrates the single-pin handshake
protocol of the LogiSwitch LS1xx-Series Switch Debouncer ICs
***********************************************************************
int NL_HS = 8; // Define the pin(s)
void setup ()
{
// Start with the NL_HS request-acknowledge pin configured as an input
pinMode(NL_HS, INPUT);
}
void loop()
{
// Place this code at the appropriate place in the main loop
if (digitalRead(NL_HS) == HIGH) // Is switch active?
{
pinMode(NL_HS, OUTPUT);
// Yes, respond with handshake
digitalWrite(NL_HS, LOW); // Acknowledge with a 5 μs low pulse
delayMicroseconds(5);
pinMode(NL_HS, INPUT);
// Return to input mode
// The switch service routine or function call goes here
}
}
info@logiswitch.com
www.logiswitch.com
LogiSwitch, LogiSwitch LLC, NoBounce are trademarks of LogiSwitch LLC. All other products and trademarks are the property of their respective holders.
很抱歉,暂时无法提供与“LS120-P”相匹配的价格&库存,您可以联系我们找货
免费人工找货