Design and Fabrication of High Frequency Linear Function Generator with Digital Frequency Counter using MAX038 and a PIC microcontroller

Similar documents
HIGH FREQUENCY WAVEFORM GENERATOR. Author: Carlos Rodríguez Hernández

Design of Low-Cost Multi- Waveforms Signal Generator Using Operational Amplifier

Simplified Analogue Realization of the Digital Direct Synthesis (DDS) Technique for Signal Generation

Not Recommended for New Designs

Controlling DC Brush Motor using MD10B or MD30B. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

6. HARDWARE PROTOTYPE AND EXPERIMENTAL RESULTS

FY10xx(S) series Direct Digital Synthesis (DDS) Signal Generator Users Manual Rev

Rigol DG1022A Function / Arbitrary Waveform Generator

Spectrum analyzer for frequency bands of 8-12, and MHz

Arbitrary/Function Waveform Generators 4075B Series

XR-8038A Precision Waveform Generator

Dual Channel Function/Arbitrary Waveform Generators 4050B Series

Analog Arts SF990 SF880 SF830 Product Specifications

The Application and Stimulation Research of PIC single chip in. waveform signal generator. Gao Yi

This DDS function generator is designed for use in such applications as communication equipment and electronic components production.

Simulation and Design of a Waveform Generator Based on DDS Technology

Analog Arts SL987 SL957 SL937 SL917 Product Specifications [1]

Publication Number ATFxxB Series DDS FUNCTION WAVEFORM GENERATOR. User s Guide

A DSP IMPLEMENTED DIGITAL FM MULTIPLEXING SYSTEM

Agilent 81180A Arbitrary Waveform Generator

RIGOL Data Sheet. DG3000 Series Function/Arbitrary Waveform Generator DG3121A, DG3101A, DG3061A. Product Overview. Easy to Use Design.

Dual Channel Function/Arbitrary Waveform Generators 4050 Series

UNIT 2. Q.1) Describe the functioning of standard signal generator. Ans. Electronic Measurements & Instrumentation

Description of a Function Generator Instrument

SIGNAL RECOVERY. Model 7265 DSP Lock-in Amplifier

XR-2206 Monolithic Function Generator

Analog Arts SF900 SF650 SF610 Product Specifications

PC-OSCILLOSCOPE PCS500. Analog and digital circuit sections. Description of the operation

Hello, and welcome to this presentation of the STM32G0 digital-to-analog converter. This block is used to convert digital signals to analog voltages

CATALOG. ANALOG COMMUNICATION SYSTEMS DIGITAL COMMUNICATION SYSTEMS Microcontroller kits Arm controller kits PLC Trainer KITS Regulated Power supplies

UDB110x(S) seriers DDS Signal Generator User Manual Rev4.2


Low distortion signal generator based on direct digital synthesis for ADC characterization

Digital-to-Analog Converter. Lab 3 Final Report

STM32 microcontroller core ECG acquisition Conditioning System. LIU Jia-ming, LI Zhi

Dual Channel Function/Arbitrary Waveform Generators 4050 Series

ArbStudio Arbitrary Waveform Generators. Powerful, Versatile Waveform Creation

GRAPHICAL LCD BASED DIGITAL OSCILLOSCOPE

IT.MLD900 SENSORS AND TRANSDUCERS TRAINER. Signal Conditioning

Analog Arts SG985 SG884 SG834 SG814 Product Specifications [1]

Electric Druid Tap Tempo LFO

UDB12x. 2xxS. xs seriers. Signal Generator. Manual. Users

ELCT 912: Advanced Embedded Systems

GENERATION OF SIGNALS USING LABVIEW FOR MAGNETIC COILS WITH POWER AMPLIFIERS

Application Note #5 Direct Digital Synthesis Impact on Function Generator Design

DDS Function Generator Selection Guide

CompuLign User Guide - V2.0

Analog Arts AG900 AG885 AG875 AG815 Product Specifications

CHAPTER IV DESIGN AND ANALYSIS OF VARIOUS PWM TECHNIQUES FOR BUCK BOOST CONVERTER

MODEL 625A SMARTARB BNC A BEST BUY. Eliminates Phase Jitter

EXPERIMENT NUMBER 2 BASIC OSCILLOSCOPE OPERATIONS

AC LAB ECE-D ecestudy.wordpress.com

Section 1. Fundamentals of DDS Technology

Multiple Instrument Station Module

MULT SWP X1K K VERN START FREQ DURATION AMPLITUDE 0 TTL OUT RAMP

The Design and Construction of a DDS based Waveform Generator

WaveStation Function/Arbitrary Waveform Generators

RIGOL Data Sheet. DG1000 Series Dual-Channel Function/Arbitrary Waveform Generator. Product Overview. Main Features. Applications. Easy to Use Design

