Digital Electronics Lab Manual
Digital Electronics Lab Manual
Digital Electronics Lab Manual
DIGITAL ELECTRONICS
(EL-335) For T.E (EL)
Introduction
The work book emphasizes on the basic components of digital electronics including op-amps, analog switches, different ICs, sample-and-hold circuit, ADC and DACs. All these components are pre fabricated on experiment modules, so students do not need to assemble any thing manually. These study modules are provided with complete power supply block and different electronic components so that different circuits can be established through jumpers and connecting wires. This makes it easy to observe the circuit and more time is at its disposal for observation rather then wasting time in assembling. Apart from this students will acquire comprehensive knowledge of equipments like Digital Multimeter, Function Generator and Digital Oscilloscope. By attaining knowledge of these equipments, components and accouterments students will be capable of designing, analyzing and observing an electronic circuit.
Date
2 3 4 5 6
To produce an astable multivibrator with: Symmetrical square wave output Non-Symmetrical square wave output To determine the frequency and output amplitude of a triangular wave generator To determine the frequency and output amplitude of a ramp generator To illustrate the operation and characteristics of the analog switches. To illustrate the switching times and switching threshold of the analog switches To illustrate the operation and characteristics of the sample and hold circuit General considerations on the Digital-to-Analog and Analog-to-Digital Conversion. And observation of its different parameters. Frequency analysis of the Digital-to-Analog and Analog-to-Digital Conversion and observation of its different Description of the module E18/EV and to illustrate the gate delay of a TTL Inverter To study the Basic Characteristics of Flip-Flops To observe the propagation and transition times of CMOS and TTL Gates To implement a) 2-bit counter circuit b) Frequency divider circuit Using JK-flip flop To implement a circuit that generates the magnitude of 2s complement number and then compare it with another number using a magnitude comparator and start a counter when certain condition true.
List of Experiments
Remarks
18-21 22-25
7 8 9 10 11
41-44
12
45-47
Lab No.1
PURPOSE:
To produce an astable multivibrator with: Symmetrical square wave output Non-symmetrical square wave output
EQUIPMENT REQUIRED:
Base unit for the IPES system Experiment module MCM7/EV Digital multimeter Function generator Oscilloscope
Theory:
With an astable multivibrator, the op amp operates only in the non-linear region. So its output has only two voltage levels, Vmin and Vmax. The astable continually switches from one state to the other, staying in each state for a fixed length of time. The circuit of an astable multivibrator is shown in figure f7.01. Note that this circuit does not need an input signal. To find out the relations governing the operation of the astable, we start with the usual hypothesis that the operational amplifier has an ideal behavior. Suppose the output is in the state Vo = Vmax. When Vo takes this value the voltage VAl of the non inverting input is: VAl = Vmax .R 1/ (R1 + R2) The capacitor C starts charging through resistor R towards the value Vmax. This charging continues until the voltage VB of the inverting input reaches the value VAl. At this point, as the inverting input voltage is more than the non-inverting input, the output switches low, to Vmin. The voltage VA2 is now given by: VA2= Vmin .R1 / (R1 + R2) At this point, the capacitor C starts discharging through R towards the voltage Vmin until it reaches the value VA2, at which point the output switches to Vmax .The cycle then starts again. We have seen that the voltage across the capacitor C can vary from VAl to VA2, so in the period of time when the output is low, at Vmin, the voltage on the capacitor is given by: VB(t)=Vmin (Vmin-Vmax*R1/(R1 + R2))*e-t/R*C While in the period of time when the output is at Vmax, the capacitor voltage is: VB(t)=Vmax (Vmax-Vmin*R1/(R1 + R2))*e-t/R*C 1
The period T1 for which the output voltage is at Vmax can be found by calculating the time the capacitor voltage takes to equal VAl. So: Vmax/(R1+R2) = (Vmin/(R1+R2)-Vmax)*e-T1/R*C + Vmax From which: T1=R*C*ln Vmax-R1/(R1+R2)*Vmin Vmax-R1/(R1+R2)*Vmax Similarly we can find the period T2 for which the output stays at Vmin: T2=R*C*ln Vmax*R1/(R1+R2)-Vmin Vmax*R1/ (R1+R2)-Vmin Supposing that Vmin = -Vmax we obtain: T1=T2=R*C*ln 1+R1/ (R1+R2) 1-R1/ (R1+R2) The total period T of the square-wave is given by the sum of T 1 and T2. We can see that the square-wave period and so the frequency can be varied by varying the values of R1, R2, R and C. To obtain an asymmetrical square-wave (duty cycle not 50%) we can make the capacitor charge and discharge through resistors of different values.
Figure F1.1
R
_ C
VB
+
VA
R1
Vo
R2
VMAX
VMAX
Procedure:
Insert jumpers J3, J16, J22, J30, J34 to produce the circuit of figure F7.02 Calculate the output frequency with the formulae. Connect the first probe of the oscilloscope to the output Vo of the amplifier and the second probe to the inverting input VB -Measure the frequency with the oscilloscope, and compare it with the theoretical result Calculate the capacitor voltages at which output switching occurs, according to the formulae Measure the capacitor voltages at which output switching occurs and compare the results with those calculated from theory
Figure F1.2
Figure F1.3
Now connect jumper J27, to produce the circuit of figure F7.03 Connect the first probe of the oscilloscope to the output of the Al operational amplifier and the second to the inverting input VB Calculate the values of T1 and T2 as given by the formulae. Measure the values of T1 and T2 with the oscilloscope.
Quantity
VB (P-P) VO(P-P) Frequency Vmax Vmin Capacitor charging time Capacitor discharging time
Outcome:
The approximate frequency of the oscillation of the astable multivibrator (Symmetrical square wave), when R1=R2=10k and R=100K, C = 68nf and Vmin = -Vmax comes out to be: 1 / T1+T2 =
Quantity
VB (P-P) VO(P-P) Frequency Vmax Vmin Capacitor charging time Capacitor discharging time
Outcome:
The approximate frequency of the oscillation of the astable multivibrator (Non symmetrical square wave), when R1=R2=10k and R=100K, C = 68nf and Vmin = -Vmax comes out to be: 1 / T1+T2 =
Lab No.2
PURPOSE:
To determine the frequency and output amplitude of a triangular wave generator To determine the frequency and output amplitude of a ramp generator
EQUIPMENT REQUIRED:
Base unit for the IPES system Experiment module MCM7/EV Digital multimeter Oscilloscope
Theory:
Among the waveforms that can be generated with op amps, the most common are the triangular, the ramp and the square-wave. A triangular wave can be generated with the circuit of figure F8.01.in which two operational amplifiers are used. The first operates as a comparator, while the second as an integrator. VO is the output voltage of the integrator, Vr the output voltage of the comparator. The saturation voltages Vmax and Vmin are equal in amplitude, and so can be called +Vr and Vr respectively. Suppose the output of the comparator is +Vr. The voltage VO will be a negative ramp which will continue to grow until the voltage of the non-inverting input of the comparator rises above zero. The minimum value of the output voltage VO, applying the superposition principle, will be given by: 0=Vr*R3 +VO*R1 R1+R3 From which we get: VO = -Vr*R3/R1
Figure F2.1
The same principles apply for the maximum voltage the output reaches, with the only difference that the ramp is raising and the voltage Vr is negative: defining this voltage as VO' we have: Vo' = Vr *R3 / Rl To calculate the time T taken to rise from VO to VO' remember that the capacitor C charges with a constant current given by: I = Vr / (P+R2) So, from: I = - C*dVo / dt We find that: Vr = -C* (Vo' -Vo) P+R2 T From which: V o' -Vo = - Vr*T C*(P+R2) As: we have: T = 2*R3*(P + R2)*C / Rl The time T is equal to half period, so the output frequency F will be the inverse of twice T: F = R1/ [4*R3*(R2+P)*C] Vo' -Vo = 2*Vr*R3 / Rl
Vo'
Vo T1 T2 Triangular wave
To convert the triangular wave generator to a ramp generator (also known as a saw-tooth) simply insert a diode and resistor in parallel with the potentiometer P and resistor R2. The diagram is shown in figure F2.2
Figure F2.2
Just as with the triangular wave generator, the positive ramp is generated by the current flowing through P and R2 (the diode D is reverse biased), while for the negative ramp the capacitor discharges through a smaller resistance (given by R5 in parallel with the series of P and R2) and so it is faster. So the time T1 to go from Vr*R3/Rl to +Vr*R3/Rl is the same as a triangular wave generator, while the time T2 of the return to Vr*R3/R1 is given by: T2 = 2*R3*RP*C R1 Where: RP = (P+R2) // R5 As in module MCM7 the resistance R5 is much less than the value of P and R2, RP can be considered equal to R5. With this approximation: T2=2*R3*R5*C RI With the values used in the module, and with the potentiometer all inserted, T2 = 4.4 sec which can be neglected in comparison with T1 which is about few milliseconds. The frequency of the ramp generator is equal to: F = R1/ [2*R3*(R2+P)*C] To obtain a square wave generator, take the signal from the output of the first op amp, and if the charge and discharge times of the integrator are equal, the output voltage will be symmetrical.
Vo'
Procedure:
Triangular waveform generator Insert jumpers J3, J13, J33, J34, J37, J39, J44, J53, J55 to the circuit of figure F2.3 Adjust RV6 completely CCW to obtain zero resistance and the output voltage value of the comparator (terminal 3) using oscilloscope. Adjust the trimmer RV6 to half value. Calculate the amplitude of the output voltage (terminal 5). Measure the amplitude of the output voltage with the oscilloscope. Calculate the output voltage frequency according to the formulae. Measure the output frequency with the oscilloscope. Check the presence of a square wave at the output of the comparator (terminal 3). Figure F2.3
Ramp generator: From previous circuit insert J36 to produce the circuit of figure F8.04. Adjust RV6 completely CCW to obtain zero resistance. Measure the amplitude of the output voltage with the oscilloscope 9
Calculate the output frequency using formulae Measure the output frequency with the oscilloscope Measure the charge and discharge times of the capacitor Figure F2.4
Observation:
S.NO.
1 2 3 4
Quantity
VO(triangular) Frequency (triangular) VO (Ramp) Frequency (Ramp)
Observed Value
Calculated value
Outcome:
Triangular: The approximate frequency of the oscillation of the astable multivibrator comes . out to be: The output voltage of the oscillation of the astable multivibrator comes out to be: . Ramp: The approximate frequency of the oscillation of the astable multivibrator comes out to be: . The output voltage of the oscillation of the astable multivibrator comes out to be: .
10
Lab No.3
PURPOSE:
To illustrate the operation and characteristics of the analog switches.
EQUIPMENT REQUIRED:
Base unit for the IPES system Experiment module G33/EV Digital multimeter
PMOS
RON
NMOS
12
Figure F3.1
Connect jack 12 to jack 14. Connect the digital multimeter (set to measure ohms) between jacks 9 and 10. Set switch I1 to ON; read the value of rDS (ON) indicated on the digital multimeter.
Outcome:
The RDS (ON) without current comes out to be: The RDS (ON) with current 2 mA comes out to be:
14
Lab No.4
PURPOSE:
To illustrate the switching times and switching threshold of the analog switches.
EQUIPMENT REQUIRED:
Base unit for the IPES system Experiment module G33/EV Digital multimeter Function generator Oscilloscope
Basic theory:
One of the main specifications regarding the application of analog switches is the TURN ON TIME and the TURN OFF TIME. When a switch is commanded to change from ON to OFF, and vice-versa, a propagation delay occurs in the circuit driver. The TON and TOFF times may be used to determine when a switch begins operation and whether multiple switches connected in a multiplexer configuration will be "make-before-break" or "break-before-make", i.e. whether the switches are triggered and then pause, or whether the pause precedes their action. The propagation delay should not be confused with the settling time, which is also effected by the load impedance. Two transitions will therefore apply: OFF to ON tsettling = tON + tl where tl = f (RON, RLOAD, CD, CLOAD) ON to OFF tsettling = tOFF + tl where tl . = f (RLOAD, CLOAD, CD)
Figure F4.1
15
INPUT signal
T OFF
Figure 6.01 shows measurements carried out on a sample switch. V Figure F4.3 Signal in Signal out
V1 switch -OFF
V1 switch -ON
Outcome:
The tON (Turn ON time) of the analog switch comes out to be: The tOFF (Turn OFF time) of the analog switch comes out to be: The voltages at which the analog switch opens comes out to be: The voltages at which the analog switch closes comes out to be:
17
Lab No.5
PURPOSE:
To illustrate the operation and characteristics of the sample and hold circuit
EQUIPMENT REQUIRED:
Base unit for the IPES system Experiment module G33/EV Function generator Oscilloscope
Theory:
Introduction
The most simple sample and hold circuit consists of a switch and a capacitance. Two important specifications may be easily illustrated using the basic circuit. These are the aperture time and the acquisition time. The aperture time is the delay (reaction time) between the moment in which the control logic instructs the switch to open and the moment in which the aperture actually occurs. When extremely long aperture times (in the order of milliseconds) are tolerated, a relay may be used for the switch. For aperture times of less than 100 s, FETs or BJTs are used as switches. In variable-time systems, the input signal to the sample and hold circuit changes; the sample and hold circuit holds the last signal measured. The acquisition time is the time required by the sample and hold circuit to acquire the input signal value (within a predetermined degree of accuracy) when the control logic passes from hold to sample. Clearly, the most onerous condition is that in which the output must alter over its entire range (e.g. from + 10V to -10V and vice-versa). Fig 5.01
18
Module Description Sample and hold device featuring operational amplifiers and analog switches This circuit represents a non-inverting sample and hold with four operational amplifiers and four analog switches. Operational amplifiers IC8 and IC10, together with analog switches IC9a and IC9c, make up the classic sample and hold circuit. As the two analog switches must operate in opposing modes: HOLD phase: IC9a = closed IC9c = open SAMPLE phase: IC9a = open IC9c = close And as there is only one command, switch IC9b is used to carry out an inversion. Capacitor C9 is the HOLD capacitor, and is also referred to as the "data storage capacitor". Input amplifier IC8, configured as non-inverting, has a high input resistance and features a potentiometer for calibration of the offset voltage. Operational IC10 is of the FET type, and therefore has a very high input resistance (being connected in a non-inverting configuration). This means that the discharge of capacitor C9 in the HOLD phase is minimal. The circuit consisting of IC9d and IC11 is added in order to minimize the errors introduced by analog switch IC9c and operational amplifier IC10. The errors introduced by these two parts of the circuit are identical (also considering that R42 corresponds approximately to the output resistance of operational amplifier IC8) and are therefore cancelled when applied to the two differential inputs of amplifier IC12 It is important that capacitors IC9 and IC10 are almost identical. By connecting jack 17 to jack 19, the SAMPLE/HOLD status may be controlled via the SAMPLE/HOLD switch. If jack 17 is connected to jack 18, the SAMPLFJHOLD status is controlled by the signal from the GENERATOR. Figure F 5.02
19
Figure F 5.03
20
Figure F5.4
Vary the duty cycle of controlling signal (connected to jack 17), and take observations. Vary the duty cycle and take observations. Connect the jack 15 and ground to function generator (sine wave of 5V positive with 5 KHz). Vary the duty cycle of controlling signal (connected to jack 17). Observe the acquisition times for different duty cycles of sample and hold signal. Repeat the procedure with triangular wave input
Outcome:
The time required for transformation of the square wave input signal into an output signal comes out to be as follows:
Aperture Times:
Rise Time = Fall Time =
Acquisition Times:
Rise Time = Fall Time =
21
Lab No.6
PURPOSE:
General considerations on the Digital-to-Analog and Analog-to-Digital Conversion. And observation of its different parameters.
EQUIPMENT REQUIRED:
Base unit for the IPES system Experiment module F03A Digital multimeter.
Basic theory:
An analog-to-digital (A/D) conversion means quantizing the amplitude of a physical quantity (e.g. a voltage) into a discrete levels class. Thus obtaining a series of digits, forming a number of a proper code. Generally the binary code and, consequently, binary numbers are used. Analog data can be obtained again through digital-to-analog (D/A) conversion. Due to the quantization, each value V of the analog signal included within the interval Vi to Vi+1 is always quantized at the same level Ni. The interval: Vi+1 to V1 = Q, is defined as "quantum level". Another important parameter of A/D converters is the conversion time since it defines the capacity of the converter to operate the conversion of a variable signal; in fact, remember that the sequence of the quantized levels must allow the regeneration of the original analog signal. A time-variable signal can be converted into a discrete values class carrying out the sampling and holding operations. The sampling and holding operations are carried out through proper circuits called "Sample and Hold".
Resolution
It defines the smallest standard incremental change in. the output voltage of a DAC or the amount of input voltage change required to increment the output of an ADC between a code change and the next adjacent code change. A converter with "n" switches can divide the input in 2n parts: the least significant increment is then 2-n, or one least significant bit (LSB). On the contrary the Most Significant Bit carries a weight of 21. Resolution is applied to DACs and ADCs and may be expressed in percent of full scale or in binary bits.
22
Quantization error The "ideal" quantization error obtained from the ideal characteristic of the A/D converter. It is the maximum deviation of a straight line of a perfect ADC, from a transfer function. As, by its very nature, an ADC quantizes the analog input into a finite number of output codes, only an infinite resolution would exhibit zero quantizing error. The quantizing error cannot strictly be applied to a DAC; in fact, the equivalent effect is more precisely a resolution error.
A/D converter
The A/D converter (ADCO804LCN) operates with an input range included from 0V to +5 V, that is, an input voltage of 0 V generates a digital output signal consisting of a sequence of all 0s , whereas an input voltage of +5volts generates a digital signal of all 1s. Therefore the input signal must be adapted so that the minimum value of its range can generate an output signal of all 0 and the maximum value of the range generates a digital signal of all 1. 23
D/A Converter
The digital signal (8 bits) which must be sent to the input of the D/A converter (DACO800) can come from the A/D converter, from the computer or from a set of the 8 switches. The operational amplifier IC1A has a gain of 0.5 and carries out a shift range of the input signal if the range -8 to +8 is selected, the operational amplifier IC1B makes the extreme range values coincide with 0v and 5v.
Range:
The range of module can be selected through Range IN/OUT switch. The range can be 0v to +8v, i.e. OV = 00000000 +8V = 11111111 or -8v to +8v, i.e. -8V = 00000000 +8V = 11111111
Procedure:
Set switch Range IN/OUT to 0V to 8V.
Resolution measurement:
Connect the 12V, +5V and ground jacks of the panel to a corrected power supply. Select SWITCH option through D/A input selector. Set the switches (S128 to S1) to any position and note the analog voltage output through multimeter. Change the position of switch S1 (LSB), and note the analog voltage output through multimeter. The change in voltages is equal to one resolution.
Quantization error:
Apply some voltage to ADC input. Increase the input voltage to maximum value so that the output of ADC does not change. Apply maximum change in input voltage for which output shows same value as previous. The change is Quantization error, normally equal to half of the resolution. 24
Now set the switch Range IN/OUT to -8 V to +8 V, and repeat the procedure.
Observation:
Input Voltage Binary Code(0 V to +8 V) Output voltage
Input Voltage
Binary Code(-8 V to +8 V)
Output voltage
Outcome:
The resolution of the ADC and DAC, for the switch Range IN/OUT position 0 V to 8 V, is. The quantization error of the ADC and DAC, for the switch Range IN/OUT position 0 V to 8 V, is. The resolution of the ADC and DAC, for the switch Range IN/OUT position -8 V to +8 V, is. The quantization error of the ADC and DAC, for the switch Range IN/OUT position -8 V to +8 V, is.
25
Lab No.7
PURPOSE:
Frequency analysis of the Digital-to-Analog and Analog-to-Digital Conversion, and observation of its different parameters:
EQUIPMENT REQUIRED:
Base unit for the IPES system Experiment module F03A Digital multimeter. Function generator Oscilloscope
Basic theory:
A time-variable signal can be converted into a discrete values class carrying out the following operations: Sampling operations: This is conversion of continuous time into discrete time, through which the instantaneous values of the analog signal are separated. The frequency of the sampling signal must guarantee the complete regeneration of the original signal. At this point, consider the sampling theorem stating that, if B is the bandwidth of the analog signal, the minimum sampling frequency must be equal to 2 B. Therefore F2B Sampling frequency: Analog signal is sampled at sampling frequency. The relation between analog and digital frequencies is: Digital frequency = analog frequency / sampling frequency f= F/Fs Periodic sampling of continuous-time signal implies a mapping of the infinite frequency range for the variable F (or ) into a finite frequency range for the variable f(or ). Since the highest frequency in a discrete time signal is = or f = , it follows that, with a sampling rate Fs, the corresponding highest values of F and are Fmax = Fs/2 = 1/2T max = *Fs = /T Quantization operation: This is conversion of discrete time continuous valued into a discrete time discrete valued (digital) signal. it holds a constant value during the whole conversion time of the A/D converter. Actually the sampled value is held until the next sampling. Coding: In the coding process, each discrete value is represented by a binary sequence.
26
Procedure:
Connect the 12V, +5V and ground jacks of the panel to a corrected power supply. Select A/D option through D/A input selector. Apply different voltage values to the analog input. Read the corresponding binary values on LEDs. Note the analog output values of the D/A converter corresponding to the different digital values and compare with the analog input value.
Outcome:
The maximum frequency of the sine wave input up to which output can be . reconstructed comes out to be: The most effected wave type by increasing frequency is: . The least effected wave type by increasing frequency is: .
27
Lab No.8
PURPOSE:
Description of the module E18/EV and to illustrate the gate delay of a TTL Inverter:
EQUIPMENT REQUIRED:
Base unit for the IPES system Experiment module E18/EV Digital multimeter Function generator Oscilloscope
Inverters 2- input AND ports 2-input NAND ports 2- input OR ports 2-input NOR ports 2-input EX-OR ports TTL-CMOS and CMOS-TTL interfaces J-K Flip-Flops 4-bit full Adder 4-bit Shift-register Synchronous BCD counter BCD decoder and display driver 7-segment display Sync up/down counter 9-bit parity generator Monostable Multiplexer Demultiplexer BCD to decimal decoder
28
-1 -1 -1 -1 -1 -1 -2 -8 -10 -4 -2
Encoder Three state buffer Latch 4-bit comparator 4-bit preselector Clock generator (1 Hz, 10 kHz) Push- buttons Switches LEDs NAND ports with two CMOS inputs 20-pin terminals
74LS147 74LS125 74LS75 74LS85 PICO-D-137-AK-1 74LS14 4/6417 4/7201 TIL210 CD4011
The components are mounted to carry out the experiments more quickly especially more complex circuits. The connections between terminals of the devices are carried out by means of electrical cables and proper tubes present on the module and, electrically connected to the terminals of the integrated circuits. Each integrated circuit shows the silk screen printed logical diagram. The functions related to the IC are shown and terminals (In-Out) are indicated.
Implementation of the full-adder circuit, using the module E18/EV: Full- Adder
A full-adder is a combinational circuit that forms the arithmetic sum of three input bits. It consists of three inputs and two outputs. Two of the input variables, denoted by x and y, represent two significant bits to be added. The third input z, represents the carry from the previous lower significant position. Two outputs are necessary because the arithmetic sum of three binary digits ranges in value from 0 to3 and binary 2or 3 needs two digits. The binary variable S indicates the sum and C the carry. The binary variable S gives the value if the least significant bit of the sum. The binary variable C gives the output carry.
Procedure:
Connect the 12V and ground jacks on the panel to a corrected power supply. Make connections as shown in fig.8.1. The connections between terminals of the devices should be carried out by electrical cables and proper tubes present on the module. Supply the required power (5V) to ICs AND OR and XOR. Connect the inputs x, y, and z to switches (SWO to SW7). Connect the output C and S to LEDs (LDO to LD9). Check different logics by changing switch position.
29
Fig.8.1
INPUT signal
OUTPUT signal
Trise
Tfall
30
Outcome:
The gate delay of a TTL Inverter comes out to be: The resulting truth table of the adder circuit is as follows: x 0 0 0 0 1 1 1 1 y 0 0 1 1 0 0 1 1 z 0 1 0 1 0 1 0 1 C S
31
Lab No.9
PURPOSE:
To study the Basic Characteristics of Flip-Flops
EQUIPMENT REQUIRED:
Base unit for the IPES system Experiment module E18/EV
Theory:
Introduction
The bistable multivibrator, commonly called flip- flops, are the most common form of digital memory elements. A memory element is generally a device which can store the logic state 0 or 1, called information "bit". The memory elements enable the storing of digital information for further uses. They permit to carry out complex sequential digital circuits, which took to the construction of modern calculators. R-S Flip-flop (latch) A main memory circuit can be carried out with the crossed coupling of two NAND ports: this kind of connection is called R-S flip- flop. Fig. 9.1 a) shows the diagram carried out with NAND ports, while fig.9.1 b) shows the symbol. Similarly, to carry out the same flip- flop, it is also possible to use some NOR ports. TRUTH TABLE OF THE R-S FLIP FLOP X= Last state ?= indefinite state S 0 0 1 1 R 0 1 0 1 Q X 0 1 ? Q` X 1 0 ?
R-S
R Q`
Fig. 9.1
32
Suppose a data is to be inserted in the flip- flop; the input levels are: SET = 1 and RESET = O. The output level of the port 1 is low (0) and this determines a high state across the output of port 3 (Q = 1). The output of port 2 is instead at 1, so port 4 finds two high levels (port 2 and 3) across its inputs, and takes its output to a low level (Q = 0). The flip- flop is now on SET, with memorized information. Now, applying a high level across the RESET terminal, keeping the SET to a low level (s = 0 and R = 1), the flip- flop switches, i.e. it changes state, and the output becomes Q = 0 and Q = 1. In this case we say that the flip-flop is in RESET state. If the inputs SET and RESET are simultaneously applied to a high logic level (S = R = 1), you obtain an indeterminate state: Q=Q`=1. When the still state (R=S=O) is reset, the output having the lower transition time is taken high. R-S Flip-flop with Clock In sequential systems, the change of state in the flip-flops is often required to occur in synchronism with the clock pulse. This is carried out by modifying the diagram of fig.9.1 into the one of fig. 9.2.
R-S
R Q`
CK
Fig. 9.2
While no input pulse is applied, the flip- flop keeps as it is, independently from the value of Rand S. Applying a clock pulse, if the inputs are R=S=O, the flip- flop keeps stable with the last output (Qn+1 = Qn). If instead we have: R = 0 and S = 1 the output of port 1 goes to 0 enabling the switching. In correspondence to a new clock pulse, if: R=1 and S=O, the latch changes state again and its outputs are: Q=O and Q=1. In the case in which: R=S=1 on arrival of the clock pulse, the outputs of the flip- flops should both go to 1. J-K flip-flop The J-K flip- flop is formed by the R-S with clock, in which the outputs are taken back to the input, as in fig. 9.3
33
J CK K
Q`
Fig. 9.3 Suppose that the flip- flop is in the state: Q = 0; Q = 1. If the data input J is at the level 1 in correspondence to the clock pulse, the output of port 1 gets to 0, and the memory cell composed by ports 3-4 changes state: Q = 1 and Q = 0 This flip-flop enables the removal of the uncertainty there was in the flip- flops R-S with clock, when the inputs were both at level 1. In fact, if: Q=1 Q=O J=K=1 on arrival of the clock pulse, only port 2 enables the passage of the input data, while port 1 blocks them. The level 0 obtained across the output of port 2 makes the memory element switch (port 3 and 4). So, we ha ve seen that when the inputs are both high there is no uncertainty, but the output state changes. J-K Master-Slave Flip-flop In the J-K flip- flops there can be possibility of uncertainty, if the clock pulse duration is too long in respect to the propagation times. Considering that the flip- flop is in the following conditions: Q=O Q=1 J=K=1 When the clock pulse is applied, after the propagation time "t" of the ports, the output becomes: Q = 1 and Q = 0 But being all the inputs signals still active, the outputs would tend to oscillate between 0 and 1, and at the end of the pulse, the state of the flip- flop is uncertain. To solve this inconvenience, the flip-flop type J-K Master-Slave has been introduced, which is commonly called J-K and can be seen in fig. 9.4.
34
It consists in a cascade connection of two R-S flip-flops, with reaction from the output of the second one, called SLAVE, to the input of the first, and called MASTER. Some pulses inverted in respect to the ones applied to the Master are applied across the input of the Slave. If the PRESET and CLEAR inputs are not active (Pr=Cr=1), on arrival of the clock pulse, the Master can change logic state according to the following truth table: tn Pr = Cr = 1 J 0 0 1 1 K 0 1 0 1 tn+1 Q n+1 Qn 0 1 Qn
As, during the period in which the clock pulse is high, the Slave keeps blocked, the outputs Q and Q` are not changed. When the clock passes from 1 to 0, the Slave switches, and the Master blocks. In other words, the data present across J and K are transferred first to the Master, during the positive part of the clock pulse, and then to the Slave, during the negative part: in this way, the uncertainties across the outputs are removed. D Flip-flop If a J-K flip-flop is modified by adding an inverter (as shown in fig.9.5 a), so that the input K is complement of J, the set is known as flip- flop type D, in which D=DATA (fig.9.5 b). Its operation is simple: when a clock pulse arrives, the data present across the input is transferred and kept across the output.
Pr Pr Q Q
J
D CK
D CK
Q`
Q`
Cr
Fig. 9.5
Cr
T Flip-flop If the inputs J and K are set always at logic level 1 on a flip- flop J-K, so this is a flip- flop commonly called type T (T means TOGGLE).It inverts the state of the outputs each time the input pulse applied to line T passes from the state 1 to the state O. Fig.9.6 shows the diagram (a) and the logic symbol (b) of a flip- flop type T.
35
Pr
Pr Q T CK Q
J
CK K
Q`
Q`
Cr
Fig. 9.5
Cr
Procedure :
Analysis of an R-S Flip-flop
Procedure Carry out a flip- flop type R-S using NAND and NOT ports, as in fig.9.1 Connect the SET and RESET inputs to two switches. Connect the outputs Q and Q to two LEDs. Power the module. Turn the SET input, with the switch, to 1 and then to 0. Analyze the behavior of the outputs. Set the RESET line to 1, and then to 0. Analyze the behavior of the outputs again. Repeat some times the operations with the switches and check the carried out memorizations. Now, try to set both inputs to 1 and explain what the reason of the uncertain state is.
S 0 0 1 1
R 0 1 0 1
Q`
Analyze the behavior of the LEDs. Now, set both switches to the logic level 1, and explain the behavior of the flip-flop. Comparison between J-K and J-K Master Slave Flip-flop Keep the circuit of the last exercise. Connect the switch of the input J also to J of an integrated flip-flop J-K (MasterSlave) present on the module. Carry out the same connection also for the inputs K and CK. Connect the outputs of the new flip- flops to other 2 LEDs. Power the module. Set the switches alternatively high and detect the differences between the two devices. Now, set both switches to 1 and analyze the behavior of the new flip- flop. tn J 0 0 1 1 K 0 1 0 1 tn+1 Q n+1
Checking the Operation of a Flip-flop D Carry out the circuit of fig. 9.5 a) of a flip-flop type D by means of J-K flip- flops Connect the inputs P and R to 1. Check the operation of the flip- flop D by means of switches 0-1 of the input D and the Clock. tn D tn+1 Q n+1
Checking the Operation of a Flip-flop T Carry out the circuit of fig. 9.6 a) of a flip-flop type T by means of J-K flip-flop Connect the inputs P and R to 1. Check the operation of the flip- flop T by means of switches 0-1 to the Clock input. tn T tn+1 Q n+1
37
Lab No.10
PURPOSE:
To observe the propagation and transition times of CMOS and TTL gates:
EQUIPMENT REQUIRED:
Module mod.E05a Power supply unit (+5 V and 12 V) Dual trace oscilloscope Function generator
Theory:
Introduction
Propagation delay times The following values are normally specified by the manufacturers for any log1C gate: a) t PHL: propagation delay time with output changing to the low level. b) t PLH : propagation delay time with output changing to the high level. The propagation delay times must be measured inside the fixed threshold values, which for the most part is the 50% of the whole signal varia tion. Transition times The following transition times are normally declared by the manufacturer: a) t THL: transition time with output changing to the low level. b) t TLH : transition time with output changing to the high level. The time measurement is between the 10% and the 90% of the whole signal variation. Fig. 10.1 shows the propagation delay time and the transition time of an inverting gate. Figure 10.1
38
Procedure :
Figure 10.2
Assemble the circuit of figure 10.2 with CMOS gates: Set the function generator for a 0-12V square wave and a frequency of 1 MHz. Connect the module to the power supply (+12V). Connect one of the CMOS gate input to the function generator output and the other one to the positive of the power supply input. NOTE: Connect the input signal to the devices only when the func tion generator is ON, after the input signal has been correctly set and the device itself has been powered. Connect the gate output to the first input of the oscilloscope. Connect the output of the first gate to another CMOS gate input and to the second input of the oscilloscope. Superimpose the present signals and find the output signal delay time in respect to the input one, fo r 1 to 0 and 0 to 1 transitions. Measure the 0 to 1 and the 1 to 0 transition, times considering the voltages equal to 10% and 90% of the signal maximum; Repeat the procedure with TTL gate. Compare the speed of the devices, with other families.
39
Outcome:
The t PHL of CMOS gates comes out to be: The t PLH of CMOS gates comes out to be: The t THL of CMOS gates comes out to be: The t TLH of CMOS gates comes out to be: The t PHL of TTL gates comes out to be: The t PLH of TTL gates comes out to be: The t THL of TTL gates comes out to be: The t TLH of TTL gates comes out to be:
40
LAB NO. 11 PURPOSE: To implement a) 2-bit counter circuit b) Frequency divider circuit Using JK-Flip-Flop EQUIPMENT REQUIRED: Base unit for IPES system Experiment module E18/EV Oscilloscope
THEORY: Counters are digital integrated devices which can state in a well-defined sequence, applying a train pulse across the input. They are carried out with flip-flop and logic port stages, where each stage supplies an output which, together with the others, indicate the number of pulses received in binary form. clk Q0 Q1
Q Fig-1
These counters are also called BINARY COUNTERS and can be used apart as counters as frequency dividers, supplying the o/p with a pulse after n input pulses.
41
If we apply a fixed frequency pulse train to a counter, rather than individual pulses coming at random intervals, we begin to notice some interesting characteristics and useful relationships between the input clock signal ad the output signal.
Consider a single flip flop with a continuous succession of clock pulses at a fixed frequency, such as the one shown above. We note three useful facts about the output signals seen at Q and Q : a) They are exactly inverted to each other b) They are perfect square waves (50% duty cycle) c) They have a frequency just half that of the clock pulse train The duty cycle of any rectangular waveform refers to the percentage of the full cycle that the signal remains at logic 1. If the signal spends half its time at logic 1 and the other half at logic 0, we have a waveform with a 50% duty cycle. This describes a perfect, symmetrical square wave.
Frequency division by an odd number is also possible. The circuit shown below is a demonstration of a divide-by-3 counter. No gates are required to control the sequence if JK-flip flops are used; feeding the output signals back to the appropriate inputs is sufficient.
42
Q0
Q1
J clk K Q
J K
Q Q Fig-
Of course it is not possible to get a symmetrical (50% duty cycle) square wave with this circuit. Q0 is at logic 1 for two clock pulses out of three; Q1 is at logic 1 for one clock pulse out of 3. Thus duty cycle of 1/3 (33.33%) and 2/3 (66.67%) are available. Other counting sequences are also possible. If a need exist to have two or more signals in a particular frequency relationship with each other, some extension or variation on the circuits shown can be designed to meet the need.
PROCEDURE: a) b) 2-bit Asynchronous Counter: Carry out the circuit of Fig-1, a 2-stage asynchronous counter Connect all inputs, J and K to logic 1 (i.e +5V) Connect 1Hz clock to input CK of first flip-flop Connect Q0 to CK of second flip-flop Connect the two outputs, Q0 and Q1, to decoder/driver Connect the outputs of decoder/driver to respective inputs of display Power the module and analyze the operation of complete system Frequency Divider Carry out the circuit of Fig-2 Connect the CK (clock) input of both flip-flops to external 1Hz clock Connect both the K input to Q1 Connect Q0 to J input of second flip-flop Connect J-input of first flip-flop to logic 1 (+5V) Connect first channel of oscilloscope to clock input and second to Q0 Now disconnect second channel and connect it to Q1 Observe the frequencies of Q0 and Q1 with respect to input clock frequency 43
OUTCOME:
44
LAB NO. 12
PURPOSE:
To implement a circuit complement number and then compare it with another number using a magnitude comparator and start a counter when certain condition true.
EQUIPMENT REQUIRED:
Base unit the IPES system Experiment module E18/EV
THEORY:
A comparator compares two binary numbers and produces an output to show if the two numbers are equal, or if one is higher than other. < Ai A<B Bi < 0 0 A=B = 0 0 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 = > Ai Bi A< B 0 1 0 0 0 1 0 0 1 1 0 1 A= B 0 0 0 0 1 0 0 1 0 0 0 0 A> B 1 0 1 1 0 0 1 0 0 0 1 0
45
The counter used is a synchronous BCD counter, in a synchronous counter all flip-flop stages changes state contemporarily to the arrival of the clock pulse. A higher operating speed can be reached, so that they are more largely used in industrial applications. We represent negative numbers by putting the symbol "-" in front of number. But a computer doesnt have it so easy. All it knows is bits, so we need to find some way to encode a negative number into a bit pattern so that the computer knows its a negative value. Several schemes have been used over the years: 1) Sign and magnitude 2) 1s complement 3) 2s complement If we use binary comparator for numbers in sign magnitude, 1s or 2s complement representation, the result isnt correct. It is caused by sign bit, which is equal 1 for negative numbers but in binary numbers has the biggest weight. To obtain correct result the negative numbers should be complemented (in 1s and 2s complement representation), or both numbers should be tested like during addition (in sign magnitude representation). Therefore, we have to find out the magnitude for 2s complemented 3-bit numbers in order to compare it with other binary number, to construct a circuit which will calculate the magnitude we have to find out the logic equation of the output using the following table(A,B,C are inputs and D,E are the outputs)
A 0 1 2 3 -4 -3 -2 -1 0 0 0 0 1 1 1 1
B 0 0 1 1 0 0 1 1
C 0 1 0 1 0 1 0 1
D 0 0 1 1 X 1 1 0
E 0 1 0 1 X 1 0 1
The simplified logic equations for obtaining two bit magnitude are:
PROCEDURE:
Implement the equations to generate two bit magnitude of the 3-bit 2s complemented number using the negative gates and switches. Connect the signal D and E to the A1 and A0 respectively of comparators input. Connect the B1 and B0 input to the switches. Connect the comparators inputs A2, A3 B2, and B3 to ground. Connect the RES of counter to the A>B output of the comparator Connect the input CK of counter to clock of 1 Hz. Connect both the enablers EN to logic level high. Connect the outputs QA QB QC QD respectively to the LEDs. Observe the counters output.
OUTCOME
47
November 1999
Key Specifications
n Resolution n Total error n Conversion time 8 bits
Features
n Compatible with 8080 P derivatives no interfacing logic needed - access time - 135 ns n Easy interface to all microprocessors, or operates stand alone
Connection Diagram
ADC080X Dual-In-Line and Small Outline (SO) Packages
DS005671-30
Ordering Information
TEMP RANGE ERROR 0C TO 70C ADC0802LCWM ADC0804LCWM M20B Small Outline ADC0804LCN 0C TO 70C 40C TO +85C ADC0801LCN ADC0802LCN ADC0803LCN ADC0805LCN/ADC0804LCJ N20A Molded DIP
DS005671
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Typical Applications
DS005671-1
8080 Interface
DS005671-31
Error Specification (Includes Full-Scale, Zero Error, and Non-Linearity) Part Number ADC0801 ADC0802 ADC0803 ADC0804 ADC0805 FullScale Adjusted VREF/2=2.500 VDC (No Adjustments) VREF/2=No Connection (No Adjustments)
1 LSB 1 LSB
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
Infrared (15 seconds) Storage Temperature Range Package Dissipation at TA =25C ESD Susceptibility (Note 10)
Electrical Characteristics
The following specifications apply for VCC =5 VDC, TMINTATMAX and fCLK =640 kHz unless otherwise specified. Parameter ADC0801: Total Adjusted Error (Note 8) ADC0802: Total Unadjusted Error (Note 8) ADC0803: Total Adjusted Error (Note 8) ADC0804: Total Unadjusted Error (Note 8) ADC0805: Total Unadjusted Error (Note 8) VREF/2 Input Resistance (Pin 9) Analog Input Voltage Range DC Common-Mode Error Power Supply Sensitivity Conditions With Full-Scale Adj. (See Section 2.5.2) VREF/2=2.500 VDC With Full-Scale Adj. (See Section 2.5.2) VREF/2=2.500 VDC VREF/2-No Connection ADC0801/02/03/05 ADC0804 (Note 9) (Note 4) V(+) or V() Over Analog Input Voltage Range VCC =5 VDC 10% Over Allowed VIN(+) and VIN() Voltage Range (Note 4) 2.5 0.75 Gnd0.05 8.0 1.1 VCC+0.05 Min Typ Max Units LSB LSB LSB LSB LSB k k VDC LSB LSB
14
12 12 1 1
1/16 1/16
18 18
AC Electrical Characteristics
The following specifications apply for VCC =5 VDC and TMINTATMAX unless otherwise specified. Symbol TC TC fCLK CR tW(WR)L tACC t1H, t0H Parameter Conversion Time Conversion Time Clock Frequency Clock Duty Cycle Conversion Rate in Free-Running Mode Width of WR Input (Start Pulse Width) Access Time (Delay from Falling Edge of RD to Output Data Valid) TRI-STATE Control (Delay from Rising Edge of RD to Hi-Z State) tWI, tRI CIN Delay from Falling Edge of WR or RD to Reset of INTR Input Capacitance of Logic Control Inputs
3 www.national.com
Conditions fCLK =640 kHz (Note 6) (Notes 5, 6) VCC =5V, (Note 5) INTR tied to WR with CS =0 VDC, fCLK =640 kHz CS =0 VDC (Note 7) CL =100 pF CL =10 pF, RL =10k (See TRI-STATE Test Circuits)
Typ
Max 114 73
640
1460 60 9708
135 125
200 200
ns ns
300 5
450 7.5
ns pF
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
AC Electrical Characteristics
Symbol COUT Parameter TRI-STATE Output Capacitance (Data Buffers)
(Continued)
The following specifications apply for VCC =5 VDC and TMINTATMAX unless otherwise specified. Conditions Min Typ 5 Max 7.5 Units pF
CONTROL INPUTS [Note: CLK IN (Pin 4) is the input of a Schmitt trigger circuit and is therefore specified separately] VIN (1) VIN (0) IIN (1) IIN (0) Logical 1 Input Voltage (Except Pin 4 CLK IN) Logical 0 Input Voltage (Except Pin 4 CLK IN) Logical 1 Input Current (All Inputs) Logical 0 Input Current (All Inputs) CLOCK IN AND CLOCK R VT+ VT VH VOUT (0) VOUT (1) CLK IN (Pin 4) Positive Going Threshold Voltage CLK IN (Pin 4) Negative Going Threshold Voltage CLK IN (Pin 4) Hysteresis (VT+)(VT) Logical 0 CLK R Output Voltage Logical 1 CLK R Output Voltage DATA OUTPUTS AND INTR VOUT (0) Logical 0 Output Voltage Data Outputs INTR Output VOUT (1) VOUT (1) IOUT ISOURCE ISINK POWER SUPPLY ICC Supply Current (Includes Ladder Current) ADC0801/02/03/04LCJ/05 ADC0804LCN/LCWM fCLK =640 kHz, VREF/2=NC, TA =25C and CS =5V 1.1 1.9 1.8 2.5 mA mA Logical 1 Output Voltage Logical 1 Output Voltage TRI-STATE Disabled Output Leakage (All Data Buffers) IOUT =1.6 mA, VCC =4.75 VDC IOUT =1.0 mA, VCC =4.75 VDC IO =360 A, VCC =4.75 VDC IO =10 A, VCC =4.75 VDC VOUT =0 VDC VOUT =5 VDC VOUT Short to Gnd, TA =25C VOUT Short to VCC, TA =25C 4.5 9.0 6 16 2.4 4.5 3 3 0.4 0.4 VDC VDC VDC VDC ADC ADC mADC mADC IO =360 A VCC =4.75 VDC IO =360 A VCC =4.75 VDC 2.4 VDC 0.4 VDC 0.6 1.3 2.0 VDC 1.5 1.8 2.1 VDC 2.7 3.1 3.5 VDC VIN =0 VDC 1 0.005 ADC VIN =5 VDC 0.005 1 ADC VCC =4.75 VDC 0.8 VDC VCC =5.25 VDC 2.0 15 VDC
Note 1: Absolute Maximum Ratings indicate limits beyond which damage to the device may occur. DC and AC electrical specifications do not apply when operating the device beyond its specified operating conditions. Note 2: All voltages are measured with respect to Gnd, unless otherwise specified. The separate A Gnd point should always be wired to the D Gnd. Note 3: A zener diode exists, internally, from VCC to Gnd and has a typical breakdown voltage of 7 VDC. Note 4: For VIN() VIN(+) the digital output code will be 0000 0000. Two on-chip diodes are tied to each analog input (see block diagram) which will forward conduct for analog input voltages one diode drop below ground or one diode drop greater than the VCC supply. Be careful, during testing at low VCC levels (4.5V), as high level analog inputs (5V) can cause this input diode to conductespecially at elevated temperatures, and cause errors for analog inputs near full-scale. The spec allows 50 mV forward bias of either diode. This means that as long as the analog VIN does not exceed the supply voltage by more than 50 mV, the output code will be correct. To achieve an absolute 0 VDC to 5 VDC input voltage range will therefore require a minimum supply voltage of 4.950 VDC over temperature variations, initial tolerance and loading. Note 5: Accuracy is guaranteed at fCLK = 640 kHz. At higher clock frequencies accuracy can degrade. For lower clock frequencies, the duty cycle limits can be extended so long as the minimum clock high time interval or minimum clock low time interval is no less than 275 ns. Note 6: With an asynchronous start pulse, up to 8 clock periods may be required before the internal clock phases are proper to start the conversion process. The start request is internally latched, see Figure 4 and section 2.0.
www.national.com
ADC0801/ADC0802/ADC0803/ADC0804/ADC0805
AC Electrical Characteristics
(Continued)
Note 7: The CS input is assumed to bracket the WR strobe input and therefore timing is dependent on the WR pulse width. An arbitrarily wide pulse width will hold the converter in a reset mode and the start of conversion is initiated by the low to high transition of the WR pulse (see timing diagrams). Note 8: None of these A/Ds requires a zero adjust (see section 2.5.1). To obtain zero code at other analog input voltages see section 2.5 and Figure 7. Note 9: The VREF/2 pin is the center point of a two-resistor divider connected from VCC to ground. In all versions of the ADC0801, ADC0802, ADC0803, and ADC0805, and in the ADC0804LCJ, each resistor is typically 16 k. In all versions of the ADC0804 except the ADC0804LCJ, each resistor is typically 2.2 k. Note 10: Human body model, 100 pF discharged through a 1.5 k resistor.
DS005671-38 DS005671-39
DS005671-40
DS005671-44
DS005671-46 DS005671-45
www.national.com
June 1999
Features
n n n n n n n n n n n Fast settling output current: 100 ns Full scale error: 1 LSB Nonlinearity over temperature: 0.1% Full scale current drift: 10 ppm/C High output compliance: 10V to +18V Complementary current outputs Interface directly with TTL, CMOS, PMOS and others 2 quadrant wide range multiplying capability Wide power supply range: 4.5V to 18V Low power consumption: 33 mW at 5V Low cost
Typical Applications
DS005686-1
Ordering Information
Non-Linearity Temperature Range 0C TA +70C 55C TA +125C 0C TA +70C Order Numbers J Package (J16A) (Note 1) N Package (N16E) (Note 1) SO Package (M16A) DAC0802LCJ DAC-08HQ DAC0802LCN DAC-08HP DAC0802LCM DAC0800LJ DAC0800LCJ DAC-08Q DAC-08EQ DAC0800LCN DAC-08EP DAC0800LCM
DS005686
www.national.com
DAC0800/DAC0802
Storage Temperature Lead Temp. (Soldering, 10 seconds) Dual-In-Line Package (plastic) Dual-In-Line Package (ceramic) Surface Mount Package Vapor Phase (60 seconds) Infrared (15 seconds)
65C to +150C 260C 300C 215C 220C (Note 2) Max +125 +70 +70 Units C C C
18V or 36V
500 mW
Operating Conditions
Min Temperature (TA) DAC0800L DAC0800LC DAC0802LC 55 0 0
Electrical Characteristics
The following specifications apply for VS = 15V, IREF = 2 mA and TMIN TA TMAX unless otherwise specified. Output characteristics refer to both IOUT and IOUT.
DAC0802LC DAC0800L/ DAC0800LC Min Resolution Monotonicity Nonlinearity 8 8 To 12 LSB, All Bits Switched ON or OFF, TA =25C DAC0800L DAC0800LC 100 100 35 35 60 60 35 35 135 150 60 60 ns ns ns ns ppm/C V mA A A mA mA V V 2.0 0.002 10 10 1.0 4.0 0.01 0.01 8.0 0.0001 0.0001 0.01 0.01 10 10 18 13.5 3.0 A A V V A mA/s %/% %/% Typ 8 8 100 Max 8 8 Min 8 8 Typ 8 8 Max 8 8 Bits Bits %FS ns Units Parameter Conditions
Symbol
0.1
135
0.19
ts
Settling Time
Propagation Delay Each Bit All Bits Switched Full Scale Tempco Output Voltage Compliance Full Scale Current Full Scale Symmetry Zero Scale Current Output Current Range Logic Input Levels
TA =25C
10
Full Scale Current Change 10 1.984 1.992
50
18 2.000 10 1.94
10
50
18
0.5
0.1 2.0 2.0
4.0
1.0 2.1 4.2 0.8 2.0 0 0
1
0.2 2.0 2.0
8.0
2.0 2.1 4.2 0.8
www.national.com
DAC0800/DAC0802
Electrical Characteristics
(Continued)
The following specifications apply for VS = 15V, IREF = 2 mA and TMIN TA TMAX unless otherwise specified. Output characteristics refer to both IOUT and IOUT.
DAC0802LC Symbol Parameter Power Supply Current I+ I VS =5V, 15V, IREF =2 mA I+ I VS = 15V, IREF =2 mA I+ I PD Power Dissipation 2.5 6.5 3.8 7.8 48 136 174 2.5 6.5 33 108 135 3.8 7.8 48 136 174 mA mA mW mW mW 2.4 6.4 3.8 7.8 2.4 6.4 3.8 7.8 mA mA Conditions Min VS = 5V, IREF =1 mA 2.3 4.3 3.8 5.8 2.3 4.3 3.8 5.8 mA mA Typ Max DAC0800L/ DAC0800LC Min Typ Max Units
5V, IREF =1 mA
5V,15V, IREF =2 mA
33 108 135
15V, IREF =2 mA
Note 2: Absolute Maximum Ratings indicate limits beyond which damage to the device may occur. DC and AC electrical specifications do not apply when operating the device beyond its specified operating conditions. Note 3: The maximum junction temperature of the DAC0800 and DAC0802 is 125C. For operating at elevated temperatures, devices in the Dual-In-Line J package must be derated based on a thermal resistance of 100C/W, junction-to-ambient, 175C/W for the molded Dual-In-Line N package and 100C/W for the Small Outline M package. Note 4: Human body model, 100 pF discharged through a 1.5 k resistor. Note 5: Pin-out numbers for the DAC080X represent the Dual-In-Line package. The Small Outline package pin-out differs from the Dual-In-Line package.
Connection Diagrams
Dual-In-Line Package Small Outline Package
DS005686-14 DS005686-13
Top View
www.national.com
DAC0800/DAC0802
DS005686-2
Curve 1: CC =15 pF, VIN =2 Vp-p centered at 1V. Curve 2: CC =15 pF, VIN =50 mVp-p centered at 200 mV. Curve 3: CC =0 pF, VIN =100 mVp-p centered at 0V and applied through 50 connected to pin 14.2V applied to R14.
www.national.com
DAC0800/DAC0802
(Continued)
DS005686-29 DS005686-28
DS005686-30
Note. B1B8 have identical transfer characteristics. Bits are fully switched with less than 12 LSB error, at less than 100 mV from actual threshold. These switching points are guaranteed to lie between 0.8 and 2V over the operating temperature range (VLC = 0V).
DS005686-31
DS005686-32
DS005686-33
Equivalent Circuit
DS005686-15
FIGURE 2.
www.national.com
August 2000
Connection Diagrams
Metal Can Package
DS009341-3 DS009341-2
Order Number LM741J, LM741J/883, LM741CN See NS Package Number J08A, M08A or N08E Ceramic Flatpak
Order Number LM741H, LM741H/883 (Note 1), LM741AH/883 or LM741CH See NS Package Number H08C
DS009341-6
Typical Application
Offset Nulling Circuit
DS009341-7
DS009341
www.national.com
LM741
22V
500 mW
22V
500 mW
30V 15V
Continuous 55C to +125C 65C to +150C 150C 260C 300C
30V 15V
Continuous 55C to +125C 65C to +150C 150C 260C 300C
See AN-450 Surface Mounting Methods and Their Effect on Product Reliability for other methods of soldering
10
15
15
mV
12 12 13
13
V V
www.national.com
LM741
(Continued) LM741A Min Typ Max Min LM741 Typ Max Min LM741C Typ Max V/mV 50 200 20 200 V/mV Units
TA = 25C, RL 2 k VS = 20V, VO = 15V VS = 15V, VO = 10V TAMIN TA TAMAX, RL 2 k, VS = 20V, VO = 15V VS = 15V, VO = 10V VS = 5V, VO = 2V VS = 20V RL 10 k RL 2 k VS = 15V RL 10 k RL 2 k 32 25 10 15 V/mV V/mV V/mV V V 50
16 15 12 10
10 10 25 35 40 70 80 95 90 70 90
14 13
25
12 10
14 13
25
V V mA mA dB dB
Output Short Circuit Current Common-Mode Rejection Ratio Supply Voltage Rejection Ratio
TA = 25C TAMIN TA TAMAX TAMIN TA TAMAX RS 10 k, VCM = 12V RS 50, VCM = 12V TAMIN TA TAMAX, VS = 20V to VS = 5V RS 50 RS 10 k
86
96 77 0.25 6.0 0.8 20 96 0.3 5 0.5 1.7 80 150 50 165 135 60 45 100 75 85 50 85 2.8 77 96 0.3 5 0.5 1.7 2.8
dB dB s % MHz V/s mA mW mW mW mW mW mW
Transient Response Rise Time Overshoot Bandwidth (Note 6) Slew Rate Supply Current Power Consumption
0.437 0.3
1.5 0.7
LM741A
LM741
Note 2: Absolute Maximum Ratings indicate limits beyond which damage to the device may occur. Operating Ratings indicate conditions for which the device is functional, but do not guarantee specific performance limits.
www.national.com
LM741
(Continued)
Note 3: For operation at elevated temperatures, these devices must be derated based on thermal resistance, and Tj max. (listed under Absolute Maximum Ratings). Tj = TA + (jA PD).
Note 4: For supply voltages less than 15V, the absolute maximum input voltage is equal to the supply voltage. Note 5: Unless otherwise specified, these specifications apply for VS = 15V, 55C TA +125C (LM741/LM741A). For the LM741C/LM741E, these specifications are limited to 0C TA +70C. Note 6: Calculated value from: BW (MHz) = 0.35/Rise Time(s). Note 7: For military specifications see RETS741X for LM741 and RETS741AX for LM741A. Note 8: Human body model, 1.5 k in series with 100 pF.
Schematic Diagram
DS009341-1
www.national.com
LM741
Physical Dimensions
Metal Can Package (H) Order Number LM741H, LM741H/883, LM741AH/883, LM741AH-MIL or LM741CH NS Package Number H08C
Ceramic Dual-In-Line Package (J) Order Number LM741J/883 NS Package Number J08A
www.national.com
LM741
Physical Dimensions
10-Lead Ceramic Flatpak (W) Order Number LM741W/883, LM741WG-MPR or LM741WG/883 NS Package Number W10A
www.national.com
Notes
LIFE SUPPORT POLICY NATIONALS PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF THE PRESIDENT AND GENERAL COUNSEL OF NATIONAL SEMICONDUCTOR CORPORATION. As used herein: 1. Life support devices or systems are devices or systems which, (a) are intended for surgical implant into the body, or (b) support or sustain life, and whose failure to perform when properly used in accordance with instructions for use provided in the labeling, can be reasonably expected to result in a significant injury to the user.
National Semiconductor Corporation Americas Tel: 1-800-272-9959 Fax: 1-800-737-7018 Email: support@nsc.com www.national.com National Semiconductor Europe Fax: +49 (0) 180-530 85 86 Email: europe.support@nsc.com Deutsch Tel: +49 (0) 69 9508 6208 English Tel: +44 (0) 870 24 0 2171 Franais Tel: +33 (0) 1 41 91 8790
2. A critical component is any component of a life support device or system whose failure to perform can be reasonably expected to cause the failure of the life support device or system, or to affect its safety or effectiveness.
National Semiconductor Asia Pacific Customer Response Group Tel: 65-2544466 Fax: 65-2504466 Email: ap.support@nsc.com
National does not assume any responsibility for use of any circuitry described, no circuit patent licenses are implied and National reserves the right at any time without notice to change said circuitry and specifications.
July 2000
Features
n n n n n n n n n n n Operates from 5V to 18V supplies Less than 10 s acquisition time TTL, PMOS, CMOS compatible logic input 0.5 mV typical hold step at Ch = 0.01 F Low input offset 0.002% gain accuracy Low output noise in hold mode Input characteristics do not change during hold mode High supply rejection ratio in sample or hold Wide bandwidth Space qualified, JM38510
Logic inputs on the LF198 are fully differential with low input current, allowing direct connection to TTL, PMOS, and CMOS. Differential threshold is 1.4V. The LF198 will operate from 5V to 18V supplies. An A version is available with tightened electrical specifications.
DS005692-32
DS005692-16
Functional Diagram
DS005692-1
DS005692
www.national.com
LF198/LF298/LF398, LF198A/LF398A
Hold Capacitor Short Circuit Duration Lead Temperature (Note 4) H package (Soldering, 10 sec.) N package (Soldering, 10 sec.) M package: Vapor Phase (60 sec.) Infrared (15 sec.) Thermal Resistance (JA) (typicals) H package 215C/W (Board mount in still air) 85C/W (Board mount in 400LF/min air flow) N package M package 115C/W 106C/W
18V
500 mW
Electrical Characteristics
The following specifcations apply for VS + 3.5V VIN +VS 3.5V, +VS = +15V, VS = 15V, TA = Tj = 25C, Ch = 0.01 F, RL = 10 k, LOGIC REFERENCE = 0V, LOGIC HIGH = 2.5V, LOGIC LOW = 0V unless otherwise specified. Parameter Input Offset Voltage, (Note 5) Input Bias Current, (Note 5) Input Impedance Gain Error Feedthrough Attenuation Ratio at 1 kHz Output Impedance HOLD Step, (Note 6) Supply Current, (Note 5) Logic and Logic Reference Input Current Leakage Current into Hold Capacitor (Note 5) Acquisition Time to 0.1% Hold Capacitor Charging Current Supply Voltage Rejection Ratio Differential Logic Threshold Input Offset Voltage, (Note 5) Input Bias Current, (Note 5) Tj = 25C, (Note 7) Hold Mode VOUT = 10V, Ch = 1000 pF Ch = 0.01 F VINVOUT = 2V VOUT = 0 Tj = 25C Tj = 25C Full Temperature Range Tj = 25C Full Temperature Range 5 80 0.8 4 20 5 110 1.4 1 2.4 1 2 25 75 10 80 0.8 4 20 5 110 1.4 2 2.4 2 3 25 50 s s mA dB V mV mV nA nA 30 100 30 200 pA Tj = 25C, HOLD mode Full Temperature Range Tj = 25C, Ch = 0.01 F, VOUT = 0 Tj25C Tj = 25C 0.5 4.5 2 0.5 2 4 2.0 5.5 10 1.0 4.5 2 0.5 4 6 2.5 6.5 10 mV mA A Tj = 25C Full Temperature Range Tj = 25C Full Temperature Range Tj = 25C Tj = 25C, RL = 10k Full Temperature Range Tj = 25C, Ch = 0.01 F 86 96 1010 0.002 0.005 0.02 80 90 5 Conditions Min LF198/LF298 Typ 1 Max 3 5 25 75 1010 0.004 0.01 0.02 10 Min LF398 Typ 2 Max 7 10 50 100 mV mV nA nA % % dB Units
www.national.com
LF198/LF298/LF398, LF198A/LF398A
Electrical Characteristics
The following specifcations apply for VS + 3.5V VIN +VS 3.5V, +VS = +15V, VS = 15V, TA = Tj = 25C, Ch = 0.01 F, RL = 10 k, LOGIC REFERENCE = 0V, LOGIC HIGH = 2.5V, LOGIC LOW = 0V unless otherwise specified. Parameter Input Impedance Gain Error Feedthrough Attenuation Ratio at 1 kHz Output Impedance HOLD Step, (Note 6) Supply Current, (Note 5) Logic and Logic Reference Input Current Leakage Current into Hold Capacitor (Note 5) Acquisition Time to 0.1% Hold Capacitor Charging Current Supply Voltage Rejection Ratio Differential Logic Threshold Tj = 25C, (Note 7) Hold Mode VOUT = 10V, Ch = 1000 pF Ch = 0.01 F VINVOUT = 2V VOUT = 0 Tj = 25C 90 0.8 4 20 5 110 1.4 2.4 90 0.8 6 25 4 20 5 110 1.4 2.4 6 25 s s mA dB V 30 100 30 100 pA Tj = 25C, HOLD mode Full Temperature Range Tj = 25C, Ch = 0.01F, VOUT = 0 Tj25C Tj = 25C 0.5 4.5 2 0.5 1 4 1 5.5 10 1.0 4.5 2 0.5 1 6 1 6.5 10 mV mA A Conditions Min Tj = 25C Tj = 25C, RL = 10k Full Temperature Range Tj = 25C, Ch = 0.01 F 86 96 LF198A Typ 1010 0.002 Max 0.005 0.01 86 90 Min LF398A Typ 1010 0.004 Max 0.005 0.01 % % dB Units
Note 1: Absolute Maximum Ratings indicate limits beyond which damage to the device may occur. Operating Ratings indicate conditions for which the device is functional, but do not guarantee specific performance limits. Note 2: The maximum power dissipation must be derated at elevated temperatures and is dictated by TJMAX, JA, and the ambient temperature, TA. The maximum allowable power dissipation at any temperature is PD = (TJMAX TA)/JA, or the number given in the Absolute Maximum Ratings, whichever is lower. The maximum junction temperature, TJMAX, for the LF198/LF198A is 150C; for the LF298, 115C; and for the LF398/LF398A, 100C. Note 3: Although the differential voltage may not exceed the limits given, the common-mode voltage on the logic pins may be equal to the supply voltages without causing damage to the circuit. For proper logic operation, however, one of the logic pins must always be at least 2V below the positive supply and 3V above the negative supply. Note 4: See AN-450 Surface Mounting Methods and their effects on Product Reliability for other methods of soldering surface mount devices. Note 5: These parameters guaranteed over a supply voltage range of 5 to 18V, and an input range of VS + 3.5V VIN +VS 3.5V. Note 6: Hold step is sensitive to stray capacitive coupling between input logic signals and the hold capacitor. 1 pF, for instance, will create an additional 0.5 mV step with a 5V logic swing and a 0.01F hold capacitor. Magnitude of the hold step is inversely proportional to hold capacitor value. Note 7: Leakage current is measured at a junction temperature of 25C. The effects of junction temperature rise due to power dissipation or elevated ambient can be calculated by doubling the 25C value for each 11C increase in chip temperature. Leakage is guaranteed over full input signal range. Note 8: A military RETS electrical test specification is available on request. The LF198 may also be procured to Standard Military Drawing #5962-8760801GA or to MIL-STD-38510 part ID JM38510/12501SGA.
www.national.com
LF198/LF298/LF398, LF198A/LF398A
DS005692-20
DS005692-21 DS005692-22
Gain Error
DS005692-23
DS005692-25 DS005692-24
Output Noise
DS005692-26
DS005692-27
DS005692-28
www.national.com