Used Equipment Store

Account Benefits

Get a customised view of the Used Equipment Store

Manage your details to get quick responses by the team

Stay up-to-date on specials, prices and availability

Already have an account? Log In

Create Your Account

Sign up to receive marketing or promotional emails from Keysight

By submitting this form, you are providing Keysight with your personal data. For information on how we use this data, see the Keysight Privacy Statement.

Keysight Oscilloscope Glossary

What Are Square Waves in a Signal?

This article is brought to you by the Keysight Used Equipment Store. The information applies to used and new equipment.

If you know which Keysight model is of interest to you and matches your technical requirements, visit the Used Equipment Store to see if you can save with our offers.
View Our Offers

For more Test and Measurement knowledge and tips, view all technical articles. Visit our resources
Keysight assumes no liability for the completeness, correctness and accuracy of all content on this website and all of its content. Please read here the terms of use of this website.

Your browser limits use of the Used Keysight Equipment website.
Please consider switching to a current version of Chrome, Firefox, Edge or IE11 to use this site.

Imagine you’re debugging a digital circuit, and you notice the signal isn’t behaving as expected. Your oscilloscope shows erratic waveforms, causing your device to malfunction. 

Frustration sets in as you realize the root of the problem might be in the signal itself. This is where understanding square waves comes into play. 

Square waves are fundamental in signal processing and electronics, offering clear, distinct transitions that are essential for digital communication and processing. Let's look into what square waves are and how they play a crucial role in your electronic designs.

Understanding Square Waves

A square wave is a non-sinusoidal waveform that alternates between a high and a low state at a consistent frequency. 
Unlike sine waves, which have a smooth and continuous oscillation, square waves switch abruptly between two levels, creating a characteristic "square" shape when viewed on an oscilloscope.

Characteristics

Square waves are defined by the following key characteristics:

  • Frequency: The number of times the wave repeats per second, measured in Hertz (Hz).
  • Amplitude: The peak value of the wave, representing the maximum and minimum voltage levels.
  • Duty cycle: The ratio of the time the signal is high to the total period of the wave, expressed as a percentage.
Key Takeaway
Square waves are crucial for digital communication and signal processing, providing clear and distinct transitions essential for various applications. Understanding their generation, analysis, and common issues associated with them is vital for maintaining signal integrity and optimizing electronic system performance.

Empower Your Projects With a Used Keysight Oscilloscope

  • Like-new Condition
  • Updated Firmware
  • Full Calibration
  • New Accessories
  • Like-new Warranty
  • Customization possible

Learn more

  • Savings of up to 90%
  • Working Condition
  • Calibrated or Tested
  • 30-Day Right-of-Return
  • No Customization
  • Shipping to limited countries

Learn more

Second-Hand. First-Class.

Great savings that come with a worry-free, first-class experience. That’s what buying used equipment directly from Keysight is all about!

Select up to 3 instruments to compare

Cancel
Select another instrument to compare
Starting at
Select another instrument to compare
Starting at
Select another instrument to compare
Starting at

Enable Notifications

In order to use this feature, you need to enable notifications.

Manage notification preferences

USD



Keysight Used
Configuration:
Customization available
Shipping: Limited countries only
Warranty: 90 days
Accessories Not included
For professional and industrial use only
By submitting this quote request, you are providing Keysight with your personal data. For information on how we use this data, see the Keysight Privacy Statement.

Generation of Square Waves

Generating square waves, repetitive signals needed for digital electronics and signal processing, involves using various types of oscillators. Let's explore some common oscillators used for this purpose.

Oscillators

Oscillators are essential circuits for generating square waves. They provide the consistent, repetitive signals needed for various applications in digital electronics and signal processing. 

Here are some common types of oscillators used to generate square waves.

Astable Multivibrators
Astable multivibrators are circuits that continuously oscillate between high and low states without any external triggering. 

They are simple to design and are often used in basic timing applications, flashing lights, and clock pulses for digital circuits. 

The key components of an astable multivibrator include capacitors and resistors, which determine the frequency and duty cycle of the square wave.

Crystal Oscillators
Crystal oscillators offer highly stable and precise frequencies by using the mechanical resonance of a vibrating crystal, usually quartz. 

These oscillators are crucial in applications requiring accurate timekeeping and frequency control, such as in watches, microprocessors, and communication devices. 

The crystal’s properties ensure that the generated square wave has minimal drift and high reliability over time.

555 Timer IC
The 555 Timer IC is one of the most versatile and widely used components for generating square waves. It can be configured in several modes, including astable mode, to produce continuous square waves.

Applications of Square Waves

Square waves are an integral part of many electronic and digital systems. Their distinctive characteristics make them versatile and indispensable in several fields.

Oscilloscopes

Solve Signal Issues Before They Escalate

See MXR608A Special Offers

Digital Electronics

In digital electronics, square waves represent binary data (0s and 1s). This binary representation is fundamental to the operation of digital systems, forming the basis of clock signals that synchronize operations within microprocessors, memory units, and other digital circuits. 

