C2837x/07x DAC

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

  • 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

Description

Generate an analog output on the specified DAC channel A, B, or C for F2837x/F2807x 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

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