Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
university:courses:electronics:electronics-lab-19 [13 Nov 2012 16:52] – [19.1 The switched capacitor resistor:] Doug Merceruniversity:courses:electronics:electronics-lab-19 [24 Jul 2017 16:05] – change amplitude value to peak-peak Antoniu Miclaus
Line 52: Line 52:
  
 ===== Materials: ===== ===== Materials: =====
-Analog Discovery Lab hardware\\+ADALM2000 Active Learning Module\\
 Solder-less breadboard\\ Solder-less breadboard\\
 Jumper wires\\ Jumper wires\\
Line 67: Line 67:
 ===== Directions: ===== ===== Directions: =====
  
-The breadboard connections are as shown in figure 4. If you are using the power supplies from the Discovery hardware be sure that they are turned off while you construct the circuit. The scope inputs should be connected to measure the input and output of the RC filter. The circuit will operate from the +/- 5V supplies provided from the Discovery board but better performance will be observed if a +/- 5V bench power supply is used. A +/- 5V square wave digital signal from AWG2 drives the CD4007 inverter input at pin 6 and the gate of switch devices M<sub>5</sub> and M<sub>6</sub>. The inverted output at pins 8,13 drives the gates of switch devices M<sub>3</sub> and M<sub>4</sub>.+The breadboard connections are as shown in figure 4. If you are using the power supplies from the ADALM2000 hardware be sure that they are turned off or disconnected while you construct the circuit. The scope inputs should be connected to measure the input and output of the RC filter. The circuit will operate from the +/- 5V supplies provided from the ADALM2000 board but better performance will be observed if a +/- 5V bench power supply is used. A +/- 5V square wave digital signal from AWG2 drives the CD4007 inverter input at pin 6 and the gate of switch devices M<sub>5</sub> and M<sub>6</sub>. The inverted output at pins 8,13 drives the gates of switch devices M<sub>3</sub> and M<sub>4</sub>.
  
 {{ :university:courses:electronics:a19_f4.png?550 |}} {{ :university:courses:electronics:a19_f4.png?550 |}}
Line 75: Line 75:
 ===== Hardware Setup: ===== ===== Hardware Setup: =====
  
-Waveform generator W1 should be configured as a 100 Hz sine wave with a 500 mV amplitude and zero offset to start out. Waveform generator W2 should be configured as a 100 KHz square wave with a V amplitude and zero offset. Scope channel 1 should be connected to the input of the filter and Scope channel 2 should be connected to the output of the filter. +Waveform generator W1 should be configured as a 100 Hz sine wave with a mV amplitude and zero offset to start out. Waveform generator W2 should be configured as a 100 KHz square wave with a 10 V amplitude and zero offset. Scope channel 1 should be connected to the input of the filter and Scope channel 2 should be connected to the output of the filter. 
  
 ===== Procedure: ===== ===== Procedure: =====
  
 Turn on the power supplies and enable both AWG channels. Using the oscilloscope display observe the output amplitude of the filter relative to the input as you change the input frequency, AWG1. Also note any changes in the output amplitude as you change the switching frequency by adjusting the frequency of AWG2. Turn on the power supplies and enable both AWG channels. Using the oscilloscope display observe the output amplitude of the filter relative to the input as you change the input frequency, AWG1. Also note any changes in the output amplitude as you change the switching frequency by adjusting the frequency of AWG2.
