Skip to content

Activity 1.2.4 — Clock Signals & the 555 Timer


Learning Objectives

By the end of this lesson, students will be able to:

  1. Describe the characteristics of a clock signal.
  2. Identify the pins of a 555 timer IC and their functions.
  3. Calculate frequency and duty cycle for a 555 timer in astable mode.
  4. Design a 555 timer circuit for a specific frequency requirement.

Vocabulary

Vocabulary (click to expand)
Term Definition
Clock Signal A periodic square wave that synchronizes the operation of digital circuits.
Oscillator A circuit that generates a periodic, oscillating signal.
Astable Mode A configuration where the 555 timer continuously oscillates without a stable state.
Frequency (f) The number of complete cycles per second, measured in Hertz (Hz).
Period (T) The time for one complete cycle, measured in seconds. T = 1/f
Duty Cycle (D) The percentage of one period during which the signal is HIGH.
555 Timer A popular integrated circuit (IC) used for timing applications.
Pinout The arrangement of pins on an integrated circuit showing each pin's function.

Part 1: Understanding Clock Signals

What Is a Clock Signal?

A clock signal is a periodic waveform that acts as a "heartbeat" for digital circuits. It provides a timing reference that synchronizes when operations occur.

Characteristics of Clock Signals

Clock signals are typically: - Square waves (or close to square waves) - Periodic (they repeat at regular intervals) - Two-state (HIGH and LOW only) - Used for synchronization in microprocessors, counters, and sequential logic

Clock Signal Diagram

Voltage
  ^
  │ ┌──┐        ┌──┐        ┌──┐
  │ │  │        │  │        │  │
  │ │  │        │  │        │  │
  │ │  │        │  │        │  │
  │ │  │        │  │ │      │  │
  │ │  ├────────┤  ├─┤      ├──┤
  │ │  │        │  │ │      │  │  ────> Clock cycle
5V │ └──┘        └──┴─┘      └──┘
  │    HIGH time
  │ ←───────────→
  │              Total Period (T)
  │ ←───────────────────────────────→
  │──────────────────────────────────────────> Time

Real-World Applications

Application Typical Frequency
Digital watch 32,768 Hz (2¹⁵ Hz)
Computer CPU (older) 100 MHz - 3 GHz
Arduino clock 16 MHz
Simple LED flasher 1 Hz
Stepper motor control 100 Hz - 10 kHz

Part 2: The 555 Timer Integrated Circuit

Overview

The 555 timer is one of the most popular and versatile integrated circuits ever made. Invented in 1971, it can be configured to:

  • Generate precise time delays
  • Create oscillations (astable mode)
  • Produce single pulses (monostable mode)
  • Modulate signals

555 Timer Pinout

              ┌─────────────┐
         GND ─┤ 1        8  ├── VCC (+5V to +15V)
              │             │
    TRIG ─────┤ 2        7  ├── DIS
              │             │
       OUT ───┤ 3        6  ├── THR
              │             │
     RESET ───┤ 4        5  ├── CTRL
              │             │
              └─────────────┘

Pin Functions

Pin Name Number Function
GND Ground 1 Circuit ground (0V reference)
TRIG Trigger 2 Input that starts timing cycle; triggers when voltage falls below ⅓ VCC
OUT Output 3 Output pin that produces the square wave
RESET Reset 4 Active-LOW reset; stops oscillation when LOW
CTRL Control 5 Control voltage input; allows threshold adjustment (typically connected to ground through a capacitor)
THR Threshold 6 Threshold input; ends timing when voltage exceeds ⅔ VCC
DIS Discharge 7 Open-collector output; used to discharge timing capacitor
VCC Supply Voltage 8 Positive power supply (+5V to +15V)

Internal Block Diagram (Simplified)

         VCC
     ┌────┴────┐
     │         │
     │   ┌───┐ │
     │   │   │ │
     │   │   │ │ Resistor
     │   │   │ │ Divider
     │   │   │ │
     │   └───┘ │
     │     │   │
     │     │   │
     └─────┼───┘
     ┌─────┼─────┐
     │     │     │
     │  ┌──┴──┐  │
     │  │     │  │
     │  │  R   │  │ Trigger
     └──┤     ├──┘ Comparator
        │  S   │        │
        │     │         │
        └─────┘         │
                  ┌─────┴─────┐
                  │           │
                  │    Flip   │
                  │    Flop   │
                  │           │
                  └─────┬─────┘
                   ┌────┴────┐
                   │  Buffer │
                   │  & OUT  │
                   └────┬────┘
                       OUT

Part 3: 555 Timer in Astable Mode

What Is Astable Mode?

In astable mode, the 555 timer has no stable state—it continuously oscillates between HIGH and LOW, making it a free-running oscillator. This is perfect for generating clock signals.

