Triangle to Sine Conversion with OTAs Ryan Williams :

Similar documents
SSM2040 Filter Analysis Part 1 - Ryan Williams

Analog Synthesizer: Functional Description

Optimization of an OTA Based Sine Waveshaper

Feed Forward Linearization of Power Amplifiers

Lab 2: Common Emitter Design: Part 2

CEM3378/3379 Voltage Controlled Signal Processors

EE 3305 Lab I Revised July 18, 2003

A Simple Notch Type Harmonic Distortion Analyzer

An Analog Phase-Locked Loop

When input, output and feedback voltages are all symmetric bipolar signals with respect to ground, no biasing is required.

Analysis and Design of a Simple Operational Amplifier

LM13600 Dual Operational Transconductance Amplifiers with Linearizing Diodes and Buffers

Data Conversion and Lab Lab 1 Fall Operational Amplifiers

LM13700 Dual Operational Transconductance Amplifiers with Linearizing Diodes and Buffers

Chapter 9: Operational Amplifiers

Analog/Digital Guitar Synthesizer. Erin Browning Matthew Mohn Michael Senejoa

CEM3389 Voltage Controlled Signal Processor

LM13700 Dual Operational Transconductance Amplifiers with Linearizing Diodes and Buffers

EE334 Gain and Decibels Worksheet

Quadrature Oscillator (Part 1) An active inductor

Electronics EECE2412 Spring 2016 Exam #1

PARAMETRIC MEASUREMENT OF CLASS-T AMPLIFIERS

Electronic Instrumentation ENGR-4300 Fall Project 4: Optical Communications Link

ECEN 325 Lab 5: Operational Amplifiers Part III

Operational Amplifier Circuits

Low Pass Filter Introduction

Differential Amplifier : input. resistance. Differential amplifiers are widely used in engineering instrumentation

Well we know that the battery Vcc must be 9V, so that is taken care of.

EE4902 C Lab 5 MOSFET Common Source Amplifier with Active Load Bandwidth of MOSFET Common Source Amplifier: Resistive Load / Active Load

Inverting input R 2. R 1 Output

D100L Series. 100 Hz to 100 khz Low Noise Fixed Frequency. 4- and 8- Pole Low-Pass Filters

ECE 363 FINAL (F16) 6 problems for 100 pts Problem #1: Fuel Pump Controller (18 pts)

ECEN Network Analysis Section 3. Laboratory Manual

PHYSICS 330 LAB Operational Amplifier Frequency Response

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering

Understanding Power Splitters

LT Spice Getting Started Very Quickly. First Get the Latest Software!

Laboratory 9. Required Components: Objectives. Optional Components: Operational Amplifier Circuits (modified from lab text by Alciatore)

Q Multiplication in the Wien-bridge Oscillator

Alternative View of Frequency Modulation

Op-Amp Simulation Part II

Project 4 Optical Communications Link

Lauren Gresko, Elliott Williams, Elaine McVay Final Project Proposal 9. April Analog Synthesizer. Motivation

Practical 2P12 Semiconductor Devices

Lecture 040 CE and CS Output Stages (1/11/04) Page ECE Analog Integrated Circuits and Systems II P.E. Allen

UNIVERSITY OF CALIFORNIA College of Engineering Department of Electrical Engineering And Computer Sciences MULTIFREQUENCY CELL IMPEDENCE MEASUREMENT

FIRST WATT B4 USER MANUAL

Experiment One: Generating Frequency Modulation (FM) Using Voltage Controlled Oscillator (VCO)

Title: New High Efficiency Intermodulation Cancellation Technique for Single Stage Amplifiers.

Lab 4: Analysis of the Stereo Amplifier

EE 501 Lab 10 Output Amplifier Due: December 10th, 2015

ENGR 201 Homework, Fall 2018

DEPARTMENT OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE MASSACHUSETTS INSTITUTE OF TECHNOLOGY CAMBRIDGE, MASSACHUSETTS 02139

UNIT I. Operational Amplifiers

BANGLADESH UNIVERSITY OF ENGINEERING & TECHNOLOGY

LM13600 Dual Operational Transconductance Amplifiers with Linearizing Diodes and Buffers

Basic Electronics Learning by doing Prof. T.S. Natarajan Department of Physics Indian Institute of Technology, Madras

ELECTRONOTES APPLICATION NOTE NO Hanshaw Road Ithaca, NY Sept 13, 2013

Lab 2: Discrete BJT Op-Amps (Part I)

11. Chapter: Amplitude stabilization of the harmonic oscillator

BMC018. Analog Drum. Last updated

Test Your Understanding

DOEPFER System A-100 Synthesizer Voice A Introduction. Fig. 1: A sketch

6. The Operational Amplifier

Assignment 11. 1) Using the LM741 op-amp IC a circuit is designed as shown, then find the output waveform for an input of 5kHz