Electronic Instrumentation & Automation. ET-7th semester. By : Rahul Sharma ET & TC Deptt. RCET, Bhilai

MSO Supplied with a full SDK including example programs Software compatible with Windows XP, Windows Vista and Windows 7 Free Technical Support

BitScope Micro - a mixed signal test & measurement system for Raspberry Pi

MODELS WW5061/2. 50MS/s Single/Dual Channel Arbitrary Waveform Generators

PHYS225 Lecture 18. Electronic Circuits

ArbStudio Arbitrary Waveform Generators

Sweep / Function Generator User Guide

WaveStation Function/Arbitrary Waveform Generators

Sampling and Reconstruction

Digital microcontroller for sonar waveform generator. Aleksander SCHMIDT, Jan SCHMIDT

DG4000 Series Waveform Generators

Generation of Gaussian Pulses using FPGA for Simulating Nuclear Counting System

HAMEG Programmable Measuring Instruments Series 8100

CHAPTER ELEVEN - Interfacing With the Analog World

Q107/Q107A State Variable Filter

Frequency Synthesizer Project ECE145B Winter 2011

Capacitive Touch Sensing Tone Generator. Corey Cleveland and Eric Ponce

LINEAR IC APPLICATIONS

MFJ-249B HF/VHF SWR ANALYZER

TG1010A AIM & THURLBY THANDAR INSTRUMENTS. 10MHz programmable DDS function generator. Direct Digital Synthesis

332:223 Principles of Electrical Engineering I Laboratory Experiment #2 Title: Function Generators and Oscilloscopes Suggested Equipment:

WaveStation Function/Arbitrary Waveform Generators

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

DG5000 series Waveform Generators

Introduction to Basic Laboratory Instruments

Signal Forge. Signal Forge 1000 TM Synthesized Signal Generator. Digital and RF Tester with 1 GHz Range. Key Features

Chapter 2 Signal Conditioning, Propagation, and Conversion

MM5452/MM5453 Liquid Crystal Display Drivers

Function Generator MODEL FG-500 Instruction Manual ELENCO

University of Michigan EECS 311: Electronic Circuits Fall 2009 LAB 2 NON IDEAL OPAMPS

Computer-Based Project on VLSI Design Co 3/8

Racal Instruments. Product Information

MODELS 5251/ MS/s PXIBus / PCIBus Arbitrary Waveform / Function Generators

A 7ns, 6mA, Single-Supply Comparator Fabricated on Linear s 6GHz Complementary Bipolar Process

EMBEDDED SYSTEM DESIGN FOR A DIGITAL MULTIMETER USING MOTOROLA HCS12 MICROCONTROLLER

Hardware Platforms and Sensors

Common-Source Amplifiers

Physics 303 Fall Module 4: The Operational Amplifier

USB Multifunction Arbitrary Waveform Generator AWG2300. User Guide

MG3740A Analog Signal Generator. 100 khz to 2.7 GHz 100 khz to 4.0 GHz 100 khz to 6.0 GHz

M.Sinduja,S.Ranjitha. Department of Electrical & Electronics Engineering, Bharathiyar Institute of Engineering For Women, Deviyakurichi.

5MHz FUNCTION GENERATOR

Transcription:

International Journal of Latest Tr ends in Engineering and Technology Vol.(7)Issue(3), pp. 263-270 DOI: http://dx.doi.org/10.21172/1.73.536 e-issn:2278-621x Design and Fabrication of High Frequency Linear Function Generator with Digital Frequency Counter using MAX038 and a PIC microcontroller P. KanakaRaju 1 and M. PurnaChandra Rao 2 Abstract The main process of this research is to design and fabricate an extremely low cost, small sized, accurate and versatile function generator up to 17MHz with frequency resolution of 1 Hz by using minimum components like IC MAX038- analog function generator along with digital frequency counter implemented by PIC16F876 microcontroller and 2 16 characters LCD. External amplitude/duty cycle is controlled by ICs LT1364[1] and NE5532N[2], with the following key features: 1Hz to 17MHz operating frequency range, sine, square and triangular waveforms, independent frequency and duty-cycle adjustments, 15% to 85% variable duty cycle along with 50% fixed duty cycle, low-impedance output buffer, low temperature drift. In this research, the complete design of the function generator is provided. Hardware and software technologies are integrated to fabricate this instrument. Key words: function generator, frequency counter, PIC microcontroller, various waveforms. Introduction: function generator is a versatile instrument, extensively used in electronics, mechanics, bioengineering, physics and many other fields. It generates a wide variety of electrical signals and waveforms for testing and diagnostic applications. Figure 1 shows the most common waveforms generated by a function generator. Many of the comprehensive function generators are able to operate at much higher frequencies: 1Hz to 20MHz. Figure 1: Waveforms generated by a function generator There are many ways of designing function generator circuits, however there are two main approaches: Analogue function generator: It utilize analogue technology and offer a number of advantages: 1. Cost effective: Analog function generators are very cost effective, being at the lower end of the function generator price range. 2. Simple to use: Analog function generators provide an effective test instrument that is able to meet most user needs. 1 Department of Electronics and Physics, GIS, GITAM University, Visakhapatnam, INDIA 2 Department of System Design, Andhra University, Visakhapatnam, INDIA