Circuit Configuration

         VCC (+5V to +15V)
    ┌─────┴─────┐
    │           │
    │      ┌────┴────┐
    │      │         │
    │      │    R1   │
    │      │         │
    │      └────┬────┘
    │           │
    │      ┌────┴────┐
    │      │         │
    │      │    R2   │
    │      │         │
    │      └────┬────┘
    │           │
    │    ┌──────┼──────┐
    │    │      │      │
    │    │   ┌──┴──┐   │
    │    │   │     │   │
    │    └───┤ DIS THR ├───┘
    │        │     │   │
    │        │  C  │   │
    │        │     │   │
    │        └──┬──┘   │
    │           │      │
    │        ┌───┴───┐  │
    │        │       │  │
    │        │  GND  │  │
    │        │       │  │
    │        └───────┘  │
    │                   │
    │              TRIG ─┼─
    │                   │
    └───────────────────┘

Timing Formulas

Frequency Formula:

f = 1.44 / ((R1 + 2 × R2) × C)

Where:
- f = frequency in Hertz (Hz)
- R1, R2 = resistance in Ohms (Ω)
- C = capacitance in Farads (F)

Period Formula:

T = (R1 + 2 × R2) × C / 0.693
or
T = 1/f

Duty Cycle Formula:

D = (R1 + R2) / (R1 + 2 × R2) × 100%

Note: Duty cycle is always > 50% in basic astable mode

Understanding the Duty Cycle

With R1 and R2 connected as shown:
- HIGH time is determined by R1 + R2 charging through both resistors
- LOW time is determined by R2 discharging through only R2

Charging path: VCC → R1 → R2 → C
Discharging path: C → R2 → DIS

This is why duty cycle is always > 50%: charging takes longer than discharging

Key insight: To achieve a 50% duty cycle, you can add a diode across R2 or use a different circuit configuration. In the basic 555 astable circuit, duty cycle is always greater than 50%.


Part 4: Worked Example

Problem: Calculate Frequency and Duty Cycle

Given: R1 = 1kΩ, R2 = 10kΩ, C = 10µF Find: Frequency and duty cycle

Solution

Step 1: Convert values to base units
R1 = 1,000 Ω
R2 = 10,000 Ω
C = 10 × 10⁻⁶ F = 0.00001 F

Step 2: Calculate frequency
f = 1.44 / ((R1 + 2 × R2) × C)
f = 1.44 / ((1000 + 2 × 10000) × 0.00001)
f = 1.44 / ((1000 + 20000) × 0.00001)
f = 1.44 / (21000 × 0.00001)
f = 1.44 / 0.21
f = 6.86 Hz

Step 3: Calculate period
T = 1/f = 1/6.86 = 0.146 seconds = 146 ms

Step 4: Calculate duty cycle
D = (R1 + R2) / (R1 + 2 × R2) × 100%
D = (1000 + 10000) / (1000 + 2 × 10000) × 100%
D = 11000 / 21000 × 100%
D = 0.5238 × 100%
D = 52.4%

Answer: Frequency ≈ 6.9 Hz, Duty cycle ≈ 52%

Visualizing the Output

 5V ─┐  ┌─────────┐  ┌─────────┐  ┌─────────┐
     │  │         │  │         │  │         │
 0V ─┴──┘         └──┘         └──┘         └─
     ↑  HIGH = 52.4%     LOW = 47.6%
       of period

     |<──────── T ≈ 146 ms ────────>|

Part 5: Designing a 555 Timer Circuit

Design Problem

Task: Design a 555 astable circuit that produces a 1 Hz clock signal (1 second period).

Step-by-Step Design

Step 1: Choose a standard capacitor value
For a 1 Hz clock, a common choice is C = 10 µF

Step 2: Rearrange the frequency formula to solve for resistance
f = 1.44 / ((R1 + 2 × R2) × C)

Rearranging:
(R1 + 2 × R2) = 1.44 / (f × C)

Step 3: Calculate required resistance
(R1 + 2 × R2) = 1.44 / (1 Hz × 10 µF)
(R1 + 2 × R2) = 1.44 / (1 × 0.00001)
(R1 + 2 × R2) = 144,000 Ω = 144 kΩ

Step 4: Choose resistor values
If we set R2 = 47 kΩ:
R1 + 2(47,000) = 144,000
R1 + 94,000 = 144,000
R1 = 50,000 Ω = 50 kΩ

Step 5: Verify with standard values
Using R1 = 47 kΩ and R2 = 47 kΩ:
(R1 + 2 × R2) = 47,000 + 94,000 = 141,000 Ω
f = 1.44 / (141,000 × 0.00001)
f = 1.44 / 1.41 = 1.02 Hz (close enough!)