University of North Carolina, Charlotte Department of Electrical and Computer Engineering ECGR 3157 EE Design II Fall 2009

Chapter 11 ASK Modulator

The Aleph 5 is a stereo 60 watt audio power amplifier which operates in single-ended class A mode.

ECE3204 D2015 Lab 1. See suggested breadboard configuration on following page!

Low Distortion Design 4

EE501 Lab 7 Opamp Measurement

UNIVERSITY OF UTAH ELECTRICAL ENGINEERING DEPARTMENT

Experiments #7. Operational Amplifier part 1

VCO Design Project ECE218B Winter 2011

MATLAB Assignment. The Fourier Series

ELEG 205 Analog Circuits Laboratory Manual Fall 2016

Electrical Engineer. Lab2. Dr. Lars Hansen

AN W 2 (18 V, 8 Ω) Power Amplifier with Variable Audio Output and Volume Control. ICs for Audio Common Use. Overview. Features.

Operational Amplifier BME 360 Lecture Notes Ying Sun

Assist Lecturer: Marwa Maki. Active Filters

XR-2206 Monolithic Function Generator

Amplitude Modulation Methods and Circuits

Quad Current Controlled Amplifier SSM2024

Michael F. Toner, et. al.. "Distortion Measurement." Copyright 2000 CRC Press LLC. <

Loudspeaker Design & Measurement

AN W 2 (18 V, 8 Ω) Power Amplifier with Mute Function and Volume Control. ICs for Audio Common Use. Overview. Features.

LM6142 and LM MHz Rail-to-Rail Input-Output Operational Amplifiers

Analog CMOS Interface Circuits for UMSI Chip of Environmental Monitoring Microsystem

Diodes. Sections

v 0 = A (v + - v - ) (1)

Chip Name Min VolT. Max Volt. Min. Out Power Typ. Out Power. LM386N-1 4 Volts 12 Volts 250 mw 325 mw. LM386N-3 4 Volts 12 Volts 500 mw 700 mw

ECE 454 Homework #1 Due 11/28/2018 This Wednesday In Lab

Week 8 AM Modulation and the AM Receiver

Low Distortion Design 3


ADC Resolution: Myth and Reality

EET 438a Automatic Control Systems Technology Laboratory 1 Analog Sensor Signal Conditioning

Data Conversion Circuits & Modulation Techniques. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur

Accurate Harmonics Measurement by Sampler Part 2

THIRD SEMESTER ELECTRONICS - II BASIC ELECTRICAL & ELECTRONICS LAB DEPARTMENT OF ELECTRICAL ENGINEERING

Transcription:

Triangle to Sine Conversion with OTAs Ryan Williams : http://www.sdiy.org/destrukto This note describes the basic operation of a triangle to sine converter using OTAs. I have made no attempts to show a complete design, but only to explain and verify the operation of such a circuit. I have not actually designed my own converter, but have built one (Oakley VCO). The diagram below shows possible pin connections to the CA38. The Vin inputs will need attenuators and Vout will need a buffer. definitions: Vin = (Vin+) - (Vin-) Iabc = amplifier bias current u(t) is the unit step function. ( for t<, 1 for t>) ua := 1 3 ma u( t) := Φ( t) Kohm := 1 3 ohm I abc := 5uA V t :=.6V db := 1 First, I'll start with the basic OTA equation. A CA38 is the right component, but since it is gone now, one half of an LM137 would work fine. These are cheap, and the NJM137 is an even cheaper replacement. I am not going into the derivation of this equation because it has been done many times. A good exersize is to do it on your own. It helped me when I was first learning about this type of circuit. look to my webpage for links to a very complete OTA analysis. For a triangle to sine converter, the linearized (small signal) equation will not work. The OTA must be overdriven, so the nonlinear voltage-current relationship should be used.

( ) I abc tanh I out V in := V in V t The next plot shows the output current with an input voltage swept from -.5V to +.5V. This shows how the the amplifier distorts for large signal differences at Vin inputs. If you are not familair with the unit step function, then the definition below for Vin may look like nonsense, but it defines an input of: -.5V for t = -infinity to -.5sec. t Volts for t = -.5sec to +.5sec +.5V for t = +.5sec to infinity. As a reference, I have also shown the linear approximation of the output current. ( ( ) u t.5 ) ( ( )) V V in ( t) := t ( u( t +.5) u( t.5) ).5 u t + ( + ) +.5 u( t.5) u t 5. 1 4 Iout with Vin (-5mV to +5mV) I out ( V in ( t) ) 19.1 I abc V in ( t) 5. 1 4..1.1. It should be noted that the output current is almost linear when the input voltage is very small. Even a mv signal is large for an OTA. In VCAs, this distortion can be a problem, but for the triangle to sine converter, this is exactly what we want. Next I'll show what happens with a triangle input. The following description of Vin builds the triangle wave out of 'unit step' functions shifted in time. V in ( t) := [ t ( u( t) u( t 1) ) + ( t) ( u( t 1) u( t 3) ) + ( 4 + t) ( u( t 3) u( t 4) )] V t The distorted (sine) output is defined as the OTA output current with an attenuated version of the triangle wave as it's input. The output current from the OTA is sent through a load resistor to create a ~Vp-p sine wave. I did some trial and error to come up with these values. Obviously the attenuation factor, and load resistor values are not realistic, but I chose them to get minimum distortion.