The precise timing provided by square waves ensures that data is processed correctly, facilitating reliable communication between different parts of a digital system.

Signal Processing

Square waves play a crucial role in signal processing, particularly in pulse-width modulation (PWM). PWM involves adjusting the duty cycle of a square wave to control the power delivered to electronic devices.

This technique is widely used to regulate the speed of motors, the brightness of LEDs, and other parameters. 

By varying the width of the pulses in the square wave, PWM allows for precise control of these devices, making it a popular choice in applications ranging from simple dimmers to sophisticated motor controllers.

Communication Systems

In communication systems, square waves are used as carrier signals to transmit digital data over various mediums, including wires and wireless channels. 

The sharp transitions of square waves make them ideal for encoding and decoding binary information. This ensures that the transmitted data maintains its integrity, even over long distances or in noisy environments. 
Square waves are employed in various modulation schemes, such as frequency-shift keying (FSK) and phase-shift keying (PSK), to achieve reliable and efficient data transmission.

Square waves are also essential in the development and testing of communication equipment. Engineers use square wave generators to simulate digital signals, allowing them to test and calibrate receivers, transmitters, and other communication devices. 

This ensures the equipment performs optimally under different conditions, contributing to the overall reliability and performance of communication networks.

Analyzing Square Waves

It's important to understand the characteristics and properties of square waves to meet application requirements and optimize system performance. 

The two primary methods for analyzing square waves are oscilloscope measurements and Fourier analysis.

Oscilloscope Measurements

Using an oscilloscope, you can measure and analyze square waves to verify their properties and diagnose potential issues. Follow these steps for accurate measurements:

Set Up the Oscilloscope:

  • Connect the oscilloscope probe to the signal source.
  • Adjust the time base to display several cycles of the square wave clearly.
  • Set the voltage scale to ensure the entire waveform fits on the screen.

Capture the Waveform:

  • Observe the square wave on the oscilloscope screen.
  • Adjust the triggering level to stabilize the display, ensuring the waveform does not drift horizontally.

Measure Key Parameters:

  • Frequency: Use the oscilloscope’s built-in frequency measurement tool or manually measure the period (time for one complete cycle) and calculate the frequency as the reciprocal of the period.
  • Amplitude: Measure the peak-to-peak voltage of the square wave to determine its amplitude.
  • Duty Cycle: Measure the duration of the high state and divide it by the total period, then multiply by 100 to express it as a percentage.

Practical Tips

  • Probes: Use high-quality probes with proper compensation to avoid signal distortion.
  • Grounding: Ensure good grounding to minimize noise and interference.
  • Bandwidth: Choose an oscilloscope with sufficient bandwidth to accurately capture the fast transitions of square waves.

Vector Network Analyzers

Reliability in Every Reading

See ENA Special Offers

Fourier Analysis

Fourier analysis decomposes a square wave into its constituent sine waves, providing insights into its harmonic content. This analysis reveals that a square wave comprises a fundamental frequency and a series of odd harmonics.

  1. Fundamental frequency: The fundamental frequency is the primary frequency of the square wave, corresponding to its repetition rate.
  2. Harmonics: Square waves contain only odd harmonics (1st, 3rd, 5th, etc.), with the amplitude of each harmonic inversely proportional to its order. For instance, the amplitude of the third harmonic is one-third that of the fundamental frequency. Mathematically, the Fourier series representation of a square wave f(t) with period T and amplitude A is: f(t) = (4A/π) Σ (1/n) sin(2πnt/T) for n = 1, 3, 5, ...
  3. Spectral characteristics: The spectral plot of a square wave shows spikes at the fundamental frequency and its odd harmonics. The amplitude of each spike decreases with the harmonic order. Understanding the harmonic content helps in designing filters to shape the square wave or reduce unwanted frequencies.

Practical Applications:

  • Signal integrity: Fourier analysis helps identify and mitigate issues like signal distortion and interference.
  • Filter design: Engineers use the harmonic content information to design filters that allow desired frequencies while attenuating unwanted ones.
     

Browse Our Selection of Used Oscilloscopes

  • Like-new Condition
  • Updated Firmware
  • Full Calibration
  • New Accessories
  • Like-new Warranty
  • Customization possible

Learn more

  • Savings of up to 90%
  • Working Condition
  • Calibrated or Tested
  • 30-Day Right-of-Return
  • No Customization
  • Shipping to limited countries

Learn more

Need Tech Support?

Not sure which model perfectly fits your application needs? Get in touch and let our experts help you.

Select up to 3 instruments to compare

Cancel
Select another instrument to compare
Starting at
Select another instrument to compare
Starting at
Select another instrument to compare
Starting at

Enable Notifications

In order to use this feature, you need to enable notifications.

Manage notification preferences

USD



