Main Content

Binary Weighted DAC

N-bit DAC based on R-2R weighted resistor architecture

  • 图书馆:
  • 混合信号 / DAC /架构

  • 二元加权DAC块

Description

R-2R DAC是最常见的二元加权DAC类型之一。它由平行的二元加权电阻库组成。电阻库将每个数字级别转换为等效模拟信号。

二进制加权DAC的输入/输出传输曲线可以是非单调的,这意味着传输曲线可以逆转其方向。

R-2R DAC体系结构是低分辨率,由于实施该体系结构所需的大量电阻,因此消耗了更多功率。

Ports

Input

expand all

DAC的数字输入信号,指定为整数。

如果the输入极性parameter is set toBipolar,信号的允许范围为[-2nbits-1, 2nbits-1]。

如果the输入极性parameter is set to单极,信号的允许范围为[0,2nbits-1].

数据类型:单身的|double|int8|int16|int32|UINT8|uint16|UINT32|fixed point

外时钟开始转换,指定为标量。数字到分析转换过程从信号的上升边缘开始开始port.

依赖性

To enable this port, select使用外部开始时钟in the一般的tab.

数据类型:double

输出

expand all

Converted analog output signal, returned as a scalar.

数据类型:double

指示数字到分析转换是否已完成,并返回为标量。

依赖性

To enable this port, select显示就绪端口in the一般的tab.

数据类型:double

参数

expand all

一般的

输入单词中的位数,指定为无单位的正真实整数。位数determines the resolution of the DAC.

程序化使用

块参数:nbits
类型:character vector
值:positive real integer
默认:5

数据类型:double

输入信号向DAC的极性。

程序化使用

块参数:极性
类型:character vector
值:Bipolar|单极
默认:Bipolar

选择要连接到外部启动转换时钟。默认情况下,选择此选项。如果您取消选择此选项,则采样时钟源block inside the Segmented DAC is used to generate the start conversion clock

内部启动转换时钟的频率,在Hz中指定为真实标量。这Conversion start frequencyparameter determines the conversion rate at the start of conversion.

依赖性

要启用此参数,请取消选择使用外部开始时钟

程序化使用

块参数:StartFreq
类型:character vector
值:积极的真实标量
默认:1E6

数据类型:double

参考erence voltage of the DAC, specified as a real scalar in volts.参考(v)帮助确定输入数字代码的输出,位数, and偏见(v)using the equation:

DAC output = (( (( 数字输入代码 2 位数 参考erence + 偏见

程序化使用

块参数:参考
类型:character vector
值:真正的标量
默认:2

数据类型:double

偏见voltage added to the output of the DAC, specified as a real scalar in volts.偏见(v)帮助确定输入数字代码的输出,位数, and参考(v)using the equation:

DAC output = (( (( 数字输入代码 2 位数 参考erence + 偏见

程序化使用

块参数:偏见
类型:character vector
值:真正的标量
默认:0

数据类型:double

选择启用ready端口上的端口。默认情况下取消了此选项。

损害

选择启用障碍,例如偏移误差和DAC模拟中的误差。选择此参数。默认。

通过特定值将量化步骤(以%fs(百分比全尺度),fs(全尺度)或LSB(最不重要的位)表示为标量。

Offset erroris applied before参考(v)and偏见(v)

依赖性

要启用此参数,请选择启用线性障碍in the损害tab.

程序化使用

块参数:OffsetError
类型:character vector
值:真正的标量
默认:0LSB

数据类型:double

Error in the slope of the straight line interpolating the DAC transfer curve, specified as a real scalar in %FS (percentage full scale), FS (full scale), or LSB (least significant bit).

获得错误is applied before参考(v)and偏见(v)

依赖性

要启用此参数,请选择启用线性障碍in the损害tab.

程序化使用

块参数:Gainerror
类型:character vector
值:真正的标量
默认:0LSB

数据类型:double

选择以启用定时障碍,例如在DAC模拟中定时时间或振荡速率。选择此参数。默认。

Specify whether the Binary Weighted DAC calculates switch timing using the settling time parameters or the slew rate parameters.

依赖性

要启用此参数,请选择启用正时障碍in the损害tab.

这time required for the output of the DAC to settle to within some fraction of its final value, specified as a nonnegative real scalar in seconds.

依赖性

要启用此参数,请选择启用正时障碍并设置使用使用Settling timein the损害tab.

程序化使用

块参数:SettlingTime
类型:character vector
值:真正的标量
默认:2e-7

数据类型:double

这至lerance allowed for calculating settling time, specified as a positive real scalar in LSB. The output of the DAC must settle within theSettling time tolerance (LSB)经过安顿时间

依赖性

要启用此参数,请选择启用正时障碍并设置使用使用Settling timein the损害tab.

程序化使用

块参数:SettlingTimeTolerance
类型:character vector
值:积极的真实标量
默认:0。5

数据类型:double

Switch the rising slew rate for the DAC, specified as a positive real scalar or vector. IfRising slew rate是标量,它指定了所有开关的相同的振荡速率。如果Rising slew rateis a vector of lengthnbits,它指定了每个单独开关的振荡速率。

依赖性

要启用此参数,请选择启用正时障碍并设置使用使用Slew ratein the损害tab.

程序化使用

块参数:RisingSlewRate
类型:character vector
值:积极的真实标量|积极的真实矢量
默认:5015625

开关的转换速率下降DAC, specified as a positive real scalar or vector. IfFalling slew rate是标量,它指定了所有开关的相同的振荡速率。如果Falling slew rateis a vector of lengthnbits,它指定了每个单独开关的振荡速率。

依赖性

要启用此参数,请选择启用正时障碍并设置使用使用Slew ratein the损害tab.

程序化使用

块参数:FallingSlewRate
类型:character vector
值:negative real scalar | negative real vector
默认:-5015625

版本历史记录

在R2020a中引入