分段DAC.
使用较小的DAC的布置将大数字输入转换为模拟信号
- Library:
Mixed-Signal Blockset / DAC / Architectures
Description
The分段DAC.block converts a large digital signal into analog output by splitting it over several smaller DACs. The分段DAC.块支持最多五金宝app个二进制加权分段DAC。
Ports
输入
digital
— Digital input signal
整数
Digital input signal to DAC, specified as an integer.
If the输入polarity参数设置为双极
, the allowed range of the signal is [−2NBits-1, 2NBits1]。
If the输入polarity参数设置为Unipolar
, the allowed range of the signal is [0, 2NBits-1].
Data Types:single
|double
|int8
|INT16
|INT32.
|uint8
|uint16
|uint32
|固定点
start
— External clock to start conversion
scalar
External clock to start conversion, specified as a scalar. The digital to-analog conversion process starts at the rising edge of the signal at thestart港口。
Dependencies
要启用此端口,请选择开始使用外部时钟.
Data Types:double
Output
analog
- 转换模拟输出信号
scalar
Converted analog output signal, returned as a scalar.
Data Types:double
Parameters
输入polarity
— Define DAC input data polarity
Unipolar
(默认)|双极
Define the polarity of the DAC input data. Set输入polarityto:
Unipolar
当数字输入只能是正的时。双极
when the digital input can be both positive and negative.
Programmatic Use
Block parameter:Polarity |
Type:character vector |
Values:Unipolar |双极 |
Default:Unipolar |
开始使用外部时钟
— Connect to external start conversion clock
on (default) | off
Select to connect to an external start conversion clock. This option is selected by default. If you deselect this option, aSampling Clock Source块内部分段DAC.block is used to generate the start conversion clock.
转换开始频率(Hz)
— Frequency of internal start conversion clock
1e6
(默认)|真正的标量
Frequency of the internal start conversion clock, specified as a real scalar in Hz. The转换开始频率parameter determines the conversion rate at the start of conversion.
Dependencies
To enable this parameter, deselect开始使用外部时钟.
Programmatic Use
Block parameter:StartFreq |
Type:character vector |
Values:真正的标量 |
Default:1e6 |
Reference (V)
— DAC output reference magnitude
0.5
(默认)|真正的标量
The reference magnitude of the DAC output, specified as a real scalar in volts.Reference (V)is one least significant bit (LSB) greater than the maximum achievable output.
Programmatic Use
Block parameter:Ref |
Type:character vector |
Values:真正的标量 |
Default:0.5 |
Bias (V)
— Difference between analog output for code zero and analog zero
0
(默认)|真正的标量
The difference between the analog output for code zero and analog zero in an unimpaired DAC, specified as a real scalar in volts.
Programmatic Use
Block parameter:Bias |
Type:character vector |
Values:真正的标量 |
Default:0 |
Settling time (s)
- 输出解决所需的时间
2e-7
(默认)|nonnegative real scalar
DAC输出所需的时间在其最终值的一小部分内定居,以秒为单位指定为非负实际标量。
Programmatic Use
Block parameter:SettlingTime |
Type:character vector |
Values:真正的标量 |
Default:2e-7 |
建立时间容忍(LSB)
— Tolerance for calculating settling time
0.5
(默认)|积极的标量
The tolerance allowed for calculating settling time, specified as a positive real scalar in LSB. The output of the DAC must settle within the建立时间容忍(LSB)bySettling time (s).
Programmatic Use
Block parameter:SettlingTimetolerance. |
Type:character vector |
Values:积极的标量 |
Default:0.5 |
拓扑
— Topology of base DAC segment
二进制加权
(default)
The topology of the base DAC for the segment. You can only use a二进制加权
DAC。
Bits
- DAC段的物理输入位数
真正的标量大于2
Number of physical input bits for the DAC segment, specified as a real scalar greater than 2. For the first two DAC segments, the default value ofBitsis4
. For subsequent segments, the default value is2
.
Offset error
- 换档量化步骤
0
(默认)|真正的标量
Shift quantization steps by the value you provide inOffset errorparameter, specified as a real scalar.
Offset error unit
- 偏移错误的单位
LSB.
(默认)|FS
|%FS.
Unit of offset error, specified asLSB.
, full scale (FS
)或满量程百分比(%FS.
).
Gain error
— Error in slope of DAC transfer curve
0
(默认)|真正的标量
DAC传输曲线斜率中的错误,指定为真正的标量。
Gain error unit
— Unit of gain error
LSB.
(默认)|FS
|%FS.
Unit of gain error, specified asLSB.
, full scale (FS
)或满量程百分比(%FS.
).
New segment
- 添加新的DAC段
button
Click to add a new DAC segment with default values. Currently you can add up to five DAC segments to the分段DAC.block.
选择重复
- 重复选定的段
button
Click to add a new DAC segment by duplicating a selected segment. Currently you can add up to five segments to the分段DAC.block.
▽ete selected
— Delete selected segment
button
单击以从中删除所选的DAC段分段DAC.block.
Version History
See Also
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
您还可以从以下列表中选择一个网站:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América拉丁(Español)
- Canada(English)
- United States(English)
欧洲
- Belgium(English)
- 丹麦(English)
- Deutschland(德意志)
- España(Español)
- Finland(English)
- 法国(Français)
- 爱尔兰(English)
- Italia(Italiano)
- Luxembourg(English)
- Netherlands(English)
- 挪威(English)
- Österreich(德意志)
- Portugal(English)
- Sweden(English)
- Switzerland
- United Kingdom(English)