People generally go with name, may assume lot from the name itself. Same is true for "IC 555 timer". Name of this chip can make any one feel that the chip is embedded with lot of things and must be quite complex. Lets first clear some of those assumptions which are not true..
- There is no in-built clock in side "IC 555 timer"
- There is no crystal present in "IC 555 timer"
- The chip stand alone won't be able to provide any information about your local time
Now, lets see what "IC 555 timer" is.
- "IC 555 timer" is used to make waveform generators.
- With resistor and capacitors, "IC 555" can generate periodic waveforms. Standalone "IC 555" cannot generate any waveform.
- Various type of waveforms can be generated e.g square, rectangle and ramp etc..
- Frequency, dutycycle and amplitude of these waveform can be changed by changing capacitor, resistor and input-voltage values.
- These waveform can be fed to another part of circuit as clock source.
Depending on how throughly one understand its internal logic will enable him to think of other hundred of applications.
Now lets understand its internal logic ..
Above diagram is internal representation of "555 timer" chip. This is a 8 pin IC which is used to make wave generator and oscillator. Lets see what's a function of each pin, and together how these can be used to make a square wave generator.
- [PIN 1] : This is a ground pin, this pin should be tied to ground for proper operation.
- [PIN 2] : As you can see this pin is connected to "-ve" of "voltage comparator" Q2, and Q2's other pin is connected to a constant voltage 1/3 Vcc (since three resistors are of equal value 5K ohms). Till pin 2 is below 1/3Vcc, output of Q2 will remain high enabling "set" of flipflop. This will result into high voltage value at the output (pin 3).
- [PIN 3] : This is output pin.
- [PIN 4] : This is active low reset pin. Till this pin is tied to ground, "SR flipflop" L1 will be under reset and will ignore all inputs.
- [PIN 5] : This control input is bypassed to ground, and not used in elementary circuits.
- [PIN 6] : This pin is connected to "+ve" of "voltage comparator" Q1, and Q1's other pin is connected to constant voltage 2/3Vcc. As the voltage at this pin 6 goes above 2/3 Vcc, output of this comparator goes high and triggers "reset" to "SR flipflop" L1. Due to this output Q goes low.
- [PIN 7] : This pin is discharge pin, this is basically used to provide a discharge path This will get more clear as we see some examples.
- [PIN 8] : This is power supply pin connected to Vcc
The above figure shows a simple implementation of a oscillator circuit. In this oscillator circuit set of sequences keep repeating which generates oscillator wave at the output. Lets closely see these sequences.
- Current from Vcc flows through the resistors Ra and Rb, charging capacitor Cr (charging path).
- This current will charge capacitor in a constant rate. charging-rate depending upon the resistor and capacitor values.
- Initially, since the charge accumulation in the capacitor(Cr) is less, voltage across capacitor(Cr) will be low. This low voltage will enable Q2, Q2 will set "SR Latch", and output will go high.
- As soon the voltage across capacitor(Cr) goes above 2/3 Vcc, threshold pin will activate Q1. Q1 will reset "SR latch" and the output will go low.
- With the reset of "SR Latch", transistor(T1) will provide a discharge path for capacitor(Cr) to get discharged.
- Discharging path again has resistor in its path. Hence, depending on the resistor value discharging of capacitor(Cr) will take some time
- This discharging will result into continuous voltage drop across capacitor(Cr)
- As the voltage drops below 1/3 Vcc, trigger will enable "voltage comparator" Q2 and will again set the "SR latch" L1
- "Set"ting of "SR latch" will block the discharge path and the capacitor(Cr) will be charging again.
These sequences will keep happening in a continuous fashion, and the output keep oscillator from low to high and vice-versa. This continuous voltage change at the output is square wave.
Following formulas can be used to derive frequency, time period. negative time and possitive time.
|Frequency (in Hertz)||1.44 / ((Ra+Rb+Rb) * Cr)|
|Time Period (in seconds)||((Ra+Rb+Rb) * Cr) / 1.44|
|Negative Time Interval (in seconds)||0.693 * Rb * Cr|
|Possitive Time Interval (in seconds)||0.693 * (Ra+Rb) * Cr|
The 555 Frequency Calculator in utilities section can be used to calculate frequency, duty cycle, time period and other output values. 555 Frequency Calculator also plots nice output waveform which helps in analyzing the output for different values of Ra, Rb and Cr.