Chapter 4 Timer Part 1

Embed Size (px)

Citation preview

  • 8/3/2019 Chapter 4 Timer Part 1

    1/15

    4.0 TIMERS (PART 1)

    INTRODUCTION

    Figure 4.1:of IC Timer 555 and IC Timer 555 configuration

    The 8-pin 555 timer must be one of the most useful ICs ever made and it is usedin many projects. With just a few external components it can be used to buildmany circuits.

    A popular version is the NE555 and this is suitable in most cases where a '555timer' is specified. The 555 housed in a 8-pin package.

    Schematic Diagram of the 555 Timer

    Figure 4.2: Internal Circuit Timer 555

    1

  • 8/3/2019 Chapter 4 Timer Part 1

    2/15

    Figure 4.2 show the internal circuit of timer 555.The 555 consists of two voltagecomparators (C1 and C2), an R-S flip-flop FF, a discharge transistor Q1, aresistive voltage divider (R3, R4, R5), and an output buffer.

    The (-) input of the voltage comparator C1 is internally connected to the resistivevoltage divider. The voltage at the (-) input is equal to VH = 2/3VCC, which is

    called the threshold level.

    The (+) input of the comparator C1 is connected to the external THRESHOLD pin(pin 6). The (+) input of the voltage comparator C2 is connected to VL = 1/3VCC,which is called the trigger level, while the (-) input is the external TRIGGERpin(pin 2). The (-) input of the voltage comparator C1 is also available as theCONTROL pin (pin 5), which can be used for external adjustment of thethreshold and trigger levels.

    The comparator C1 and C2 outputs are the reset R and the set S inputs,respectively, for the flip-flop. When the TRIGGERinput falls bellow the trigger

    level VL, the output of the voltage comparator C2 goes high and sets the flip-flop.If the TRIGGERinput is above the trigger level, and the THRESHOLD input isabove the threshold level, the output of the voltage comparator C1 is high andthe flip-flop is reset.

    The flip-flop output Q drives the discharge transistor Q1, and an inverting outputbuffer:-when the flip-flop output Q is high, Q1 is on and the voltage at the OUTPUTpin(pin 3) is low (close to zero);-when the flip-flop output Q is low, Q1 is off and the OUTPUTis high (close toVCC).

    The output driver is capable of sinking or sourcing current up to about 200mA.The collector of the discharge transistor Q1 is available at the DISCHARGEpin(pin 7).

    The active-low RESETinput (pin 4) to the flip-flop can be used to disable thetimer operation and ensure that the OUTPUTstays at zero, regardless of thecomparator outputs.

    The dc supply voltage can be between VCC = 5V and VCC = 15V. It should beconnected between the VCC(pin 8) and the GROUND (pin 1). With a 5V supply,

    the output, and the RESETinput levels are compatible with standard TTL orCMOS digital logic circuits.

    2

  • 8/3/2019 Chapter 4 Timer Part 1

    3/15

    a. Timer 555 Pin configuration

    Figure 4.3: Timer 555 Pin Configuration

    b. Timer 555 Pin assignments

    Ground: Pin 1- Pin ground where all the measured voltage must be referred tothis pin.

    Trigger input: Pin 2-when < 1/3 Vs ('active low') this makes the output high (+Vs).It monitors the discharging of the timing capacitor in an astable circuit. It has ahigh input impedance > 2M .

    Output pin: Pin 3- Output pin, the output can be connected to the two output ison the pin 3 and pin 1 or pin 3 and pin 8

    Threshold input: Pin 6-when > 2/3 Vs ('active high') this makes the output low(0V)*. It monitors the charging of the timing capacitor in astable and monostablecircuits. It has a high input impedance > 10M .* providing the trigger input is > 1/3 Vs, otherwise the trigger input will override thethreshold input and hold the output high (+Vs).

    Reset input: Pin 4-when less than about 0.7V ('active low') this makes the outputlow (0V), overriding other inputs. When not required it should be connected to+Vs. It has an input impedance of about 10k .

    Control input: Pin 5-this can be used to adjust the threshold voltage which is setinternally to be 2/3 Vs. Usually this function is not required and the control input isconnected to 0V with a 0.01F capacitor to eliminate electrical noise. It can beleft unconnected if noise is not a problem.

    Discharge pin: Pin 7-is not an input, but it is listed here for convenience. It isconnected to 0V when the timer output is low and is used to discharge the timingcapacitor in astable and monostable circuits.

    VCC pin: Pin 8- Pin supply + Vcc (+5 v to 18 v)

    3

  • 8/3/2019 Chapter 4 Timer Part 1

    4/15

    4.1.2 State the application of timers in electronic equipment.

    It is a timer IC and can be used for triggering applications. It can also be used asa square wave generator. Others applications as

    Pulse generation Sequential timing

    Time delay generation

    Pulse width modulation

    Pulse position modulation

    Linear ramp generator

    However, the 555 timer application can be broadly classified into two types;Monostable Multivibrator and Astable Multivibrator.

    Multivibratoris an electronic circuit used to implement a variety of simple two-state systems such as oscillators, timers and flip-flops. It is characterized by twoamplifying devices (transistors, electron tubes or other devices) cross-coupled byresistors or capacitors. The name "multivibrator" was initially applied to the free-running oscillator version of the circuit because its output waveform was rich inharmonics. Astable and Monostable is the best examples types of multivibratorcircuits:

    Astable, in which the circuit is not stable in either state it continuallyswitches from one state to the other. It does not require an input such as aclock pulse. This circuit is also known as a free running.

    Monostable, in which one of the states is stable, but the other state isunstable (transient). A trigger causes the circuit to enter the unstable state.After entering the unstable state, the circuit will return to the stable state aftera set time. Such a circuit is useful for creating a timing period of fixed durationin response to some external event. This circuit is also known as a one shot.

    A. MONOSTABLE MODE

    Multivibator Monostable is also known as shoot multivibrator. It is a pulsegenerator circuit in which the period is calculated from the RC network connectedto the outside of the timer. Multivibrator Monostable is stable at the output at logiclow (logic 0). When the trigger pulse applied to pin no 2 (Usually negative triggerpulse) output of the timer will change to the HIGH (+ Vcc) for a while andchanged to the LOW state of the stable. This situation will remain LOW until thetrigger pulse is given again.

    4

    http://en.wikipedia.org/wiki/Electronic_circuithttp://en.wikipedia.org/wiki/Oscillatorshttp://en.wikipedia.org/wiki/Timerhttp://en.wikipedia.org/wiki/Flip-flop_(electronics)http://en.wikipedia.org/wiki/Electronic_circuithttp://en.wikipedia.org/wiki/Oscillatorshttp://en.wikipedia.org/wiki/Timerhttp://en.wikipedia.org/wiki/Flip-flop_(electronics)
  • 8/3/2019 Chapter 4 Timer Part 1

    5/15

    Monostable operation

    Figure 4.4: Monostable Mode Connection

    Make the assumption of the output is 1.0 W at the start. The circuit is in stablecondition at present Q1 transistor On. Capacitor C will bypassed ground. Whena negative pulse applied to pin no 2, transistor Q1 will be off (Q1 will open circuit)will start charging the capacitor C to + Vcc through the resistor values of R, atthis time the timer output is HIGH. When the voltage on the capacitor C reaches

    5

  • 8/3/2019 Chapter 4 Timer Part 1

    6/15

    the value 2 / 3 Vcc, the output is set to the Low state by the flip flop. At the sametime, the output of the flip-flop will cause Q1 to be on. Capacitor C will dischargethrough the transistor Q1 until 1/3 Vcc. Monostabil output will remain in the Lowuntil the trigger pulse applied to pin 2. This cycle will be repeated. This situationcan be seen in the Monostable waveform.

    Figure 4.5: Monostable Mode Output wave

    The timing period is triggered (started) when the triggerinput (555 pin 2) is lessthan 1/3 Vs, this makes the output high (+Vs) and the capacitor C1 starts to

    charge through resistor R1. Once the time period has started further triggerpulses are ignored.

    The threshold input (555 pin 6) monitors the voltage across C1 and when thisreaches 2/3 Vs the time period is over and the output becomes low. At the sametime discharge (555 pin 7) is connected to 0V, discharging the capacitor readyfor the next trigger.

    The reset input (555 pin 4) overrides all other inputs and the timing may becancelled at any time by connecting reset to 0V, this instantly makes the outputlow and discharges the capacitor. If the reset function is not required the reset

    pin should be connected to +Vs.

    Figure 4.5 Show the output waveform for the monostable mode. The figureshows the wave triggered and output width for the monostable mode.

    Once triggered, the circuits output will remain in the high state (depend on thevalue of width) until the set time, telapses. The output will not change its state

    6

  • 8/3/2019 Chapter 4 Timer Part 1

    7/15

    even if an input trigger is applied again during this time interval t. The circuit canbe reset during the timing cycle by applying negative pulse to the reset terminal.The output will remain in the low state until a trigger is again applied.

    A monostable circuit produces a single output pulse when triggered. It is called amonostable because it is stable in just one state: 'output low'. The 'output high'

    state is temporary. The duration of the pulse is called the time period(T) /pulsewidth(w) and this is determined by resistor R and capacitor C:

    The time during which the output remains high is given by

    time period (T) / width(w) = time period in seconds (s)R = resistance in ohms ( )

    C = capacitance in farads (F)

    The maximum reliable time period is about 10 minutes.

    Choose C1 first (there are relatively few values available). Choose R1 to give the time period you need. R1 should be in the range

    1k to 1M , so use a fixed resistor of at least 1k in series if R1 isvariable.

    Beware that electrolytic capacitor values are not accurate, errors of atleast 20% are common.

    Example 4.1

    From the monostable mode connection calculate the value of pulse width if theRC network is 68k and 0.1F.

    Pulse width (w) = 1.1 RC

    = 1.1 (68k)(0.1F)

    = 7.48 ms

    7

    W (pulse width) = 1.1 RC seconds

    W

    7.48ms

  • 8/3/2019 Chapter 4 Timer Part 1

    8/15

    B. ASTABLE MODE

    Astable Multivibrator known as Free Running Multivibrator. This type does nothave a stable state. The situation is changing. Astable does not require thetrigger pulse from the outside to change the output. Time for the output is at

    HIGH or LOW state can be calculated based on the values of resistors andcapacitors connected to the external timer.

    Operating Astable Multivibrator

    Figure 4.6: Astable Mode Connection

    8

  • 8/3/2019 Chapter 4 Timer Part 1

    9/15

    Assume that the output is at HIGH state at first. At this time Q1adalah transistorOFF state. Capacitor C will start charging towards the + ve via resistors RA andRB. When voltage capacitor C reaches the value 2 / 3 VCC, COMPARATOR 1(C1) will triggered Flip-Flop and the output will change from HIGH to LOW state.At this given the level transistor Q1 will be ON. Capacitor C will remove the

    charge through the resistor RB and the transistor Q1. When the voltage on thecapacitor C reaches the value 1 / 3 VCC COMPARATOR 2 (C2) products Flip-Flop will trigger the timer output to be HIGH. The count will be repeated. This canbe seen on the output figures shown below. From product design to charge thecapacitor C is between 2 / 3 VCC and 1 / 3 VCC current is equal to the output ofthe timer is at the High.

    Figure 4.7: Astable Mode Output wave

    The time taken by the capacitor c discharge from the 2/3 VCC and 1/3 VCC isequal to the time the timer is at LOW state.

    Time High TH can be calculated from the formula TH = 0.693 (RA + RB) C,where RA and RB is the charging capacitor network.

    Time Low TL can be calculated from the formula TL = 0.693 (RB) C, where theresistor RB is a series capacitor C to remove the charge.

    From the output waveform, we can calculate the period, frequency and dutycycles for Astable mode timer.

    9

  • 8/3/2019 Chapter 4 Timer Part 1

    10/15

    Where

    Period (T) =TH + TL Time High, TH = 0.693 (RA + RB) CTime Low, TL = 0.693 (RB) C

    1 1.44

    Frequency = orTH + TL (RA+2RB)C

    Duty cycle for Astable Multivibrator is ratio time high TH with T (period) andnormally calculate in percent.

    TH%Duty Cycle = X 100%

    T

    or

    = RA + RBX 100%

    RA + 2RB

    Example 4.2

    Timer 555 connect with Astable Mode using the value given below. Calculate;

    i. Time high, THii. Time low, TLiii. Frequency, Fiv. Duty Cycle, D%

    Given Ra=6.8K, Rb=3.3K C1=C2=0.1uF

    Answer

    i) Time high

    TH = 0.693 (Ra+Rb)C= 0.693 (6.8K + 3.3K) 0.1 uF= 0.70 m second

    10

  • 8/3/2019 Chapter 4 Timer Part 1

    11/15

    ii) Time Low

    TL = 0.693 RbC= 0.693 (3.3K) 0.1uF= 0.23 m second

    iii) Frequency = 1.44 / [6.8K + 2(3.3K)](0.1 uf)]= 1075 Hz.

    iv) Duty Cycle, D=( TH / T) x 100%=( 0.69ms / 0.93ms) x 100%= 74.2 %

    TIME DELAY

    Time Delay Circuit

    In the design of analog circuits, there are times when you would need to delay a

    pulse that came into a circuit before being used for the next process. This time delaycircuit uses a 555 timer to delay a pulse that comes in to a maximum time of 75

    seconds. The timing of the delay can also be changed by changing the resistor valueof VR1 and the capacitor value of E based on the time delay formula of t=0.69RC.

    In order for the output to go high, the reset pin of 555 timer (pin 4) must be highand the TRIGGER pin (pin 2) voltage level must be below a third of the level of the

    power supply to the IC. When there is no pulse being applied to the input, transistorQ1 will turn ON and capacitor E is charged.

    11

  • 8/3/2019 Chapter 4 Timer Part 1

    12/15

    Once a pulse is applied to the input, transistor Q1 will turn OFF and pin 4 reset pin is

    held to high. This caused the capacitor E1 to be discharged through VR1 resistor. Thetime delay will depend on the discharged of capacitor E to a third of the supply

    before the output of 555 goes high. Experiment with different values of VR1 and E toget different time delay.

    If the maximum value of potentiometer is set to 5M ohm, the time delay of the pulsewill be 75 seconds.

    Smaller Capacitor for a Long Delay Time

    Resistors and capacitors are connected in series to form RC time delay circuits. The timedelay is determined by the formula

    T = R x C, where T is time in seconds,

    R is the resistance in ohms

    C is the capacitance in farads.

    The longer the time delay, the larger the resistor and capacitor values required. However, forlong time delays -- e.g., tens of seconds, it's not always advisable to use large capacitor

    values. They can be physically large, expensive and have large tolerances. An alternative isto use a smaller value capacitor and a much larger resistor value to produce the requiredtime delay.

    Example 4.3 :

    To produce time delay 10s, used R=100M and C= 0.1F

    T = R x C

    =100M x 0.1F

    12

  • 8/3/2019 Chapter 4 Timer Part 1

    13/15

    = 10s

    Determine whether you need to use a smaller value capacitor.

    Example 4.4:Calculate the new resistor value. If the value time delay is 10 second and thecapacitor 10 F.

    T = R x C

    R = T/C

    = 10s/10 F

    = 1 M.

    We can manually calculate the values ofR and C for the individual components

    required as we did in the example above. However, the choice of components

    needed to obtain the desired time delay requires us to calculate with either

    kilohms, megaohms, microfarads or picafarads and it is very easy to end up with

    a time delay of frequency that is out by a factor of ten or even a hundred. We can

    make our life a little easier by using nomographs to show the monostable

    multivibrators expected frequency output for different combinations or values of

    both the R and C. For example,

    Monostable Nomograph

    13

  • 8/3/2019 Chapter 4 Timer Part 1

    14/15

    By selecting suitable values ofC and R in the ranges of 0.001uF to 100uF and

    1k to 10M's respectively, we can read the expected output frequency directly

    from the nomograph graph thereby eliminating any error in the calculations. In

    practice the value of the timing resistor for a monostable 555 timershould not be

    less than 1k or greater than 20M

    All the note cover the sub topic below.

    4.1.3 Construct the schematic diagram of 555 timer for thefollowing modes:

    a. Monostable modeb. Astable modec. Bistable moded. Buffer schmitt trigger

    4.1.4 Explain the operating principles of each mode.4.1.5 Explain how 555 timer is used to generate delay time

    accurately for each mode.4.1.6 State the formulas for the generated delay time in 4.1.4.

    14

  • 8/3/2019 Chapter 4 Timer Part 1

    15/15

    OKLThe input and output pin functions are described briefly below and there arefuller explanations covering the various circuits:

    Astable - producing a square wave Monostable - producing a single pulse when triggered Bistable - a simple memory which can be set and reset Buffer- an inverting buffer (Schmitt trigger)

    15

    http://www.kpsec.freeuk.com/555timer.htm#astable%23astablehttp://www.kpsec.freeuk.com/555timer.htm#monostable%23monostablehttp://www.kpsec.freeuk.com/555timer.htm#bistable%23bistablehttp://www.kpsec.freeuk.com/555timer.htm#buffer%23bufferhttp://www.kpsec.freeuk.com/555timer.htm#astable%23astablehttp://www.kpsec.freeuk.com/555timer.htm#monostable%23monostablehttp://www.kpsec.freeuk.com/555timer.htm#bistable%23bistablehttp://www.kpsec.freeuk.com/555timer.htm#buffer%23buffer