SlideShare a Scribd company logo
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 3057
On design and realization of digitally programmable square-wave
generator
Faroze Ahmad
Department of Electronics and Communication Engineering Islamic University of Science and Technology (IUST)
Awantipora-192122, Pulwama India
----------------------------------------------------------------------------------***----------------------------------------------------------------------------
Abstract: This paper presents a simple and low-cost digitally
tuned square-wave generator using few components. The
behavior of proposed circuit was tested in hardware
implementation. The results obtained are satisfactory to its
theoretical calculations.
Key words: Square wave generator, operational amplifier,
binary weighted resistors, analog switches.
1. INTRODUCTION
Square wave signals find application in various electronic
systems. Digitally tuning the output frequency of square-wave
generators, offer flexibility when used with digital machines.
Circuits of this type have not been popularly discussed in
literature. Abuelma’atti et al in [1], proposed a circuit
employing various activedevicesthus makingoutputfrequency
more sensitive to temperature variations. Another circuit was
proposed by Ali et al in 1994 [2], where in the the effect of
temperature can be compensated by using an analog to digital
(A/D) converter and microcontroller. Both the circuits,
proposed in [1] and [2], show hardware complexiy but have an
advantage of monolithic fabrication. Therearesituations where
accuracy, high speed andmonolithic fabricationarenottheonly
considerations but simplicity and low cost of circuits are
demanded. In view of lack of significant work carriedoutinthis
direction, a very simple and low-cost circuit is presented.
2. PROPOSED CIRCUIT
The conventional non-programmable, operational amplifier
based, circuit for square wave generator is shown in Fig.1. The
frequency of oscillation is given by [3]
fo=1/{2RfCloge[(2R1+R2)/R2]} (1)
and if R2=1.16R1, then
fo=1/2RfC (2)
Fig.1: Non- programmable square wave generator
In the proposed circuit the resistor Rf is replaced with binary
weighted resistor network. Any one of the feedback resistors
(R, 2R, 4R) can be connected by turning on analog switches by
the application of the binary code at b2 b1 b0.
Fig.2: Proposed programmable square wave circuit
For example, when 001 is applied, only one switchisclosedand
therefore only one resistor i.e. 4R is connected and hence a
particular frequency is generated. Similarly for every different
code, except 000, a different frequency values can be achieved.
At 000 all the switches are open and therefore the feedback
path is not closed. If n is the code length, the number of
frequencies (N) is equal to
N = 2n -1 (3)
Now choosing R2=1.16R1, the frequency of oscillation is given
by
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 3058
fo= 1/2ReqC (4)
where Req is calculated as follows
1/Req = [(b0/4R)+(b1/2R)+(b2/R)] (5)
3. EXPERIMENTAL RESULTS
The workability of the circuit was tested in hardware using off
the shelf components. General purpose operational amplifier
IC741 was used within ±10V power supply and CD4066 as
analog switches. The capacitor value chosen was 0.047µf and
the binary weighted network was implemented using three
preset resistors, tuned to 20K, 10K and 5K ohms. The on
resistance (~125Ω) of switches wasnottakenintoaccount.The
circuit was implemented only for 3-bit code word and seven
different frequencies were obtained at different code words
from 001 to 111 as shown in Fig.3. The frequencies obtained
against the resistances corresponding to binary values are
given in table and in Fig. 4(a).
(a) b2 =0b1=0 b0=1 (fo=.515 KHz)
(b) b2 =1b1=1 b0 =1 (fo=3.573 KHz)
Fig. 3: Waveforms generated by proposed circuit
Oscilloscope time scale=500µs
Table
Binary
b2 b1
b0
Resistance
(KΩ)
Calculated
Frequency
fo (KHz)
Measured
Frequency
fo (KHz)
0 0 1 20 .532 .515
0 1 0 10 1.064 1.033
0 1 1 6.6 1.612 1.567
1 0 0 5 2.128 2.057
1 0 1 4 2.660 2.562
1 1 0 3.33 3.195 3.065
1 1 1 2.85 3.733 3.573
Capacitor value=47nf=0.047microfarad
Fig. 4(a)
Fig. 4(b)
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 3059
As depicted from Fig 4(b), the percentage of error increases
between the theoretically and practically obtained frequencies,
as the resistance decreases. This can be kept small by choosing
high slew rate operational amplifier andtakingintoaccountthe
on resistance of the analog switches while theoretical
calculation.
4. CONCLUSION
A simple square wave generatorwithdigital tuningispresented
in this paper. The circuit uses only one operational amplifier,
and few active and passive components, which makes it
economical for low cost systems.
REFERENCES
[1] M.T Abuelma’atti, Wafa Abdul Rahman
Almansouri and Khaled Muhammad Alruwaihi,
“Digitally programmableactive-R squarewavegenerator,”IEEE
transactions on Instrumentations and measurement, vol. 39.
No.3, pp. 527-530, June 1990.
[2] A.R. Al-Ali, M.T. Abuelma’atti and A. Naveed, “Self-tuned
programmable active-R square wave generator,” IEEE
transactions on instrumentation and measurement, vol 43, No.
3, pp. 499-501, June 1994.
[3] Ramakant A. Gayakward, “Op-Amps and linear integrated
circuits,” Fourth Edition, Pearson Education.
BIOGRAPHY
Faroze Ahmad received M.Sc. and Ph.D in Electronics in 2000
and 2007 respectively from University of Kashmir, Srinagar,
India. He is presently serving as Assistant Professor in E&C
Engineering at Islamic University of Science and Technology
(IUST) Awantipora, J&K India. The major areas of research
include Message Encryption and Spread Spectrum
Communication System.

