• Become a member
  • Log In
The Institution of Electronics
  • Home
  • About us
    • Our Objectives
    • Our History
    • Governance of the Institution
  • The Electron Magazine
    • 2024
      • 2024 – Winter
      • 2024 – Spring
      • 2024 – Summer
      • 2024 – Autumn
    • 2025
      • 2025 – Winter
      • 2025 – Spring
      • 2025 – Summer
      • 2025 – Autumn
    • 2026
      • 2026 – Winter
  • Members
    • Membership Grades and Fees
    • Members’ Resources
      • The Electron Newsletter
      • The Archives
  • Education and Projects
    • National Electronics Competition
    • Student Members’ Projects
    • Arkwright Engineering Scholarships
  • News
  • Contact Us
  • Menu Menu
Uncategorised

Single supply function generator outputs buffered squares, triangles, and sines

The traditional analog function generator with its customary triple-threat ensemble of square, triangle, and sine waveform outputs is a familiar tool on electronics lab benches. It’s also a classical design exercise. Generally, the square and triangle are easy, so the problem is how to generate an acceptably accurate sine wave.  This usually involves some method of conversion of the triangle. Figure 1’s generator circuit employs the popular integrator solution, but with a useful twist.

Figure 1 Quad highspeed RRIO TLV9064 op-amp performs as comparator, integrator, and clipper while sipping single-digit milliwatts from a single, flexible, power source.

A1 and A2 combine to form a conventional multivibrator generating symmetrical (around Vdd/2) squares and triangles. The peak-to-peak amplitude of the latter is fixed by R5 and R6 at 0.909Vdd, and the frequency of both is settable over two decades (and perhaps a bit more) by R1C1.

Wow the engineering world with your unique design: Design Ideas Submission Guide

Conversion of A2’s triangles into a (more or less) serviceable approximation of a sine wave could now be, and popularly would be, accomplished by simple integration of A2’s output. But the downside of unadorned integration is found in that ominous phrase “more or less”. Unfortunately, the resulting approximation, while definitely looking a lot like a sinusoid, would quantitatively differ from a true sine function by the +/-3% of full-scale, mainly third harmonic, error shown in Figure 2.

Figure 2 Simple integration of triangle would result in +/-3%, 3rd harmonic sine error.

 But maybe we can do better.

A little experimentation and simulation revealed that simple truncation of the triangle at +/- 2/3rds of full-scale (Vpp = 0.67Vdd) prior to integration yields a surprising 3x improvement in sinewave accuracy, shown in

Figure 3’s plot of the residue error function.

Figure 3 Imposing trapezoidal truncation of triangle at +/- 67% prior to integration reduces peak sine error to less than +/-1% of mainly 5th harmonic.

I say “simple” because we already have an extra amplifier (A3) available. So, it only costs two extra resistors (R7 and R8) to generate the clipped at 67% trapezoidal waveform. This does a better job of approximating the dV/dT of a true sine, reducing error to the +/- 1% 5th harmonic squiggle shown in Figure 3.It’s interesting to note that 1% sine accuracy is similar to the performance of the famous Intersil ICL8038 function generator chip. But that was achieved only after in-circuit trimming. The circuit in Figure 1 needs none. Not to brag.

Integration now occurs in A4, with the DC restoration R9C3 network providing zero stability, and R2 controlling sine amplitude. 

This last is an important feature because the fact that the sine waveshape results from an integration makes its amplitude inherently inversely proportional to frequency. Therefore, because frequency is unaffected by the sine amplitude adjustment but not vice-versa, the most efficient way to set these two parameters is to adjust frequency first, then set sine amplitude as required. This avoids a potentially time wasting (and frustrating) iteration.

A final comment on Figure 1’s circuit: The TLV9064 is particularly suited for the A1 comparator and the A3 clipper because of its remarkably fast 200 ns overload recovery time. This is unusual performance for an op-amp, particularly such a low power one as the 9064.

Stephen Woodward’s relationship with EDN’s DI column goes back quite a long way. Over 100 submissions have been accepted since his first contribution back in 1974.

Related Content

555 triangle generator with adjustable frequency, waveshape, and amplitude; and more!
DAC (PWM) Controlled Triangle/Sawtooth Generator
Squashed triangles: sines, but with teeth?
Triangle waves drive simple frequency doubler
Voltage-controlled triangle wave generator

<!–
googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-native’); });
–>

The post Single supply function generator outputs buffered squares, triangles, and sines appeared first on EDN.

5 December 2023
http://institutionofelectronics.ac.uk/wp-content/uploads/2022/12/IOE_LOGO.png 0 0 http://institutionofelectronics.ac.uk/wp-content/uploads/2022/12/IOE_LOGO.png 2023-12-05 15:26:502023-12-05 15:26:50Single supply function generator outputs buffered squares, triangles, and sines

Latest news

  • Four-channel USB-UART IC boosts server management13 August 2026 - 05:08
  • eFuse speeds overcurrent detection13 August 2026 - 05:08
  • Memory platform tackles AI bottlenecks13 August 2026 - 05:08
  • 6.5-kV SiC MOSFET reaches 8-kV blocking13 August 2026 - 05:08
  • Made by Google 2026: This limited silicon-supply situation really sucks13 August 2026 - 05:08
  • Cheap and cheerful LMC555 RC PWM pulse generator12 August 2026 - 13:56
  • Record high wafer shipments. Can fabs keep pace?12 August 2026 - 07:51
  • Analog uncertainty-aware design: How it replaces Monte Carlo with certifiable yield intelligence11 August 2026 - 16:31
  • Automotive low side output switch architecture suitable for 8 to 48 volt buses and beyond11 August 2026 - 13:26
  • Inference 2.0: How enterprise AI is reshaping AI system architectures11 August 2026 - 07:19
IOE LOGO 2

Become a member

click here

Become a member

click here

Become a subscriber

click here

Become a sponsor

click here

© Copyright - The Institution of Electronics | Website by WHD Solutions
  • Link to LinkedIn
  • Link to Facebook
  • Link to X
Link to: LPDDR flash: A memory optimized for automotive systems Link to: LPDDR flash: A memory optimized for automotive systems LPDDR flash: A memory optimized for automotive systems Link to: Using oscilloscope filters for better measurements Link to: Using oscilloscope filters for better measurements Using oscilloscope filters for better measurements
Scroll to top Scroll to top Scroll to top