Main Content

DSADC Peripheral Configuration

Map DSADC peripherals in the Infineon AURIX model to peripheral registers in the MCU

Since R2023b

Description

View and edit the map of peripherals in the Infineon® AURIX™ model to the hardware peripherals.

Using the Peripheral Configuration tool, you can:

  • View and edit configuration parameters for DSADC peripheral block.

  • Check for conflicts, if any between peripherals.

DSADC peripheral

Open the DSADC Peripheral Configuration

  • In the Hardware tab, click Hardware Mapping.

    Hardware Mapping DSADC

Parameters

expand all

Select the modulator type.

Maximum count for full-scale voltage.

Note

When configured for unsigned datatype, the result will be signed conversion + 32767. For example, for 3.3V, the converted value for signed operation is 3.3/5*25000=16500; for unsigned datatype, the value is 16500+32767=49267.

On-chip modulator

Type of positive input for DSADC conversion.

Note

DSADC module supports differential inputs where both positive and negative can be configured accordingly. In case of single ended application, you can configure the unused pin with ground.

Select pin number of the positive pin.

Dependencies

This parameter appears only if you select Input-pin for the Positive input type parameter.

Type of negative input for DSADC conversion.

Select pin number of the negative pin.

Dependencies

This parameter appears only if the Negative input type parameter is set to Input-pin.

Select the input mode for the pin(s).

Select the pin speed for DSADC.

Select the pin voltage level.

Select the on-chip modulator frequency.

Add dithering (white noise), if required.

Enable auto calibration of the DSADC conversion, if required.

Define the type of calibration for the DSADC signal.

Dependencies

This parameter appears only if you select the Enable auto calibration parameter.

External Modulator

Clock source for external modulator.

Clock frequency for external modulator.

Pin number for clock signal.

Input mode for clock signal.

Pin number for data signal.

Trigger edge for data capture.

Input mode for clock signal.

Select the pin speed for data transfer.

Select the data pin voltage level.

Encode data with Manchester coding.

Add the external modulator gain including the external circuitry.

Timestamp

Frequency of timestamp measurement.

Dependencies

This parameter appears only if you select the Enable timestamp parameter in the DSADC block in the Simulink® model.

Gate source to trigger timestamp.

Note

Ensure that you configure the appropriate trigger using the PWM block.

Dependencies

This parameter appears only if you select the Enable timestamp parameter in the DSADC block in the Simulink model.

Hardware trigger for timestamp.

Dependencies

This parameter appears only if you select the Enable timestamp parameter in the DSADC block in the Simulink model.

Hardware trigger edge for timestamp.

Dependencies

This parameter appears only if you select the Enable timestamp parameter in the DSADC block in the Simulink model.

Specify the trigger delay for timestamp.

Dependencies

This parameter appears only if you select the Enable timestamp parameter in the DSADC block in the Simulink model.

Filter > CIC Filter

Decimation factor for DSADC conversion. Higher the value of Decimation factor, higher will be the accuracy, at the cost of additional time.

Auxiliary filter decimation factor for DSADC conversion.

Dependencies

This parameter appears only if you select the Auxiliary result parameter in the DSADC block in the Simulink model.

Filter > Offset compensation

Enable offset compensation for DSADC conversion.

Note

This option is supported only if Modulator Type parameter is set with On-chip.

Cutoff frequency for offset compensation.

Specify the offset voltage.

Filter > Integrator

Enable integrator module for DSADC conversion.

Note

This option is supported only if Modulator Type parameter is set with On-chip.

Number of values to discard during integration.

Number of values for accumulation during integration.

The filter chain results that are set will be restarted (or resets to 0) when the integration window starts.

Enable external trigger for the start of adjustable integration window. If the parameter is disabled, the integrator is triggered at block sample rate and ends after the number of samples specified in Number of values for accumulation (1-127) is reached.

Stop control of adjustable integration window.

Note

The window will be stopped by the inverse edge of the starting window.

Filter > Integrator Trigger

Gate source of adjustable integration window.

Note

Ensure that you configure the appropriate trigger using the PWM block.

Hardware trigger for integrator.

Hardware trigger edge for integrator.

Specify the trigger delay for integrator.

Boundary

Lower limit for the boundary band for checking the result.

Upper limit for the boundary band for checking the result.

Enable hysteresis to avoid metastable states and switching due to internal ground bounce.

Boundary mode for auxiliary filter.

Note

This option is available only if the Hysteresis is disabled.

Service request based on the boundary mode.

Events > Main filter result

Enable interrupt for main filter.

Interrupt condition for main filter. To limit the conversion interrupts, select the gate-signal option.

Gate signal to trigger main filter result.

Note

Ensure that you configure the appropriate trigger using the PWM block.

Hardware trigger for main filter result.

Trigger delay for main filter result.

Events > Auxiliary result

Enable interrupt for auxiliary filter.

Dependencies

This parameter enables only if you select the Auxiliary result parameter in the DSADC block in the Simulink model.

Events > Timestamp

Enable interrupt for timestamp. The timestamp is triggered based on the parameters you selected in the Timestamp tab of this Hardware Mapping window. Enabling interrupt for timestamp helps you to interpolate the conversion results based on application frequency.

Note

In general, the application frequency might be out-of-sync with the delta-sigma ADC conversion cycle, and hence the data needs to be interpolated using timestamp.

Dependencies

This parameter appears only if you select the Enable timestamp parameter in the DSADC block in the Simulink model.

Version History

Introduced in R2023b