Main Content

F2807x/F2837xD/F2837xS/F28004x/F2838x DAC

Configures the DAC to generate an analog output on the specified DAC channel A/B/C (12-bit)

  • Library:
  • Embedded Coder Support Package for Texas Instruments C2000 Processors/ F2807x

    Embedded Coder Support Package for Texas Instruments C2000 Processors/ F2837xD

    Embedded Coder Support Package for Texas Instruments C2000 Processors/ F2837xS

    Embedded Coder Support Package for Texas Instruments C2000 Processors / F28004x

    Embedded Coder Support Package for Texas Instruments C2000 Processors / F2838x/ C28x

Description

Generate an analog output on the specified DAC channel A, B, or C for F2837x/F2807x/F28004x and F2838x/C28x processors. The block accepts a 12–bit value as an input in the range 0 to 4095. You can saturate a value higher than 4095 to 4095 with the Saturate on input outflow option.

The output pins of this block are multiplexed with the ADC block input. When you use a DAC block in your model, the corresponding channels of the ADC cannot be used as input. If used, the ADC samples the DAC output.

The pins that are shared between ADC and DAC are DACOUTA/ADCINA0, DACOUTB/ADCINA1, and DACOUTC/ADCINB1. The input to the DAC block can be double, float, int, and uint. The block typecasts the input to uint16.

Ports

Input

expand all

The input port through which the block accepts the digital input value to convert it to analog signal.

Data Types: int8 | uint8 | int16 | uint16 | int32 | uint32 | double

Parameters

expand all

Enter the DAC channel on which to generate the analog signal. The DAC channels that you can select are A, B, or C.

Select this check box to saturate the input value to 4095 when there is an input value is higher than 4095.

Introduced in R2016b