Adjust 555-Based Generator's Duty Cycle Without Affecting Frequency

Sept. 13, 2007
A free-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 r

A free-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. 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:

where p = R2/R1 and q = R3/R1. For a 50% duty cycle, t1 = t2, so:

And frequency is simply:

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 shows the nominal values of R1n, R2n, and R3n determined with this procedure for five values of p, with a frequency of 20 kHz and C of 1 nF.

Since 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. Note 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 to be able to change by ±5%. All resistors are of 1% tolerance. 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, where 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.

Sponsored Recommendations

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!