Binary Weighted DAC
N-bit DAC based on R-2R weighted resistor architecture
- 图书馆:
混合信号 / DAC /架构
Description
R-2R DAC是最常见的二元加权DAC类型之一。它由平行的二元加权电阻库组成。电阻库将每个数字级别转换为等效模拟信号。
二进制加权DAC的输入/输出传输曲线可以是非单调的,这意味着传输曲线可以逆转其方向。
R-2R DAC体系结构是低分辨率,由于实施该体系结构所需的大量电阻,因此消耗了更多功率。
Ports
Input
数字的
— Digital input signal to DAC
integer
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
输出
analog
— Converted analog output signal
标量
Converted analog output signal, returned as a scalar.
数据类型:double
ready
— Indicates whether digital-to-analog conversion is complete
标量
指示数字到分析转换是否已完成,并返回为标量。
依赖性
To enable this port, select显示就绪端口in the一般的tab.
数据类型:double
参数
一般的
位数
— Number of bits in input word
5
(默认)|positive real integer
输入单词中的位数,指定为无单位的正真实整数。位数determines the resolution of the DAC.
程序化使用
块参数:nbits |
类型:character vector |
值:positive real integer |
默认:5 |
数据类型:double
输入极性
— Polarity of input signal to DAC
Bipolar
(默认)|单极
输入信号向DAC的极性。
程序化使用
块参数:极性 |
类型:character vector |
值:Bipolar |单极 |
默认:Bipolar |
使用外部开始时钟
— Connect to external start conversion clock
在(默认)|离开
选择要连接到外部启动转换时钟。默认情况下,选择此选项。如果您取消选择此选项,则采样时钟源block inside the Segmented DAC is used to generate the start conversion clock
Conversion start frequency (Hz)
- 内部开始转换时钟的频率
1E6
(默认)|积极的真实标量
内部启动转换时钟的频率,在Hz中指定为真实标量。这Conversion start frequencyparameter determines the conversion rate at the start of conversion.
依赖性
要启用此参数,请取消选择使用外部开始时钟。
程序化使用
块参数:StartFreq |
类型:character vector |
值:积极的真实标量 |
默认:1E6 |
数据类型:double
参考(v)
— Reference voltage
2
(默认)|真正的标量
参考erence voltage of the DAC, specified as a real scalar in volts.参考(v)帮助确定输入数字代码的输出,位数, and偏见(v)using the equation:
。
程序化使用
块参数:参考 |
类型:character vector |
值:真正的标量 |
默认:2 |
数据类型:double
偏见(v)
- 添加到输出的偏置电压
0
(默认)|真正的标量
偏见voltage added to the output of the DAC, specified as a real scalar in volts.偏见(v)帮助确定输入数字代码的输出,位数, and参考(v)using the equation:
。
程序化使用
块参数:偏见 |
类型:character vector |
值:真正的标量 |
默认:0 |
数据类型:double
显示就绪端口
— Enable ready port on block
OFF(默认)|上
选择启用ready端口上的端口。默认情况下取消了此选项。
损害
启用线性障碍
- 在DAC模拟中启用偏移并获得错误
在(默认)|离开
选择启用障碍,例如偏移误差和DAC模拟中的误差。选择此参数。默认。
Offset error
- 通过特定值移动量化步骤
0LSB
(默认)|真正的标量
通过特定值将量化步骤(以%fs(百分比全尺度),fs(全尺度)或LSB(最不重要的位)表示为标量。
Offset erroris applied before参考(v)and偏见(v)。
依赖性
要启用此参数,请选择启用线性障碍in the损害tab.
程序化使用
块参数:OffsetError |
类型:character vector |
值:真正的标量 |
默认:0LSB |
数据类型:double
获得错误
- DAC传输曲线的斜率错误
0LSB
(默认)|真正的标量
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模拟中启用正时障碍
在(默认)|离开
选择以启用定时障碍,例如在DAC模拟中定时时间或振荡速率。选择此参数。默认。
使用使用
- 指定DAC如何计算开关定时
Settling time
(默认)|Slew rate
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 output to settle
2e-7
(默认)|非负实际标量
这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 time
in the损害tab.
程序化使用
块参数:SettlingTime |
类型:character vector |
值:真正的标量 |
默认:2e-7 |
数据类型:double
Settling time tolerance (LSB)
— Tolerance for calculating settling time
0。5
(默认)|积极的真实标量
这至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 time
in the损害tab.
程序化使用
块参数:SettlingTimeTolerance |
类型:character vector |
值:积极的真实标量 |
默认:0。5 |
数据类型:double
Rising slew rate
- DAC的开关升降率上升率
5015625
(默认)|积极的真实标量|积极的真实矢量
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 rate
in the损害tab.
程序化使用
块参数:RisingSlewRate |
类型:character vector |
值:积极的真实标量|积极的真实矢量 |
默认:5015625 |
Falling slew rate
- DAC的开关下降率下降率
-5015625
(默认)|negative real scalar | negative real vector
开关的转换速率下降DAC, specified as a positive real scalar or vector. IfFalling slew rate是标量,它指定了所有开关的相同的振荡速率。如果Falling slew rateis a vector of lengthnbits,它指定了每个单独开关的振荡速率。
依赖性
要启用此参数,请选择启用正时障碍并设置使用使用至Slew rate
in the损害tab.
程序化使用
块参数:FallingSlewRate |
类型:character vector |
值:negative real scalar | negative real vector |
默认:-5015625 |
模型示例
版本历史记录
也可以看看
MATLAB Command
您单击了与此MATLAB命令相对应的链接:
通过在MATLAB命令窗口中输入该命令。Web浏览器不支持MATLAB命令。金宝app
Select a Web Site
选择一个网站以获取可用的翻译内容,并查看本地事件和优惠。根据您的位置,我们建议您选择:。
You can also select a web site from the following list:
如何获得最佳网站性能
选择中国网站(中文或英语)以获得最佳场地性能。其他Mathworks乡村网站未针对您所在的访问进行优化。
Americas
- América Latina((Español)
- Canada((English)
- United States((English)