Keysight Used
Configuration:
Customization available
Shipping: Limited countries only
Warranty: 90 days
Accessories Not included
For professional and industrial use only
By submitting this quote request, you are providing Keysight with your personal data. For information on how we use this data, see the Keysight Privacy Statement.

Common Issues and Solutions

Square waves can encounter various issues that can affect their performance and reliability in electronic systems. 
Understanding the problems and how to fix them is crucial for maintaining signal integrity and ensuring your designs work properly.

Distortion

Distortion occurs when the shape of the square wave is altered, often due to bandwidth limitations of the transmission medium or the components used in the circuit. 

This can lead to rounded edges, overshoot, undershoot, and ringing. Distortion can degrade the performance of digital systems by causing timing errors and misinterpretation of the signal.

Solutions:

  • Use filters: Implementing low-pass filters can help remove high-frequency noise and smooth out the waveform, reducing overshoot and ringing. However, be cautious with the cutoff frequency to avoid excessively attenuating the desired signal components.
  • Impedance matching: Ensure that the impedance of the signal source, transmission medium, and load are matched. Mismatched impedance can cause reflections, leading to signal distortion. Using proper termination resistors and impedance-matching techniques can minimize these reflections.
  • High-bandwidth components: Choose components with sufficient bandwidth to handle the fast transitions of square waves. Low-bandwidth components can introduce significant distortion due to their inability to respond quickly to rapid changes in the signal.

Noise

Noise is unwanted interference that can corrupt the square wave signal, leading to errors in digital communication and processing. 

Noise can originate from various sources, including electromagnetic interference (EMI), power supply fluctuations, and crosstalk between adjacent signal lines.

Solutions:

  • Shielding: Use shielding techniques to protect sensitive signal lines from external electromagnetic interference. Shielded cables and enclosures can help block unwanted noise and maintain signal integrity.
  • Proper grounding: Implement proper grounding practices to minimize noise. A good grounding system can reduce the impact of EMI and power supply noise. Ensure that all components share a common ground reference to prevent ground loops.
  • Twisted pair cables: For differential signaling, use twisted pair cables to reduce susceptibility to external noise. Twisting the wires helps cancel out noise picked up along the cable length.
  • Decoupling capacitors: Place decoupling capacitors near the power supply pins of integrated circuits to filter out power supply noise and provide a stable voltage to the components.

Crosstalk

Crosstalk occurs when a signal transmitted on one circuit or channel creates an unwanted effect on a neighboring circuit or channel. This is common in densely packed circuit boards or cables carrying multiple signals.

Solutions:

  • Physical separation: Increase the physical distance between parallel signal lines to reduce crosstalk. This can be achieved by careful PCB layout design.
  • Shielded traces: Use ground or power planes between signal layers in a PCB to shield signals from each other.
  • Differential signaling: Use differential signaling where possible, as it is less susceptible to crosstalk. The equal and opposite currents in differential pairs help cancel out the noise.

Addressing these issues with appropriate solutions will help you maintain the integrity of square wave signals in your electronic designs. This ensures reliable operation and improves the performance of your digital systems.

Key Characteristics of Square Waves

CharacteristicDescriptionMeasurement Unit
FrequencyNumber of cycles per secondHertz (Hz)
AmplitudePeak value of the waveVolts (V)
Duty CycleRatio of high time to total periodPercentage (%)
Rise TimeTime taken to transition from low to highSeconds (s)
Fall TimeTime taken to transition from high to lowSeconds (s)

Conclusion

Square waves are essential in various applications, from digital electronics to communication systems. 

Understanding their characteristics, generation methods, and common issues can significantly improve your ability to design, analyze, and troubleshoot electronic systems. 

By using oscilloscopes and Fourier analysis, you can gain valuable insights into square wave properties, ensuring signal integrity and optimal performance.

To effectively analyze and measure square waves, you need reliable test equipment. Visit the Keysight Used Equipment Store for premium used oscilloscopes, spectrum analyzers, function generators, and multimeters. Equip your lab with the best tools available to ensure precision and accuracy in your electronic projects.

Whenever You’re Ready, Here Are 5 Ways We Can Help You

  1. Browse our Premium Used Oscilloscopes.
  2. Call tech support US: +1 800 829-4444 
    Press #, then 2. Hours: 7 am – 5 pm MT, Mon– Fri
  3. Talk to our sales support team by clicking the icon (bottom right corner) on every offer page
  4. Create an account to get price alerts and access to exclusive waitlists.
  5. Talk to your account manager about your specific needs.

Subscribe to Get Our Latest News, Updates, and Articles.

Get Email Updates

This article is brought to you by the Keysight Used Equipment Store. The information applies to used and new equipment.

If you know which Keysight model is of interest to you and matches your technical requirements, visit the Used Equipment Store to see if you can save with our offers.
View Our Offers

For more Test and Measurement knowledge and tips, view all technical articles. Visit our resources
Keysight assumes no liability for the completeness, correctness and accuracy of all content on this website and all of its content. Please read here the terms of use of this website.