Interface Electronics
Laboratory 03: Sample and Hold Cyclic R2R
Prof. Jörg Vollrath
Start 1.12.2025
|
|
Overview
- Arduino Platform
DAC Analysis
NodeEEBench
- Sample and Hold and cyclic R2R schematic
- Breadboard wiring
- Breadboard Realization
- Timing diagram control signals
- Operation with DAC Analysis software
- Operation with NodeEEBench software
- INL, DNL, SNR measurement
- Investigations
This is a laboratory to measure a cyclic R2R DAC.
Platform Hardware
Arduino (BASYS3, Rpi)
Breadboard, PMOD DA2, AD2
Scalable R2R DAC, (8-Bit R2R DAC, C serial DAC, Rstring, Interpolating DAC)
(SAR ADC, pipeline ADC)
|


|
Platform Operation
Github download zip file an unpack to C:\temp:
https://github.com/JVollrath/NodeEEBench
Program Arduino (Configure SAMD board, COM, lib):
"C:\temp\NodeEEBench\Arduino\EEBench\EEBench.ino“
Wiring: AWG DA0- C1 A1, AWG R2R DAC – C2 A2, AWG PMOD DA2 – C3 A3, AWG R2R DAC – C4 PMOD AD2
- Start Server: "C:\temp\NodeEEBench\NodeEEBench.bat"
- Observe Command window
- Browser: localhost:3000
|

|
Default wiring:
AWG: DAC0 pin, PMOD DA2 Pin 1, R2R DAC
FFT is not very stable due to faulty data transfer
Measure: Sine Weaveform, FFT
- Tab AWG: Amplitude 1.5 V, Offset 1.65 V, „Run“
- Tab OSC: „Run“, Time Base 20ms/div,
- Tab FFT: „Run“ (Bleeding: change Time Base)
- AWG1: Signal: frequency, magnitude Total noise magnitude ENOB = xx Bit
- DA0 C1, R2R C2, PMOD DA2 C3, R2R C4, PMOD DA2 C4
|
|
FFT is not very stable due to faulty data transfer
Measure: Ramp test
- Connect all oscilloscope channels to R2R output:
Check waveforms and FFT, DNR
- Stop: OSC, FFT
- Tab: Ramp Test INL, DNL: Step 16, Start 0, End 3840
Report DNL and INL
- Compare with FFT measurement
|
|
Cyclic R2R DAC Schematic
The schematic shows a cyclic R2R DAC.
The output goes to buffer amplifier and SH to generate sa0.
This level can be fed back to the left input SH.
The final value is sampled on the right and gives Vout.
|

The resolution NBit can be controlled via software.
|
It is easy to scale this architecture via software.
Tradeoff between timing and resolution.
90 min from schematic to Breadboard.
At the start once a D = 0000 can be set for intialization.
This is not mandatory.
In the LTSPICE schematic a samplez signal connects the input to gnd.
An Arduino pin could be used for initialization having tri state as input and 0V, gnd as output.
Capacitance: check CD4053, MCP6022 50 pF
Thermal Noise minimum capactitance:
NBit = 16, VFS = 3.3 V, Cmin = 20 pF, per additional bit factor 4 in C
NBit = 20, VFS = 3.3 V, Cmin = 5.3 nF
Bypass, decoupling capacitance: 1 uF, 0.1 uF = 100nF, 10 nF
Breadboard Realization
Do not remove any components!!
Build on extra breadboard and then connect!!
Wire connections
Arduino 0 R2
Arduino 1 R3
Arduino 2 R4
Arduino 3 R5
Arduino 4 CD4016 6 signal C
Arduino 5 CD4016 5 signal B
Arduino 6 CD4016 13 signal A
(Arduino 7 CD4016 12 signal D)
CD4016 1 MCP6024 14 sa0
CD4016 2 MCP6024 10 sa2
CD4016 3 MCP6024 7 Bin
CD4016 4 MCP6024 12 In+
CD4016 7 GND
CD4016 8 MCP6024 14
CD4016 9 MCP6024 3
CD4016 14 VCC
MCP6024 1 MCP6024 2 sa6
MCP6024 2 R6 sa6
MCP6024 4 GND??
MCP6024 6 MCP6024 7
MCP6024 8 MCP6024 9 Vout
MCP6024 9 Arduino A1
MCP6024 11 VDD??
MCP6024 13 MCP6024 14
R7, R8, R9, C1, C2, C5
Breadboard System Realization
Add hardware cyclic R2R DAC
- VDD, GND
- D0, D1, D2, D3
- Switch A - Pin13 4016
- Switch B – Pin5 4016
- Switch C – Pin6 4016
- OSC Pin 8 MCP604
Arduino
Sketch:
"C:\temp\NodeEEBench\Arduino\"
"EEBenchCyclicR\EEBenchCyclicR.ino"
|