Answer: R1 = 47 kΩ, R2 = 47 kΩ, C = 10 µF

Design Tips

Tip Explanation
Start with C Choose a convenient capacitor value, then calculate resistors
Use standard values Resistors come in standard values (1k, 4.7k, 10k, 47k, 100k, etc.)
R1 should be at least 1kΩ Prevents excessive current
Avoid very high R values High resistance (>1MΩ) can cause timing errors due to leakage
For 50% duty cycle Add a diode across R2 or use a different configuration

Summary

555 Timer Quick Reference

Pin Name Function
1 GND Ground reference
2 TRIG Trigger input (starts timing)
3 OUT Output (square wave)
4 RESET Reset input (stops oscillation)
5 CTRL Control voltage
6 THR Threshold input (ends timing)
7 DIS Discharge pin
8 VCC Power supply (+5V to +15V)

Key Formulas for Astable Mode

Frequency:    f = 1.44 / ((R1 + 2 × R2) × C)

Period:       T = 1/f

Duty Cycle:   D = (R1 + R2) / (R1 + 2 × R2) × 100%

Design Procedure

  1. Choose C based on frequency range needed
  2. Calculate (R1 + 2 × R2) = 1.44 / (f × C)
  3. Select R1 and R2 values that satisfy the sum
  4. Verify with actual components

Key Reminders

  • Clock signals synchronize digital circuits with a periodic square wave.
  • The 555 timer is a versatile IC that can generate clock signals in astable mode.
  • Pin 2 (TRIG) and Pin 6 (THR) are internally connected to comparators.
  • Pin 7 (DIS) is an open-collector output used to discharge the timing capacitor.
  • Frequency is inversely proportional to both resistance and capacitance.
  • The basic 555 astable circuit always produces a duty cycle greater than 50%.
  • For a 1 Hz clock, use R1 ≈ R2 ≈ 47kΩ and C = 10µF.

Practice Problem 1 — Frequency Calculation

Calculate the output frequency if R1 = 2.2kΩ, R2 = 6.8kΩ, and C = 1µF.

Show Solution
Given:
R1 = 2.2 kΩ = 2200 Ω
R2 = 6.8 kΩ = 6800 Ω
C = 1 µF = 0.000001 F

Solution:
f = 1.44 / ((R1 + 2 × R2) × C)
f = 1.44 / ((2200 + 2 × 6800) × 0.000001)
f = 1.44 / ((2200 + 13600) × 0.000001)
f = 1.44 / (15800 × 0.000001)
f = 1.44 / 0.0158
f = 91.1 Hz

Answer: The output frequency is approximately 91 Hz.

Practice Problem 2 — Component Selection

Design a 555 astable circuit for a frequency of 440 Hz (concert pitch A). Show your resistor and capacitor choices.

Show Solution
Step 1: Choose a capacitor
For audio frequencies, a common choice is C = 100 nF (0.1 µF)

Step 2: Calculate required resistance
(R1 + 2 × R2) = 1.44 / (f × C)
(R1 + 2 × R2) = 1.44 / (440 × 0.0000001)
(R1 + 2 × R2) = 1.44 / 0.000044
(R1 + 2 × R2) = 32,727 Ω

Step 3: Choose resistor values
If R1 = 10 kΩ:
10,000 + 2 × R2 = 32,727
2 × R2 = 22,727
R2 = 11,363 Ω → use 10 kΩ or 12 kΩ standard value

Using R1 = 10 kΩ and R2 = 10 kΩ:
f = 1.44 / ((10000 + 2 × 10000) × 0.0000001)
f = 1.44 / (30000 × 0.0000001)
f = 1.44 / 0.003
f = 480 Hz (approximately)

Answer: Try R1 = 10 kΩ, R2 = 10 kΩ, C = 100 nF

Practice Problem 3 — Duty Cycle

For R1 = 4.7kΩ and R2 = 4.7kΩ, calculate the duty cycle. Explain why it is not exactly 50%.

Show Solution
Calculation:
D = (R1 + R2) / (R1 + 2 × R2) × 100%
D = (4700 + 4700) / (4700 + 2 × 4700) × 100%
D = 9400 / (4700 + 9400) × 100%
D = 9400 / 14100 × 100%
D = 0.6667 × 100%
D = 66.7%

Explanation:
The duty cycle is not 50% because:

HIGH time is determined by charging through BOTH R1 and R2
LOW time is determined by discharging through ONLY R2

Since R1 > 0, charging takes longer than discharging,
so the HIGH time is longer than the LOW time.

For exactly 50%, you would need charging and discharging
to take equal time, which requires R1 = 0 (not recommended)
or adding a diode to bypass R1 during charging.

Custom activity — adapted from PLTW Digital Electronics