Design and Fabrication of High Frequency Linear Function Generator with Digital Frequency Counter using MAX038 and a PIC microcontroller 264 3. Maximum frequencies: The analog function generators do not have the high frequency limitations on non-sinusoidal waveforms such as triangles and ramps as do the digital function generator. Digital function generator: It utilizes digital technology to generate the waveforms, such as Direct Digital Synthesis [6]. DDS uses a phase accumulator, a look-up table containing a digital representation of the waveform, and a DAC [8]. These are able to offer high levels of accuracy and stability, but the disadvantage is that they are more comprehensive than analogue cousins; they require a high performance DAC and other digital circuitry which are costly and also complicated. This research work mainly deals with the design and fabrication of analog function generator with IC MAX038. Description: MAX038: IC MAX038 is a high-frequency, precision function generator producing highfrequency triangle, sawtooth, sine, square, and pulse waveforms with a minimum of external components. The output frequency can be controlled over a frequency range of 0.1Hz to 20MHz [3] by an internal 2.5V band gap voltage reference and an external resistor and a capacitor. The duty cycle can be varied over a wide range by applying a ±2.3V control signal, facilitating pulse-width modulation and the generation of sawtooth waveforms. Frequency modulation and frequency sweeping can also be achieved. The duty cycle and frequency controls are independent. Sine, square, or triangle waveforms can be selected at the output by setting the appropriate code at two TTL-compatible select pins. The output signal for all waveforms is a 2V P-P signal that is symmetrical around ground. The low-impedance output can drive up to ±20mA. The TTL-compatible SYNC output from the internal oscillator maintains a 50% duty cycle regardless of the duty cycle of the other waveforms to synchronize other devices in the system. PIC16F876: The PIC16F876 is a high performance RISC CPU [4] with 35 single word instructions, CMOS FLASH-based 8-bit microcontroller packs Microchip's powerful PIC architecture in 28-pin package. Features: 256 bytes of EEPROM data memory, self programming, an ICD, 5 channels of 10-bit Analog-to-Digital (A/D) converter, 2 additional timers, 2 capture/compare/pwm functions, the synchronous serial port can be configured as either 3-wire Serial Peripheral Interface (SPI ) or the 2-wire Inter-Integrated Circuit (I²C ) bus and a Universal Asynchronous Receiver Transmitter (USART). All of these features make it ideal for more advanced level A/D applications in automotive, industrial, appliances and consumer applications. Figure 2 shows the basic circuit for the generation of sine wave as output with 50% duty cycle[3].

P. KanakaRaju and M. PurnaChandra Rao 265 2c. Basic circuit of sine wave output with 50% duty cycle Design and Fabrication: MAX038 is a relaxation oscillator, operates by alternately charging and discharging a capacitor, with constant currents. Basically it is a dual slope integrator that simultaneously produces a triangular and a square wave (TTL). The frequency is determined by the external oscillator capacitor and the current flowing into IIN. This triangular wave is applied to an internal comparator, in order to make a square wave. By applying the triangular wave to a waveform shaping circuit, it produces a sine wave with constant amplitude[5]. The triangle, square, and sine waves are input to a multiplexer that selects the type of wave which is applied to the low impedance separating amplifier [7]. Figure 3 and 4 shows the block diagram and the circuit diagram of the function generator respectively. Figure: 3 Block diagram of the function generator

Design and Fabrication of High Frequency Linear Function Generator with Digital Frequency Counter using MAX038 and a PIC microcontroller 266 Figure: 4 Circuit diagram of the function generator Figure: 5a. Top side of function generator PCB 5b. Bottom side of function generator PCB