|
Verify Operation
- AWG Sine signal
- Oscilloscope picture
Electronic Explorer control and internal signals
- FFT
- INL, DNL ramp
Investigation Challenges
- Amplifier, switch, sample and hold (SH)
Voltage: VDD, 5 V, 3V, GND
Timing: RC limit, sequence
Capacitance: resolution, bandwidth, leakage
Switch: Ron, Cout, CLK coupling
- Oscilloscope picture
Timing: sample, samplex, sampley, Vout, sa0
Sine signal transfer function from sa5 to Vout
Pulse signal (sample, sampley) and sa0, Vout
- INL, DNL ramp:
Good DAC signal for sa5 instead R2R.
Measure OP1B out, sa0, Vout
| Rx | Cx | activeS | offS | INL, DNL max 255 | INL, DNL max 1024 |
| | | | | |
| | | | | |
Functional Test Verification
- Arduino Download: .ino
- Start Server: .bat
- Connect Arduino pins to oscilloscope
- Ramp test
- Sine test
Investigations
- Operational Amplifier only
- Sample and Hold
- 8-Bit cyclic R2R DAC
- Delta R modification
- Ramp test
- Sine test
Report
More Data Converter Circuits
- 8-Bit R2R DAC
- Scalable C serial DAC
- Cyclic R2R DAC
- Cyclic interpolating DAC
- Cyclic folding pipeline ADC
- Cyclic R-string DAC
|

|
- 8-Bit R2R DAC: 8Bit_R2R_DAC.asc
- Scalable C serial DAC: Serial_CDAC.asc
- Scalable R2R DAC: ScaleR2RDAC.asc
- Scalable interpolating DAC: ScaleInterpolDAC.asc
- Scalable interpolating DAC SAR ADC: BlockCserialSARADC_01.asc
- Scalable folding pipeline ADC:
BlockFoldingPipeline.asc,
FolderOpAmp.asc
- 8 Bit mixed DAC: 8Bit_RLR2RMix_DAC2.asc
- Sigma Delta ADC (FPGA)
Old Breadboard Realization
Do not remove any components!!
Build on extra breadboard and then connect!!
Connections
D0-X0 R2R
D1 X1 R2R
D2 X2 R2R
D3 X3 R2R
4 C samplex CD4053 C pin 9
5 B sampley CD4053 C pin 10
6 A sample CD4053 C pin 11
Pin 1 CD4053 open
Pin 2 CD4053 sa4 Pin 3 MCP6022A
Pin 6 CD4053 Inhibit INH 0 V
Pin 7 CD4053 VEE 0 V
Pin 8 CD4053 VSS 0 V
Pin 16 CD4053 VDD 5 V
Pin 4 MCP6022 GND 0 V
Pin 7 MCP6022 VDD 5 V
Pin1 Pin2 MCP6022A
Pin 5 MCP6022B sa5 in/R2Rout
Pin 6 Pin 7 MCP6022 B
Old CTRL Signal Timing at Breadboard
switch closed for low
Sampling capacitances: C1, C2, C5 = 50 pF
Decoupling, bypass capacitances: CdecouplingIC = 70nF, Cdecouplingpower = 400 nF

Control signals for a 12-Bit cyclic R2R DAC
C1 orange sampling, C2 blue sampley, C3 red samplex
A new sample is acquired with: tcycle = 4.6 ms, fcycle = 200 Hz
For acquisition each cycle has the switch on 20 us and 5 us pause between
switch activations.
12 Bit acquisition takes 3 cycles with 2 switch operations
giving a total of 6*25us = 150 us