Email this Article
Printer-Friendly
Reader Comments
[News Feature]
ADJUST 555-BASED GENERATOR’S DUTY CYCLE WITHOUT AFFECTING FREQUENCY
Staff
ED Online ID #17864
October 11, 2007
by Jordan Dimitrov, Tradeport Electronics
Afree-running generator
built on the standard
configuration of the 555
timer can’t provide a
duty cycle of exactly 50%.
That’s a well-known fact.
Fortunately, there are several
ways to get around this problem.
The best is to place an
extra resistor, R3, between the
two regular resistors, R1 and
R2, and the chip’s discharge
pin (Fig. 1).
The problem is that variations
in R3 strongly affect output frequency
(http://home.cogeco.ca/~rpaisley4/LM555.html#14). This idea
shows how to achieve an
adjustable 50% duty cycle with
minimum frequency change.
Even with the extra resistor,
the timer operates in its usual
way. When switch S inside the
chip is open, capacitor C is
charged through the R1-R2 network
(Fig. 2), and the capacitor’s
voltage rises. When it
reaches 2/3 of the power supply,
V, the switch closes and
capacitor starts discharging.
When the voltage drops to the
V/3, the switch opens again
and the cycle repeats.
The time intervals t1 and t2 are
as follows:
t1 = R1C (p+1)*ln2() (1)
| t2 = R1C |
( |
p+ |
q |
) |
*In |
q-2 |
q+1 |
2q-1 |
where p = R2/R1 and q =
R3/R1. For a 50% duty cycle, t1
= t2, therefore:
(p + 1)*In(2)= (3)
| ( |
p + |
q |
) |
*In |
q - 2 |
q + 1 |
2q - 1 |
And frequency is simply:
| f = |
1 |
= |
0.7213 |
2t1 |
R1C(p + 1) |
(4)
Equation 3 is a relation
between p and q. If p is set,
then q can be calculated. Note
that the term under the log operator
at the right side must
always be positive. This is fulfilled
when both the nominator
and denominator have identical
signs, and it leads to two intervals
for q, one from 0 to 0.5
and the other from 2 to infinity.
This said, a simple iterative procedure
can be used to calculate
q. When that’s done, R1, R2,
and R3 can be defined.
The procedure is as follows:
1. Set the desired frequency and
select a value for C.
2. Select the value of p and calculate
q from Equation 3.
3. Calculate R1 from Equation 4.
4. Calculate R2 = pR1.
5. Calculate R3 = qR1.
Table 1 illustrates the nominal
values of R1n, R2n, and R3n
determined with this procedure
for five values of p, each possessing
a frequency of 20 kHz
and C of 1 nF.
Because the resistors must be
rounded to standard values, the
duty cycle will not be exactly
50%. The question is how to
adjust it with minimum change
of frequency. The answer is
clear from Table 2, where percentage
deviations of the duty
cycle, DC, and frequency, F,
are calculated when one of the
three resistors is increased by
5%, while the other two are
kept constant. Be aware that
the best results are obtained
when R1 is used to adjust the
duty cycle.
A circuit designed according
to the described procedure
(with p = 1) was tested.
Resistor values were: R1 =
18.2 Ωk, R2 = 18.2 kΩ, and R3 = 4.12 kΩ. Then R1 was
modified so that it could
change by ±5%. All resistors
have a tolerance of 1%. Table
3 shows that the results, particularly
the duty cycle, were very
close to the predictions in Table
2. They’re also much better
than what is reported in the
above reference, in which R3 is
the variable resistor.
The differences between theory
and experiment are caused
by resistor tolerances.
Obviously, frequency suffers
more from them. If tighter frequency
control is required, a
larger value of p can be selected
and/or more precise resistors
can be used. The first
approach affects duty cycle
adjustment span; the second
affects the price. If needed, frequency
can be adjusted independently
of the duty cycle by
varying capacitor C.
|