P. KanakaRaju and M. PurnaChandra Rao 267 Figure: 6 complete function generator with front panel controls As shown in figure 6, the frequency range can be selected by placing different capacitors to the COSC input of MAX038 by using a twelve position rotary switch. The output frequency can be selected within the frequency range by a potentiometer [8] for the fine tuning. The DADJ input of MAX038 controls the duty cycle of the waveform. By using a switch, it is possible to either enable or disable the 50% fixed duty cycle. If enabled, the duty cycle can be adjusted by a potentiometer. The type of output waveform can be selected from a "FUNCTION" switch which is a 3-position rotary switch. The common of the switch is driven HIGH, while the two inputs of MAX038- A0 and A1 are pulled LOW with 10K resistors. When both inputs A0 and A1 are '0': the output is square wave, when A0 is '1' and A1 is '0': the output is triangular waveform and when A1 is '1' and A0 is '0': the output is sine wave. The output is buffered with LT1364 operational amplifier that can linearly amplify the waveform up to 5Vpp. The peak to peak amplitude is also controlled a potentiometer. By default, the output waveform is symmetrical to the ground. DC offset can be added to the output by a switch "DC OFFSET ". The DC offset is also controlled by a potentiometer. Finally the output is connected to a BNC connector for external use. Results and discussion: After the completion of design and fabrication of the function generator, its performance was tested in terms of nature of the waveform, its amplitude and the time interval by a CRO, which are at a good level of satisfaction. The type of the function (sine, square and triangle) which appears on the CRO screen exactly matches with what LCD shows. The frequency shown by the function generator s LCD is tested by a CIE122 model multimeter, as well as with a digital CRO, the frequency value on the LCD exactly matches with the multimeter value as well as with digital CRO value. Below figures 7a, 7b, 7c, 7d, 7e and 7f are evidence for the function generator s performance. In

Design and Fabrication of High Frequency Linear Function Generator with Digital Frequency Counter using MAX038 and a PIC microcontroller 268 the figure, CRO shows the type of the waveform selected and multimeter shows the frequency in KHz that matches with function generator s LCD display in terms of Hz. 7a. Function generator at a frequency of 1hz (sinusoidally oscillating dot on the CRO screen) Multimeter shows 0.001KHz, LCD shows 1Hz 7b. Function generator at a frequency of 147 hz (Function: square wave on the CRO screen) Multimeter shows 0.147KHz, LCD shows 147Hz 7c. Function generator at a frequency of 1Khz (Function: sinusoidal wave on the CRO screen) Multimeter shows 1.000 KHz, LCD shows 1000 Hz 7d. Function generator at a frequency of 10.68 Khz (Function: square wave with variable duty cycle on the CRO screen) Multimeter shows 10.68KHz, LCD shows 10674 Hz

P. KanakaRaju and M. PurnaChandra Rao 269 7e. Function generator at a frequency of 1Mhz (Function: sinusoidal wave on the CRO screen) Multimeter shows 1000 KHz, LCD shows 1000008 Hz 7f. Function generator at a frequency of 17.38Mhz (Function: sinusoidal wave on the CRO screen) LCD shows 17 337 153 Hz Below graph shows a plot of obtained frequency {log (of)} compared with the standard frequency {log (sf)} at 15 events, both are tracking each other. Thus the designed function generator working with almost nil error. log (sf) 8 7 6 5 4 3 2 1 0 Standred Frequency Obtained frequency -1-1 0 2 4 6 8 10 12 14 16 18 Number of events Graph: Obtained frequency {log (of)} compared with the standard frequency{log (sf)} at 15 events 8 7 6 5 4 3 2 1 0 log (of)

Design and Fabrication of High Frequency Linear Function Generator with Digital Frequency Counter using MAX038 and a PIC microcontroller 270 Conclusion: This paper describes the design and fabrication of low cost function generator useful for research and educational purpose. It is very easy to operate between the desired frequency and amplitude. The front panel controls are user friendly. Experimental results showed that the signal generator is of high precision, small size, and convenient and stable in use However, when the output frequency increases to 10 MHz, the amplitude begins to decay due to bandwidth limitations of the ic LT1364. Further improvements are needed. References [1] http://cds.linear.com/docs/en/datasheet/13645fa.pdf [2] https://www.fairchildsemi.com/datasheets/ne/ne5532.pdf [3] http://pdfserv.maximintegrated.com/en/ds/max038.pdf [4] http://microrato.ua.pt/main/actividades/estagios/docs/pic16f87x.pdf [5] C. F. Coombs, "Electronic Instrument Handbook," McGraw-Hill, Inc., New York, 1995. [6] Jian Qi,1 Qun Sun, 1 Xiaoliang Wu, 2 Chong Wang, 1 and Linlin Chen 1, Design and Analysis of a Low Cost Wave Generator Based on Direct Digital Synthesis. [7] Xian Qin Han, Xiang Lei Zhu, Multi-Signal Generator Design. [8] Patrick O. Olabisi 1, B. J. Olufeagba 2, Step-Wise Approximation Technique in the Design of a Function Generator. [9] Y. Sun, J. Lu, S. Liu, and H. Ben, Design of sinusoidal signal generator based on AD9833 and potentiometer, Electrical Measurement & Instrumentation, vol. 7, pp. 93 96,2012.