And8408 D1
And8408 D1
The desired logic function is determined from the inputs. The AND function is selected by setting input pin A
Functional Truth Table provided in the data sheets. For to a logic ‘1’ which selects the bottom four rows of the truth
example, Figure 1 shows how to use the ‘57’ as a 2−input table. The B and C pins serve as the inputs while the output
AND gate or the equivalent 2−input NOR with inverted is provided by pin Y.
NLX1G57
A
Design Example:
2−Input AND / NOR
Input A = H
+3.3 V
’57’
B 1 6 C
B
Y GND VCC
C 2 5
A 3 4 Y
B
Y
C
Figure 1. This design example shows how to implement a 2−input AND gate with
the NLX1G57 configurable logic gate
VOL
http://onsemi.com
2
AND8408/D
Pulse Generation Circuits delay the low−to−high and/or high−to−low transition times
Often it is necessary to delay either one or both edges of of the output signal by an amount that is proportional to the
a clock signal. Figures 3, 4 and 5 provide edge delay circuits RC product. Note that the delay times td1 and td2 of the dual
that are created by adding an external resistor and capacitor delay circuit will not be equivalent due to the hysteresis of
to the input pin of the logic gate. The resistor and capacitors the Schmitt trigger inputs.
R
IN’
IN OUT IN
IN’
OUT
R
IN’
IN OUT td1
td2
OUT
Figure 3. A resistor, capacitor and buffer / inverter delay the leading and rising edges of an input pulse
IN
IN’ IN
OUT
R
C
IN’
OUT
IN
IN’ OUT td
R
C
OUT
Figure 4. A leading edge delay circuit is created with a resistor, capacitor and an AND / NAND gate
http://onsemi.com
3
AND8408/D
IN
IN’ OUT
IN
R
C
IN’
OUT
IN
IN’ OUT
td
R
C
OUT
Figure 5. The trailing edge delay circuit is provided with a resistor, capacitor and OR / NOR gate
Edge detectors are a convenient circuit to generate a leading and trailing edges of the input signal. The pulse
second timing signal after the detection of the rising or widths of the two pulses (tw1, tw2) are proportional to the
falling edge of a clock signal. An exclusive OR gate provides value of the resistor and capacitor. In contrast, the leading
a dual edge detector circuit, as shown in Figures 6 and 7. In and trailing edge detection circuits, shown in Figures 8
addition, the dual edge detector circuit functions as a and 9, use an AND / NAND gate to provide a single
frequency doubler because a pulse is created on both the detection pulse.
IN
IN’ OUT
IN
R
C
IN’
OUT
IN
OUT tw1
IN’
tw2
R
C
OUT
Figure 6. A resistor, capacitor and XOR / XNOR gate provides one option to create a
dual edge detector or frequency doubler
http://onsemi.com
4
AND8408/D
IN
IN
IN
IN’ OUT
R
IN’
C
OUT
tw1
tw2
IN
IN’
IN
IN’ IN’ OUT
R
IN’
C
OUT
Figure 7. A resistor, capacitor and XOR gate with an inverted input forms an alternative method to create a dual
edge detector or frequency doubler
http://onsemi.com
5
AND8408/D
IN
IN
IN’ IN’ OUT
IN’
R
C IN’
OUT
IN
IN’ IN’ OUT
tw
R
C
OUT
Figure 8. The leading edge detector circuit is provided by a resistor, capacitor and
AND / NAND gate with an inverted input
IN
IN
IN IN
IN’ OUT
R
C
IN’
IN
IN
OUT OUT
IN’
R
C tw
OUT
http://onsemi.com
6
AND8408/D
Signal Conditioning Circuits application is to use the configurable gate to shift the input
Configurable logic ICs can function as a multiplexer or and output logic levels, as shown in Figure 11. Note that the
voltage translator. The ‘97’, ‘98’ and ‘99’ devices contain a overvoltage tolerance feature is not available in all
2−to−1 selector that is useful in data multiplexing configurable gates; however, it is a standard feature in the
applications, as shown in Figure 10. Another popular ON Semiconductor devices.
IN1
IN1
OUT
IN2
IN2
IN1 / IN2
OUT
IN1
OUT
IN2
OUT
Figure 10. The configurable logic gate can be used as a two−to−one multiplexer / selector
Voltage Translator
(VIN > VCC)
IN VIN
VCC
VIN
IN OUT
OUT
VCC
Figure 11. The overvoltage tolerant (OVT) feature on the input pin provides a simple method to create a
high−to−low voltage logic translator
The power indicator circuit shown in Figure 12 provides voltage supply has stabilized. In contrast, a diode is used to
a low cost alternative to analog comparator circuits that quickly discharge the capacitor at powerdown and provide
monitor the amplitude of a voltage supply. The external a signal that can be used to initiate the shutdown of power
resistor and capacitor delay the powerup sequence until the sensitive components.
http://onsemi.com
7
AND8408/D
VA
VA
D R
VB
VB
PWR
VIN
C
VIN
td2 << td1 VA
td1 td2
PWR
VB
Figure 12. A ‘Power Good’ indicator can be created from a diode, resistor, capacitor and buffer
The circuit provides a delay at powerup and a quick warning at powerdown
Switch debouncing, oscillators and Non−Return−to−Zero buffer gate. Figure 14 provides an example of a simple
(NRZ) to Return−to−Zero (RZ) data converters are oscillator circuit that can be used to create either a clock or
additional circuits that can be implemented with a gated clock signal. The AND gate can be used to combine
configurable gate. A switch debouncer circuit is shown in a clock signal with a NRZ input signal to create a RZ output
Figure 13 that is formed with two resistors, a capacitor and signal, as shown in Figure 15.
Switch Debouncer
VCC Switch Position
Open−to−Close Close−to−Open
R1
R2 VIN
VIN OUT
td1 td2
C R1 >> R2
td1 a R2 x C
td2 a R1 x C
OUT
Figure 13. The switch debouncer circuit provides time delays that prevent glitching on the output signal
http://onsemi.com
8
AND8408/D
Oscillators
1
R f req. ^
0.8 R C
OUT OUT
ON / OFF
OUT
C ON / OFF OUT
Figure 14. An oscillator can be created with a capacitor, resistor and inverter
Substituting a NAND gate for the inverter creates a gated oscillator
NRZ Input
NRZ Input
RZ Output Clock
Clock
RZ Output
Data Pattern 0 1 1 0 1 1 0
Figure 15. A Non−Return−to−Zero (NRZ) input signal can be converted to a Return−to−Zero (RZ) output with an
AND gate
References
1. Chenier, G. “Configurable Logic gates’ Schmitt Inputs Make Versatile Monostables”, EDN, May 25, 2006.
http://onsemi.com
9
AND8408/D
ON Semiconductor and are registered trademarks of Semiconductor Components Industries, LLC (SCILLC). SCILLC reserves the right to make changes without further notice
to any products herein. SCILLC makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does SCILLC assume any liability
arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation special, consequential or incidental damages.
“Typical” parameters which may be provided in SCILLC data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All
operating parameters, including “Typicals” must be validated for each customer application by customer’s technical experts. SCILLC does not convey any license under its patent rights
nor the rights of others. SCILLC products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications
intended to support or sustain life, or for any other application in which the failure of the SCILLC product could create a situation where personal injury or death may occur. Should
Buyer purchase or use SCILLC products for any such unintended or unauthorized application, Buyer shall indemnify and hold SCILLC and its officers, employees, subsidiaries, affiliates,
and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death
associated with such unintended or unauthorized use, even if such claim alleges that SCILLC was negligent regarding the design or manufacture of the part. SCILLC is an Equal
Opportunity/Affirmative Action Employer. This literature is subject to all applicable copyright laws and is not for resale in any manner.
http://onsemi.com AND8408/D
10