More Related Content

PPT
Renewable energy course#02
PPT
Renewable energy course#02 gen
PDF
A Parallel, Energy Efficient Hardware Architecture for the merAligner on FPGA...
DOCX
Eerf 6396 microwave design
PDF
Three phase grid connected inverter using current
PPTX
Economic dispatch dengan iterasi lamda secara manual dan mathlab
PDF
transcript
PDF
IRJET- Implementation of Recursive Digital Sinusoidal Signal Generator of...
Renewable energy course#02
Renewable energy course#02 gen
A Parallel, Energy Efficient Hardware Architecture for the merAligner on FPGA...
Eerf 6396 microwave design
Three phase grid connected inverter using current
Economic dispatch dengan iterasi lamda secara manual dan mathlab
transcript
IRJET- Implementation of Recursive Digital Sinusoidal Signal Generator of...

Similar to On Design and Realization of Digitally Programmable Square-Wave Generator (20)

PDF
IRJET - Realization of Power Optimised Carry Skip Adder using AOI Logic
PDF
Design and analysis of reduced size conical shape
PDF
IRJET- Improving Performance of Circularly Polarized Patch Antenna by Varying...
PDF
Miniaturized Cavity Backed Substrate Integrated Waveguide Antenna for Ku-Band...
PDF
IRJET- Design of Memristor based Multiplier
PDF
Design of multiband microstrip patch antenna for wireless application
PDF
Development of Compact P-Band Vector Reflectometer
PDF
Designing a microstrip patch antenna - operating at 1.518Ghz.
PDF
IRJET- Simulation and Performance Estimation of BPSK in Rayleigh Channel ...
PDF
IRJET- Fin FET Two Bit Comparator for Low Voltage, Low Power, High Speed and ...
PDF
Design and Analysis of Fractal Antenna
PDF
Performance Analysis of microstrip antenna and its array for 2.4ghz application
PDF
Analysis and Gain Enhancement of Different Shapes of Shapes of Microstrip Pa...
PDF
Design and Development of Treadmill to Generate Electricity by Using Mechanic...
PDF
IRJET- The Acoustical Study of Large Auditorium
PDF
Re-Configurable Microstrip Patch Antenna Applicable for Ultra Wide (UW) Band
PDF
IRJET- Development of General Purpose Controller Board
PDF
A VSAT LINK MARGIN CALCULATION A TURBO-C PROGRAMME
PDF
IRJET- Design & Analysis of Microstrip Antenna in Spiral Structure for Me...
PDF
Design of Ku-band power divider using Substrate Integrated Waveguide technique
IRJET - Realization of Power Optimised Carry Skip Adder using AOI Logic
Design and analysis of reduced size conical shape
IRJET- Improving Performance of Circularly Polarized Patch Antenna by Varying...
Miniaturized Cavity Backed Substrate Integrated Waveguide Antenna for Ku-Band...
IRJET- Design of Memristor based Multiplier
Design of multiband microstrip patch antenna for wireless application
Development of Compact P-Band Vector Reflectometer
Designing a microstrip patch antenna - operating at 1.518Ghz.
IRJET- Simulation and Performance Estimation of BPSK in Rayleigh Channel ...
IRJET- Fin FET Two Bit Comparator for Low Voltage, Low Power, High Speed and ...
Design and Analysis of Fractal Antenna
Performance Analysis of microstrip antenna and its array for 2.4ghz application
Analysis and Gain Enhancement of Different Shapes of Shapes of Microstrip Pa...
Design and Development of Treadmill to Generate Electricity by Using Mechanic...
IRJET- The Acoustical Study of Large Auditorium
Re-Configurable Microstrip Patch Antenna Applicable for Ultra Wide (UW) Band
IRJET- Development of General Purpose Controller Board
A VSAT LINK MARGIN CALCULATION A TURBO-C PROGRAMME
IRJET- Design & Analysis of Microstrip Antenna in Spiral Structure for Me...
Design of Ku-band power divider using Substrate Integrated Waveguide technique
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
PDF
Kiona – A Smart Society Automation Project
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
PDF
Breast Cancer Detection using Computer Vision
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
Kiona – A Smart Society Automation Project
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
BRAIN TUMOUR DETECTION AND CLASSIFICATION
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
Breast Cancer Detection using Computer Vision
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Ad

