4位sar adc采用下图的CDAC,下面对其工作过程进行大致分析
V c m = 1 2 V r e f V_{cm}=\frac{1}{2}V_{ref} Vcm=21Vref, V − = V c m V_{-}=V_{cm} V−=Vcm,假设 11 16 V r e f < V i n < 12 16 V r e f \frac{11}{16}V_{ref}<V_{in}<\frac{12}{16}V_{ref} 1611Vref<Vin<1612Vref
分析过程:
step1:
ϕ 1 \phi_{1} ϕ1开关闭合,比较器同向端接Vin,反相端接Vcm,电容负端都接Vcm
Q = ( V i n − V c m ) ⋅ 8 C \begin{aligned} &Q=(V_{in}-V_{cm})\cdot8C \end{aligned} Q=(Vin−Vcm)⋅8C
V + − V − = V i n − V c m = V i n − V r e f 2 \begin{aligned}V_{+}-V_{-}&=V_{in}-V_{cm}\\&=V_{in}-\frac{V_{ref}}{2}\end{aligned} V+−V−=Vin−Vcm=Vin−2Vref
第1次: V i n V_{in} Vin与 V r e f 2 \frac{V_{ref}}{2} 2Vref两者进行比较,则比较器输出为高电平,即最高位D3=1
step2:
首先将开关
ϕ
1
\phi_{1}
ϕ1断开,因为最高位D3=1,所以电容4C的负端接gnd
根据电容上的电荷量相等,可得
( V + − 0 ) ⋅ 4 C + ( V + − V c m ) ⋅ 4 C = ( V i n − V c m ) ⋅ 8 C \begin{aligned} &(V_{+}-0)\cdot4C+(V_{+}-V_{cm})\cdot4C=(V_{in}-V_{cm})\cdot8C \end{aligned} (V+−0)⋅4C+(V+−Vcm)⋅4C=(Vin−Vcm)⋅8C
⇒ V + = V i n − 1 2 V c m \Rightarrow V_{+}=V_{in}-\frac{1}{2}V_{cm} ⇒V+=Vin−21Vcm
则
V
+
−
V
c
m
=
V
i
n
−
3
2
V
c
m
=
V
i
n
−
3
4
V
r
e
f
\begin{aligned} V_{+}-V_{cm}&=V_{in}-\frac{3}{2}V_{cm}\\ &=V_{in}-\frac{3}{4}V_{ref} \end{aligned}
V+−Vcm=Vin−23Vcm=Vin−43Vref
第2次:
V
i
n
V_{in}
Vin与
3
4
V
r
e
f
\frac{3}{4}V_{ref}
43Vref两者进行比较,则比较器输出为低电平,即次高位D2=0
step3:
因为次高位D2=0,所以电容2C的负端接Vref;电容4C的负端保持接gnd
根据电容上的电荷量相等,可得
( V + − 0 ) ⋅ 4 C + ( V + − V r e f ) ⋅ 2 C + ( V + − V c m ) ⋅ 2 C = ( V i n − V c m ) ⋅ 8 C \begin{aligned} &(V_{+}-0)\cdot4C+(V_{+}-V_{ref})\cdot2C+(V_{+}-V_{cm})\cdot2C=(V_{in}-V_{cm})\cdot8C \end{aligned} (V+−0)⋅4C+(V+−Vref)⋅2C+(V+−Vcm)⋅2C=(Vin−Vcm)⋅8C
⇒ V + = V i n − 1 4 V c m \Rightarrow V_{+}=V_{in}-\frac{1}{4}V_{cm} ⇒V+=Vin−41Vcm
则
V
+
−
V
c
m
=
V
i
n
−
5
4
V
c
m
=
V
i
n
−
5
8
V
r
e
f
\begin{aligned} V_{+}-V_{cm}&=V_{in}-\frac{5}{4}V_{cm}\\ &=V_{in}-\frac{5}{8}V_{ref} \end{aligned}
V+−Vcm=Vin−45Vcm=Vin−85Vref
第3次:
V
i
n
V_{in}
Vin与
5
8
V
r
e
f
\frac{5}{8}V_{ref}
85Vref两者进行比较,则比较器输出为高电平,即次低位D1=1
step4:
因为次低位D1=1,所以电容C的负端接gnd;电容2C的负端仍接Vref,电容4C的负端保持接gnd
根据电容上的电荷量相等,可得
( V + − 0 ) ⋅ 5 C + ( V + − V r e f ) ⋅ 2 C + ( V + − V c m ) ⋅ C = ( V i n − V c m ) ⋅ 8 C \begin{aligned} &(V_{+}-0)\cdot5C+(V_{+}-V_{ref})\cdot2C+(V_{+}-V_{cm})\cdot C=(V_{in}-V_{cm})\cdot8C \end{aligned} (V+−0)⋅5C+(V+−Vref)⋅2C+(V+−Vcm)⋅C=(Vin−Vcm)⋅8C
⇒ V + = V i n − 3 8 V c m \Rightarrow V_{+}=V_{in}-\frac{3}{8}V_{cm} ⇒V+=Vin−83Vcm
则
V
+
−
V
c
m
=
V
i
n
−
11
8
V
c
m
=
V
i
n
−
11
16
V
r
e
f
\begin{aligned} V_{+}-V_{cm}&=V_{in}-\frac{11}{8}V_{cm}\\ &=V_{in}-\frac{11}{16}V_{ref} \end{aligned}
V+−Vcm=Vin−811Vcm=Vin−1611Vref
第4次:
V
i
n
V_{in}
Vin与
11
16
V
r
e
f
\frac{11}{16}V_{ref}
1611Vref两者进行比较,则比较器输出为高电平,即最低位D0=1
所以4位sar adc输出数字码为D3D2D1D0=1011
小结
输入电压Vin首先与 1 2 V r e f \frac{1}{2}V_{ref} 21Vref进行比较,然后根据比较器输出结果(0或1)来选择下一个参考电压进行比较,当输出为1,则与 ( 1 2 + 1 4 ) V r e f (\frac{1}{2}+\frac{1}{4})V_{ref} (21+41)Vref进行比较,相应电容负端接gnd;若输出为0,则与 ( 1 2 − 1 4 ) V r e f (\frac{1}{2}-\frac{1}{4})V_{ref} (21−41)Vref进行比较,相应电容负端接Vref。依次类推,比较器输出结果就可以等效地控制参考电压的改变。
下图直观反映了4次比较的状态。
- 注意:
Vcm的值为 1 2 V r e f \frac{1}{2}V_{ref} 21Vref,考虑怎么提供 1 2 V r e f \frac{1}{2}V_{ref} 21Vref的电压给Vcm?
个人感觉可能的方案:
-
采用内置一个LDO电路,提供 1 2 V r e f \frac{1}{2}V_{ref} 21Vref
-
提供一个外接pad,用外接电压源提供 1 2 V r e f \frac{1}{2}V_{ref} 21Vref、
-
…
欢迎评论,一起交流!