-Stop and close the Oscilloscope screen and now open the Network Analyzer instrument ( Bode plotter ). You will need to disable AWG channel 1 on the waveform generator screen but keep channel 2 enabled and set to 100 KHz, V amplitude, zero offset as it was previously. Set up the Analyzer to sweep the filter input from 100 Hz to 10 KHz. Run sweeps with AWG2 set to 100 KHz, 200 KHz and 500 KHz. Export the data for each sweep to a .csv file and using a spreadsheet program like Excel make plots of the amplitude and phase vs. frequency similar to the plots in figure 5 and 6.+Stop and close the Oscilloscope screen and now open the Network Analyzer instrument ( Bode plotter ). You will need to disable AWG channel 1 on the waveform generator screen but keep channel 2 enabled and set to 100 KHz, 10 V amplitude, zero offset as it was previously. Set up the Analyzer to sweep the filter input from 100 Hz to 10 KHz. Run sweeps with AWG2 set to 100 KHz, 200 KHz and 500 KHz. Export the data for each sweep to a .csv file and using a spreadsheet program like Excel make plots of the amplitude and phase vs. frequency similar to the plots in figure 5 and 6.
  
 {{ :university:courses:electronics:a19_f5.png?550 |}} {{ :university:courses:electronics:a19_f5.png?550 |}}
Line 114: Line 114:
 ===== Description: ===== ===== Description: =====
  
-A switched capacitor differential to single ended configuration is shown in figure 8. Build this circuit on your solder-less breadboard using two of the three SPDT analog switches in the CD4053. V<sub>DD</sub> of the CD4053 should be connected to the +5 V power supply ( Vp ) and V<sub>EE</sub> connected to the -5 V power supply ( Vn ) and finally with V<sub>SS</sub> connected to ground. The differential inputs, V<sub>IN $s$+$s$</sub> and V<sub>IN $s$-$s$</sub> should be connected to the waveform generator outputs AWG1 and AWG2 respectively. The single ended output, VOUT should be connected to scope channel 1+.+A switched capacitor differential to single ended configuration is shown in figure 8. Build this circuit on your solder-less breadboard using two of the three SPDT analog switches in the CD4053. V<sub>DD</sub> of the CD4053 should be connected to the +5 V power supply ( Vp ) and V<sub>EE</sub> connected to the -5 V power supply ( Vn ) and finally with V<sub>SS</sub> connected to ground. The differential inputs, V<sub>IN+</sub> and V<sub>IN -</sub> should be connected to the waveform generator outputs AWG1 and AWG2 respectively. The single ended output, V<sub>OUT</sub> should be connected to scope channel 1+.
  
 Switch control signals for both switches A and B should both be connected to digital pin DIO 0. Be sure to connect the inhibit input ( pin 6 ) to ground to enable all the switches. It is probably also a good idea to ground the unused C control input as well. Switch control signals for both switches A and B should both be connected to digital pin DIO 0. Be sure to connect the inhibit input ( pin 6 ) to ground to enable all the switches. It is probably also a good idea to ground the unused C control input as well.
Line 128: Line 128:
 ===== Procedure: ===== ===== Procedure: =====
  
-Start with AWG1 and AWG2 both set up for sine waves with equal amplitudes of 500 mV and zero offset but with AWG2 set with 180 degree phase. This will result with a differential signal with V amplitude ( 2 V peak to peak ). Observe the signal at the output and record the minimum and maximum values along with the DC ( average ) value of the output.+Start with AWG1 and AWG2 both set up for sine waves with equal amplitudes of 500 mV and zero offset but with AWG2 set with 180 degree phase. This will result with a differential signal with V amplitude ( 2 V peak to peak ). Observe the signal at the output and record the minimum and maximum values along with the DC ( average ) value of the output.
  
 Repeat these measurements with the DC offset of both AWG1 and AWG2 set to 250 mV, 500 mV, -250 mV and -500 mV. Repeat these measurements with the DC offset of both AWG1 and AWG2 set to 250 mV, 500 mV, -250 mV and -500 mV.
Line 135: Line 135:
  
 Add questions here: Add questions here:
 +
 +===== For Further Reading =====
 +
 +http://en.wikipedia.org/wiki/Switched_capacitor
 +
 +**Return to Lab Activity [[university:courses:electronics:labs|Table of Contents]]**
  
university/courses/electronics/electronics-lab-19.txt · Last modified: 23 Aug 2019 13:52 by Antoniu Miclaus