Recently uploaded (20)

DOCX
573137875-Attendance-Management-System-original
PPTX
web development for engineering and engineering
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
composite construction of structures.pdf
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Construction Project Organization Group 2.pptx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPT
Project quality management in manufacturing
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Lecture Notes Electrical Wiring System Components
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Sustainable Sites - Green Building Construction
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPT
Mechanical Engineering MATERIALS Selection
573137875-Attendance-Management-System-original
web development for engineering and engineering
CYBER-CRIMES AND SECURITY A guide to understanding
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
composite construction of structures.pdf
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Construction Project Organization Group 2.pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Project quality management in manufacturing
additive manufacturing of ss316l using mig welding
Lecture Notes Electrical Wiring System Components
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
UNIT 4 Total Quality Management .pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Sustainable Sites - Green Building Construction
bas. eng. economics group 4 presentation 1.pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Mechanical Engineering MATERIALS Selection

On Design and Realization of Digitally Programmable Square-Wave Generator

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 3057 On design and realization of digitally programmable square-wave generator Faroze Ahmad Department of Electronics and Communication Engineering Islamic University of Science and Technology (IUST) Awantipora-192122, Pulwama India ----------------------------------------------------------------------------------***---------------------------------------------------------------------------- Abstract: This paper presents a simple and low-cost digitally tuned square-wave generator using few components. The behavior of proposed circuit was tested in hardware implementation. The results obtained are satisfactory to its theoretical calculations. Key words: Square wave generator, operational amplifier, binary weighted resistors, analog switches. 1. INTRODUCTION Square wave signals find application in various electronic systems. Digitally tuning the output frequency of square-wave generators, offer flexibility when used with digital machines. Circuits of this type have not been popularly discussed in literature. Abuelma’atti et al in [1], proposed a circuit employing various activedevicesthus makingoutputfrequency more sensitive to temperature variations. Another circuit was proposed by Ali et al in 1994 [2], where in the the effect of temperature can be compensated by using an analog to digital (A/D) converter and microcontroller. Both the circuits, proposed in [1] and [2], show hardware complexiy but have an advantage of monolithic fabrication. Therearesituations where accuracy, high speed andmonolithic fabricationarenottheonly considerations but simplicity and low cost of circuits are demanded. In view of lack of significant work carriedoutinthis direction, a very simple and low-cost circuit is presented. 2. PROPOSED CIRCUIT The conventional non-programmable, operational amplifier based, circuit for square wave generator is shown in Fig.1. The frequency of oscillation is given by [3] fo=1/{2RfCloge[(2R1+R2)/R2]} (1) and if R2=1.16R1, then fo=1/2RfC (2) Fig.1: Non- programmable square wave generator In the proposed circuit the resistor Rf is replaced with binary weighted resistor network. Any one of the feedback resistors (R, 2R, 4R) can be connected by turning on analog switches by the application of the binary code at b2 b1 b0. Fig.2: Proposed programmable square wave circuit For example, when 001 is applied, only one switchisclosedand therefore only one resistor i.e. 4R is connected and hence a particular frequency is generated. Similarly for every different code, except 000, a different frequency values can be achieved. At 000 all the switches are open and therefore the feedback path is not closed. If n is the code length, the number of frequencies (N) is equal to N = 2n -1 (3) Now choosing R2=1.16R1, the frequency of oscillation is given by
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 3058 fo= 1/2ReqC (4) where Req is calculated as follows 1/Req = [(b0/4R)+(b1/2R)+(b2/R)] (5) 3. EXPERIMENTAL RESULTS The workability of the circuit was tested in hardware using off the shelf components. General purpose operational amplifier IC741 was used within ±10V power supply and CD4066 as analog switches. The capacitor value chosen was 0.047µf and the binary weighted network was implemented using three preset resistors, tuned to 20K, 10K and 5K ohms. The on resistance (~125Ω) of switches wasnottakenintoaccount.The circuit was implemented only for 3-bit code word and seven different frequencies were obtained at different code words from 001 to 111 as shown in Fig.3. The frequencies obtained against the resistances corresponding to binary values are given in table and in Fig. 4(a). (a) b2 =0b1=0 b0=1 (fo=.515 KHz) (b) b2 =1b1=1 b0 =1 (fo=3.573 KHz) Fig. 3: Waveforms generated by proposed circuit Oscilloscope time scale=500µs Table Binary b2 b1 b0 Resistance (KΩ) Calculated Frequency fo (KHz) Measured Frequency fo (KHz) 0 0 1 20 .532 .515 0 1 0 10 1.064 1.033 0 1 1 6.6 1.612 1.567 1 0 0 5 2.128 2.057 1 0 1 4 2.660 2.562 1 1 0 3.33 3.195 3.065 1 1 1 2.85 3.733 3.573 Capacitor value=47nf=0.047microfarad Fig. 4(a) Fig. 4(b)
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 3059 As depicted from Fig 4(b), the percentage of error increases between the theoretically and practically obtained frequencies, as the resistance decreases. This can be kept small by choosing high slew rate operational amplifier andtakingintoaccountthe on resistance of the analog switches while theoretical calculation. 4. CONCLUSION A simple square wave generatorwithdigital tuningispresented in this paper. The circuit uses only one operational amplifier, and few active and passive components, which makes it economical for low cost systems. REFERENCES [1] M.T Abuelma’atti, Wafa Abdul Rahman Almansouri and Khaled Muhammad Alruwaihi, “Digitally programmableactive-R squarewavegenerator,”IEEE transactions on Instrumentations and measurement, vol. 39. No.3, pp. 527-530, June 1990. [2] A.R. Al-Ali, M.T. Abuelma’atti and A. Naveed, “Self-tuned programmable active-R square wave generator,” IEEE transactions on instrumentation and measurement, vol 43, No. 3, pp. 499-501, June 1994. [3] Ramakant A. Gayakward, “Op-Amps and linear integrated circuits,” Fourth Edition, Pearson Education. BIOGRAPHY Faroze Ahmad received M.Sc. and Ph.D in Electronics in 2000 and 2007 respectively from University of Kashmir, Srinagar, India. He is presently serving as Assistant Professor in E&C Engineering at Islamic University of Science and Technology (IUST) Awantipora, J&K India. The major areas of research include Message Encryption and Spread Spectrum Communication System.