An 8-bit differential SAR ADC with a first-order error-feedback noise-shaping loop. After each conversion, a switched-capacitor amplifier (gain 30) stores the residue left on the capacitive DAC on a residue capacitor. That charge is shared back onto the DAC during the next conversion, which pushes quantisation noise to high frequencies. When the 8 kS/s output is averaged by 8 in software (sinc² decimation), the result is about 11.5 to 11.9 effective bits at 1 kS/s in simulation, against 7.5 bits for the plain SAR.
VCM,
and the sampling instant is when the top-plate switch opens.clkDEM_OFF (ui_in[4]) = 1
holds the pointer at 0 (fixed capacitor map), so DEM can be compared on and off on the same chip. In simulation with the
extracted CDAC (top-metal straps included), DEM gives 11.3 vs 10.1 effective bits for a slow (7.8 Hz) input and no
difference at 242 Hz.NS_EN (ui_in[0]) switches the noise-shaping loop on (1) or off (0: plain 8-bit SAR)AMP_SHARE (ui_in[1]) selects the comparator front end: 0 = its own preamplifier for the bit decisions and the
cascode amplifier only for the residue; 1 = the cascode amplifier does both (the preamplifier stays off)IBIAS sets both the comparator and the amplifier biasui_in[2] SCAN_EN, ui_in[3] SCAN_IN, uio_out[1] SCAN_OUT)
and a buffered copy of every comparator decision on uio_out[2] (COMP_OUT)This chip extends our earlier ttsky26c submission
(ttsky26c_ns_sar_adc). That chip held only the 8-bit SAR
core, with DEM and noise shaping left out, to verify the basic conversion path in silicon. This version adds the
noise-shaping loop, enables DEM, and moves clock, reset and enable to the Tiny Tapeout clk, rst_n and ena pins.
VREF_P = 1.8 V, VREF_N = 0 V, VCM = 0.9 V; full scale ±1.8 V differentialIBIASVREF_P = 1.8 V, VREF_N = 0 V and VCM = 0.9 V.IBIAS (ua[5]) with a current sink to ground. The pin sits at about 0.66–0.98 V. The chip
mirrors this current into 5 µA for the comparator and 83 nA for the residue amplifier. A resistor to ground also
works, but the current then varies with the pin voltage.V_P / V_N around 0.9 V. Full scale is ±1.8 V differential; keep the input to
about 0.9 × full scale, which leaves room for the noise-shaping loop.clk at 96 kHz, giving 8 kS/s. Set ena high and release rst_n.ui_in[0] (NS_EN) high for noise shaping, and ui_in[1] (AMP_SHARE) to choose the comparator front end.
Both are read once per conversion, so change them between conversions. Drive ui_in[4] (DEM_OFF) low for DEM
(normal use) or high to switch DEM off; it takes effect at the next sampling phase (the pin has no pull-down).uo_out[7:0] on each falling edge of uio_out[0] (EOC), or any time while EOC is high after the first
~10 ns: the 8 bits change on the same clock edge that raises EOC, ~1 ns apart, so a read on the rising edge can
catch a mix of the old and new code. The word then holds for 12 clock periods. The first conversion after reset is
not valid.ui_in[2] (SCAN_EN) low in normal use (the pin has no pull-down). uio_out[2] (COMP_OUT) shows each bit
decision live: during the 8 trials it changes about 0.3 µs after each falling edge of clk and holds until the next
decision.SCAN_EN = 1 shifts all 47 controller flops by one stage per clk period (ena and rst_n high). Change SCAN_EN and
SCAN_IN only while clk is low (at least 0.5 µs after it falls); read SCAN_OUT while clk is low. SCAN_EN = 0 for one
clk period is one normal controller step (capture). Chain order from SCAN_IN to SCAN_OUT (each bus MSB first):
share_reg, ns_reg, state[3:0], dat[7:0], b_reg[7:0], cpw[7:0], cnw[7:0], eoc_reg, cpc_reg, cnc_reg, vcm_b, ptr[2:0],
smp_q, vcm_a (= SCAN_OUT). ptr is the DEM pointer. Example: load a trial state with a chosen CDAC word, hold clk to freeze the CDAC for a DC
input sweep, capture one step to latch the comparator decision into dat, shift it out.
| Pin | Signal | Description |
|---|---|---|
ua[0] |
V_N |
Negative input, 0–1.8 V |
ua[1] |
V_P |
Positive input, 0–1.8 V |
ua[2] |
VCM |
Common-mode voltage, 0.9 V |
ua[3] |
VREF_P |
Positive reference, 1.8 V |
ua[4] |
VREF_N |
Negative reference, 0 V |
ua[5] |
IBIAS |
Bias reference, 1 µA drawn out of the pin |
clk |
CLK | Conversion clock, 96 kHz |
ena |
EN | Enable |
rst_n |
RSTN | Active-low reset |
ui_in[0] |
NS_EN |
1 = noise shaping on, 0 = plain 8-bit SAR |
ui_in[1] |
AMP_SHARE |
0 = separate preamplifier, 1 = shared cascode amplifier |
uo_out[7:0] |
B[7:0] |
Conversion result |
uio_out[0] |
EOC |
End of conversion |
ui_in[2] |
SCAN_EN |
Scan enable (debug), keep low in normal use |
ui_in[3] |
SCAN_IN |
Scan data in (debug) |
ui_in[4] |
DEM_OFF |
1 = DEM off (fixed capacitor map), 0 = DEM on |
uio_out[1] |
SCAN_OUT |
Scan data out (debug) |
uio_out[2] |
COMP_OUT |
Comparator decision, buffered (debug) |
uo_out[7:0] on EOC.| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | NS_EN | B0 | EOC |
| 1 | AMP_SHARE | B1 | SCAN_OUT |
| 2 | SCAN_EN | B2 | COMP_OUT |
| 3 | SCAN_IN | B3 | |
| 4 | DEM_OFF | B4 | |
| 5 | B5 | ||
| 6 | B6 | ||
| 7 | B7 |
ua | PCB Pin | Internal index | Description |
|---|---|---|---|
| 0 | K | 5 | V_N |
| 1 | C | 0 | V_P |
| 2 | J | 4 | VCM |
| 3 | D | 1 | VREF_P |
| 4 | G | 3 | VREF_N |
| 5 | F | 2 | IBIAS |