V in ( ) I out V out V in := 13.855.344Kohm V outb V in V in ( ) := I out 11.5 17ohm The plot below demonstrates the tri->sine converter. The real sine wave is the dashed line. The only place it is much different from a real sine is at the sharp edges on the triangle wave. This plot looks comparable to the tri->sin converter I have built. I think that with some careful trimming, one could get very close to this result. 1 tanh distortion of a triangle wave V in ( t) V out ( V in ( t) ) sin π t.5.5 1.5 1 1.5.5 3 3.5 4 Now, I'll calculate the THD in the converted sine. The next calculations are used to find the amplitude spectrum of the converted sine. t N := 1 N T := 4 f s := 4 k k :=.. N 1 n := k f s ( ( )) 1 V v := V k out V in n Spec k c1 := fft( v) p N :=.. max Spec c1 = 15.999 The amplitude spectrum plot is shown below. The first harmonic is the fundamental, and its amplitude is not shown. Instead, I have plotted over a range that shows the other harmonics more clearly. From this plot, it can be seen that the 3rd harmonic is not present in our converted sine.

Amplitude Spectrum of Converted Sine.15 Spec c1p.1.5 4 6 8 1 1 14 16 f s p N ( ) v sink := sin π n Spec k sin := fft v sin p N :=.. max Spec sin = 16 THD is calculated as the sum of powers in each harmonic of the output sine divided by the power in the fundamental frequency of a real sine. I have distortion expressed as a percentage. I was not able to achieve better results using the tanh distortion. I just guessed at values to find the best input level for the OTA. Some calculation could be done, but It wasn't obvious to me how to do that. The load resistor was chosen so that the first (fundametal) harmonic cancels out when a real sine wave is subtracted. Im Spec c11 Im Spec sin1 = 1 This shows that the fundamentals are equal and they will not affect our THD calculation THD( S) N S n := n = 1 Spec sin1 1 THD Spec c1 ( ) = 3.5% You may notice that the sharp corners were still in our sine wave. They can be removed by slightly increasing the signal level, but this will also increase the THD. If a smoother wave form is required, it could be easily achieved by adjusting the trim pots (you should have trim pots).

There is an easy way to improve the THD and remove the sharp corners at the same time. This is done using negative feedback. Someone mentioned it on the sdiy list reccently, but it was not until I wrote this note that I realized why it works. First, consider the best possible input to create a sine wave using tanh distortion. It will be arctanh(sine). A good estimate of arctanh(sine) can be achieved by subtracting a sine from a triangle. The next plot shows arctanh(sin) and triangle minus sine. 6 Prefered Input Function (Triangle - Sine) 5 V in n k ( ).455 sin π n k atanh.99 sin π n k ( ) 5 V in n k 5.99.455 sin π n k V 4 4 The equation that describes this new converter is: 6 1 3 4 n k ( ).6 V in ( t).455 V out ( t) V out ( t) = I abc tanh 1.994 Kohm V t That is just like the first converter, but with negative feedback, and some values changed. The.455 and.6 constants were chosen using the plot above so that the triangle minus sine would look just like the arctanh(sine). They were then fine tuned to minimize THD (trial and error again). The new load (1.994Kohm) was chosen so that the amplitude of the fundamental in the converted sine and the actual sine were equal. In order to model this new converter, I could either solve the nonlinear equation numerically, or assume that it has a perfect sine wave at the output. If I can assume that it outputs a perfect sine wave then the Vout(t) in the right hand side can be replaced by sine(t*pi/). Later, I will show a spice simulation to verify that this approximation works out. The new equation with a sine in the right had side is: ( ).455 sin π n k I V abc in n V k v ck A tanh Kohm := 1.994 V t ohm.6

Actual and Converted Sine with Feedback 1.5 v ck v sink.5 1.5 1 1.5.5 3 3.5 4 n k That is an improvement. It looks much better to the eye, but the THD is only about twice as good. In the spectrum plot below, only the 5th harmonic is significant. This is actually larger than in the first converter, but the high frequencies have been removed alone with the sharp corner. fft( v c ) Spec c := THD Spec c ( ) = 1.863%

Amplitude Spectrum of Converted Sine using Feedback.3 Spec cp..1 4 6 8 1 1 14 16 f s p N To verify the operation. A spice simulation has been run. The OTA is represented using sinh/cosh because CircuitMaker student version does not have OTAs or tanh functions. It does have arctanh and that is compared against triangle minus sine.