主要内容

分段DAC.

使用较小的DAC的布置将大数字输入转换为模拟信号

  • Library:
  • Mixed-Signal Blockset / DAC / Architectures

  • 分段DAC.block

Description

The分段DAC.block converts a large digital signal into analog output by splitting it over several smaller DACs. The分段DAC.块支持最多五金宝app个二进制加权分段DAC。

Ports

输入

expand all

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|固定点

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

expand all

Converted analog output signal, returned as a scalar.

Data Types:double

Parameters

expand all

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

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.

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

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

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

DAC输出所需的时间在其最终值的一小部分内定居,以秒为单位指定为非负实际标量。

Programmatic Use

Block parameter:SettlingTime
Type:character vector
Values:真正的标量
Default:2e-7

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
段设置

The topology of the base DAC for the segment. You can only use a二进制加权DAC。

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.

Shift quantization steps by the value you provide inOffset errorparameter, specified as a real scalar.

Unit of offset error, specified asLSB., full scale (FS)或满量程百分比(%FS.).

DAC传输曲线斜率中的错误,指定为真正的标量。

Unit of gain error, specified asLSB., full scale (FS)或满量程百分比(%FS.).

Click to add a new DAC segment with default values. Currently you can add up to five DAC segments to the分段DAC.block.

Click to add a new DAC segment by duplicating a selected segment. Currently you can add up to five segments to the分段DAC.block.

单击以从中删除所选的DAC段分段DAC.block.

Version History

Introduced in R2021a