element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Achievement Levels
    • Benefits of Membership
    • Feedback and Support
    • Members Area
    • Personal Blogs
    • What's New on element14
  • Learn
    Learn
    • eBooks
    • Learning Center
    • Learning Groups
    • STEM Academy
    • Webinars, Training and Events
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Arduino Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Project Groups
    • Raspberry Pi Projects
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Or choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Open Source Hardware
  • Technologies
  • More
Open Source Hardware
Blog Building a Fast Edge Square Wave Generator
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Open Source Hardware requires membership for participation - click to join
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: shabaz
  • Date Created: 6 Feb 2021 1:36 AM Date Created
  • Views 7039 views
  • Likes 18 likes
  • Comments 19 comments
  • pulse generator
  • square_wave
  • square waves
Related
Recommended

Building a Fast Edge Square Wave Generator

shabaz
shabaz
6 Feb 2021

  • Introduction
  • How does it work?
  • Building It
  • Parts
  • Trying It Out
  • Summary

 

Introduction

Sometimes it’s useful having the ability to generate signals with sharp edges! It can be handy for time-domain reflectometer (TDR) experiments or for checking test equipment. I wanted it for testing probing techniques, and also for triggering equipment under test. This blog post describes an attempt at gaining this capability. This is a very quick project that can be assembled in a day.

image

 

How does it work?

There are lots of good ways to make high-speed transitions, the method I used is fairly typical, to achieve edge times under 1 nanosecond. It relies on using 74AC series logic which is speedy! The circuit consists of an oscillator connected to four logic gates in parallel for greater output current capability.

 

The oscillator, U1, is connected to a switch and generates switchable 100 kHz, 1 MHz, and 10 MHz outputs. The values can be changed by modifying the value of R1. R1 could be a potentiometer if an adjustable capability is needed.

 

The output goes to four logic gates being used as buffers. The outputs are paralleled with 200-ohm resistors, to approximate a 50-ohm output impedance. The output connector J1 provides the square wave signal to the outside world.

image

 

Building It

Due to the high-speed transitions, I decided to build it on copper-clad board using surface-mount parts, but all the parts are still fairly large and easy to hand-solder. Anyway, there is a printed circuit board (PCB) design for it (files attached to the bottom of this blog post) but I have not tested it.

 

Everyone has their favourite prototyping methods, I find that adhesive copper tape on top of Kapton tape is useful for supply rails. I used a craft knife to cut out the copper-clad layer to make the pad for the centre pin of the output connector (SMA connector). The logic IC was placed right-way up on top of Kapton tape - this is a minor alternative to the 'dead bug' (upside-down IC) approach that can make it hard to follow IC pinouts back-to-front.

 

I tried to make the output as nice as I could by using same-length wires for each of the four logic gate inputs. I don’t know if this makes any difference. It is inaccurate anyway because the metal leads inside the plastic package of the IC are of slightly different lengths too.

 

For the output connections from the logic gates, I tried joining them with equal distance too, over the top of the chip since that was convenient. The four output resistors are vertically mounted as shown in the photo below. The wire length from there to the output connector needs to be kept short.

image

 

 

For the PCB design, I again tried to keep the signals at the same length. Since I have not built the PCB version, I cannot be sure that it with work as well or better/worse than the prototype (Edit: the PCB version has now been built, and it performs better).

image

 

Parts

All resistors are 0805 sized (0603 will fit) and the ceramic capacitors are 0603 sized. The DC barrel socket is FC68148FC68148 (others might fit too), and the 3-way switch is part code OS203011MA2QP1OS203011MA2QP1. Most PCB mount SMA connectors will fit, such as 3-1478978-13-1478978-1 . A suitable case is Hammond 1593KGY 1593KGY or 1593KBK 1593KBK but the board is tiny (50 x 50 mm, or 50 x 28 mm if the unused portion is cut off) so it can potentially fit lots of different enclosures.

 

I used 1% thick film resistors everywhere (I’m mentioning this just in case that makes a noticeable difference to the output – I don’t know), except for R1 which sets the timing – that was a more accurate and more temperature-stable thin film resistor.

 

The particular logic IC that I used was a Fairchild 74AC02 part in SOIC size. It is not available anymore, but I think the On Semi MC74AC02DG MC74AC02DG should be identical or have no significant difference (Edit: with the On Semi part mentioned, the PCB version achieved 500 ps rise time, and 420 ps fall time).

 

Trying It Out

I connected the output to a ‘scope and set it to 50-ohm input. The trace below shows the result, and the automated measurement at the bottom of the screenshot shows that the rise time was in the ballpark of 550 picoseconds. The fall time was slightly slower, it measured at around 750 picoseconds.

image

 

The ‘scope screenshot below shows the edge ripple zoomed in for the rising and falling edges:

image

 

Summary

At very little cost, a tool for fast edged square wave generation can be created, using 74AC logic gates and not much else. It has test uses, but perhaps one day it could even be used for high-speed photography experiments, by rapidly illuminating an object toward an open shutter.

 

The 550 picosecond rise time and 750 picosecond fall time that was achieved certainly isn’t state-of-the-art, but it’s the fastest edged simple tool that I have for now, and it will come in handy for experiments. In comparison, it is about ten times faster than the HP 811x series of pulse generators, but they are ancient (still expensive on eBay though!). The circuit was designed to use the parts that I had at hand, but it is easy to modify and select a different 74AC series logic gate to experiment or to change out the oscillator for something else.

 

Thanks for reading!

 

Update April 2021

The PCB version was assembled, using the more recent On Semi MC74AC02DGMC74AC02DG part, and performance improved, to 500 ps rise-time, and 420 ps fall-time.

image

Attachments:
export-sq-gen-rev-1.zip
  • Sign in to reply

Top Comments

  • michaelkellett
    michaelkellett over 2 years ago +7
    Useful tips here Shabaz - thanks. I managed to buy an HP8082A at an auction for about £75 a couple of years ago - it can do 1ns edges (fastest it can do) but it's huge and old and won't be eay to fix if…
  • jc2048
    jc2048 over 2 years ago +7
    That looks like good fun. A nice project. I, too, like the prototype method. Although I carve up pcb board, I hadn't thought of adding supply rails. AC logic is impressive, though keep in mind can also…
  • genebren
    genebren over 2 years ago +6
    Nice experiment/test. I hope that this device will serve you well in your future experiments.
Parents
  • shabaz
    shabaz over 2 years ago

    Just a quick update on this project..

    I wasn't expecting it, but the PCB version turned out to be faster.. or maybe it's the particular IC that I used.. this one: MC74AC02DGMC74AC02DG

    Now the rise-time is 500 ps, and the fall-time is around 420 ps.

    This was tested with a 5V DC supply.

     

    image

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • michaelkellett
    michaelkellett over 2 years ago in reply to shabaz

    I suspect the improved performance is mainly down to the shorter tracks.

     

    You could add this, as an output driver, to your DDS generator to make nicer digital ouputs.

     

    MK

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • michaelkellett
    michaelkellett over 2 years ago in reply to shabaz

    I suspect the improved performance is mainly down to the shorter tracks.

     

    You could add this, as an output driver, to your DDS generator to make nicer digital ouputs.

     

    MK

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • shabaz
    shabaz over 2 years ago in reply to michaelkellett

    Good idea, the PCB is small enough to retro-fit.

    The edges are sharper than I've seen on a 'scope for quite a while... just out of curiosity I held it near a radio set to FM, and with it set to generate a 1 MHz output, the 91st harmonic was still sufficient to silence the radio.. albeit I had to hold it right against the radio.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube