ECEN4618: Experiment #1 Timing Circuits With The 555 Timer
ECEN4618: Experiment #1 Timing Circuits With The 555 Timer
c 1998 Dragan Maksimovi c Department of Electrical and Computer Engineering University of Colorado, Boulder
The purpose of this lab assignment is to examine operating principles and several practical applications of the 555 integrated-circuit timer. The 555 is capable of producing accurate time delays or oscillations. These functions are needed in many analog, digital or mixed-signal applications. The circuits you design and test in this lab assignment will be applied as building blocks in the lab assignments that follow.
2 Basic Applications
With the addition of an external capacitor and one or two external resistors, the 555 can provide two basic functions: monostable operation, where an output pulse of xed duration is initiated by a short negative pulse on the TRIGGER input, and astable operation, where the timer produces periodic output pulses.
VCC 8 R3 5K THRESHOLD 6 R4 5K
+ + -
RESET 4 C1 R FF S C2 Q 3 OUTPUT
RES Q
CONTROL
TRIGGER DISCHARGE
2 7
R5 5K
555
R8 Q14 100
1 GND
Figure 1: Functional block diagram of the 555 integrated-circuit timer.
4 C1 R FF
+ -
RES Q
VH R4 5K VL R5 5K
S C2
Vo
555
R8
Figure 2: Monostable circuit built around the 555 timer. input would be needed to produce another output pulse of duration Tw . Without the external trigger input, the output always stays low, which is why the circuit is called monostable, or one-shot. The basic design specication for a monostable circuit is the output pulse duration Tw . The pulse duration depends on the selection of the external R and C components. Therefore, we would like to determine how Tw depends on R and C . The solution will be found here in more general terms, so that the results can be applied to other similar problems. Consider the R , C circuit in Fig. 4, where at t = 0, the initial capacitor voltage is vc 0 = Vo . For t 0, the circuit is described by the rst-order differential equation:
where V1 is a dc voltage. If we let the capacitor charge (or discharge) completely (for capacitor voltage is vc 1 = V1 . The solution to Eq. 1 is given by1 :
dvc dt
vc RC
V1 ; v 0 = Vo : RC c
(1)
RC :
Now, if we want to know when the capacitor voltage reaches a certain threshold VTH , we can use the solution given by Eq. 2 as follows: vc t = VTH = V1 + Vo , V1 e,t= ; (3)
1
t Tw
Figure 3: Typical waveforms in the monostable circuit with the 555 timer.
R + V1
+ -
C -
Vc(t) Vc(0)=Vo
et=
Therefore,
t=
V ,V
1 o ln :
VTH , V1
Vo , V1 ; VTH , V1
(4)
(5)
Let us apply the above solution to the problem of nding the output pulse width Tw as a function of the time constant = RC . From Figs. 2 and 3, we have that Vo 0, V1 = VCC , and VTH = VH = 2VCC =3, so that
Tw = ln
ln 3 1:1RC :
(6)
For a specied Tw , Eq. 6 gives only one constraint for R and C . Further constraints, which are less obvious, can nevertheless make a difference between a good and a bad design. Here is a summary of considerations that should be taken into account when selecting the values for R and C : 4
1. When the output is in the low steady-state, the discharge transistor Q14 is on, and we assume that the transistor is saturated so that the voltage at the DISCHARGE and the THRESHOLD pins is VCES 0. The current through the resistor R is then given by:
V , VCES IR = CC R
If
CC VR :
(7)
R is smaller, IR is higher, and the timer takes more power from the dc supply VCC . Also, if R is too small, the discharge transistor Q14 will come out of saturation, and the voltage at the
DISCHARGE/THRESHOLD pins can be signicantly higher than zero. As a result, in addition to the wasteful power loss, we may have a signicant error in the output pulse width Tw . 2. The input currents to the comparators C 1 and C 2 are small, but not equal to zero. From the data sheets, we read that the threshold input current can be as high as 250nA, and that the trigger input current can be as high as 0:9A. Even worse, the threshold/trigger input current is not a very reliable parameter, because it can vary in a wide range from one device to another. For example, as given in the data sheets, the typical value for the threshold current is only 30nA, although it can be as high as 250nA. In addition, the threshold input current (which is the base current of the internal BJT Q1 (see data sheets), certainly has a very strong temperature dependence, which would further invalidate any design based on the precise knowledge of this current. In the analysis for Tw , we assumed that the threshold input current is zero. In a good design, we should attempt to make the contribution of the threshold current negligible. Therefore, R should be selected so that IR is always much greater than the threshold input current, which gives a maximum R that can be used in the circuit. The condition:
IR
results in
250nA
(8)
: (9) 250nA 40M . A practical limit would include a factor of 10, so:
VCC
3. At the end of the output pulse, the discharge transistor Q14 is turned on to discharge the capacitor C toward zero. The discharge is not instantaneous. During the discharge transient, Q14 operates in the IR , which is active region with approximately constant collector current IC . Assuming that IC the case if R was selected properly (see comment 1. above), the discharge takes
tdischarge
C 2VCC IC 3
(10)
If the discharge time is too long, the timer may not be ready in time to respond to another trigger pulse at the TRIGGER input. 4. Parasitic capacitances on the circuit board and on the inputs to the integrated circuit are usually around 5 , 10pF. These values are not known in advance, may vary from one set-up to another, and from one component to another. Therefore, to avoid errors, the capacitance C should be much greater than the parasitic capacitances.
VCC 8 R3 5K 6
+
4 C1 R FF
+ -
RA
RES Q
VH R4 5K VL
S C2
Vo
RB Vc C Cd 0.1uF
2 7
R5 5K
555
R8 Q14 100 1
Figure 5: Astable circuit (pulse generator) built around the 555 timer.
tH
= RA + RB C
ln 2 0:693RA + RB C
(12)
Figure 6: Typical waveforms in the astable circuit with the 555 timer. The period of the waveforms is and the frequency is fp
=
(13)
tH + tL
(14)
Since tH
3 Experiment
The experiment has three parts. Unless otherwise noted, use VCC = 15V supply voltage in all experiments. Before you start constructing any circuit on the protoboard, make sure that the DC supply voltage is properly decoupled with an electrolytic capacitor of at least 10 F. Also, your rst step in putting the circuit together on the protoboard should be to connect the DC supply pins (VCC and ground) and to place a ceramic decoupling capacitor of at least 0 :1F between the supply pins. Errors in connecting the supply voltages can easily lead to permanent damages to the ICs. Also, without proper DC voltage decoupling, many seemingly well designed and correctly connected circuits fail to operate properly.
In the report, show the circuit diagram with labeled component names and values, together with a labeled oscilloscope plot that veries operation of the monostable. Show waveforms of the TRIGGER input, the capacitor voltage, and the OUTPUT. Label the waveforms with signal names, and signicant voltage levels, and time intervals. Measure and record the output pulse duration, and the frequency of the trigger pulses used in the test. Correct the design if the error in the length of the output pulse is more than 2%. Explain what happens if another trigger pulse comes before the end of the output pulse. Show the same scope waveforms as above, and explain the results, if the frequency of the trigger pulses is 50kHz.
4 Prelab Assignment
The prelab assignment is due in the lab on the day when you start working on the experiment. 1. Derive expressions (11) and (12). 2. Suppose a signal generator produces a square-wave signal of 7:5V amplitude, and f = 10kHz frequency, as shown below. Using a resistor, a diode, and a capacitor, and a VCC = 15V DC power supply, design a circuit that would produce output pulses as shown in the gure below. Find the capacitance and the resistance values. This circuit can be used to generate the short trigger pulses required in Section 3.1 of the experiment.
+7.5V from signal generator -7.5V +15V +15+0.7V (approx) t
output
2us (approx) t
0V
3. Design the monostable circuit of Fig. 2 to produce an output pulse of duration Tw for each short trigger pulse, as specied in Section 3.1. Show the circuit diagram with labeled component names and values. Do a PSpice transient simulation to verify the design and attach the simulation results (one page of waveforms). A 555 Spice model is available with the evaluation version of PSpice. This is a paper design for the experimental task described in Section 3.1. 4. Design the astable circuit of Fig. 5 to produce periodic output pulses with frequency fp , and with the width of the LOW output tL = 0:75s, as specied in Section 3.2. Show a complete circuit diagram with labeled component names and values. Do a PSpice transient simulation to verify the design and attach the simulation results (one page of waveforms). This is a paper design for the experimental task described in Section 3.2. 5. Design the touch-tone circuit as specied in Section 3.3. Show a complete circuit diagram with labeled component names and values. Make a copy of your prelab work so that you can use it during the Lab session.