Main Content

CDSP

Process data output from ADC peripherals of IFX TC4x

Since R2024a

  • CDSP block

Libraries:
SoC Blockset Support Package for Infineon AURIX Microcontrollers / AURIX TC4x

Description

The Converter Digital Signal Processing (CDSP) block applies signal processing techniques to data from DSADC block. Based on the filter properties and filter chain that you specify in the block, the block outputs the filtered data as 16-bit signed and unsigned integers.

When you enable the timestamp output, the block provides an additional output port to read the timestamp as a 16-bit unsigned value.

Note

You must install DSP System Toolbox™, SoC Blockset™, or Vision HDL Toolbox™ to use CDSP block in the Simulink model.

Ports

Input

expand all

The port accepts incoming data from DSADC block ( using on-chip or external modulator) and applies different signal processing techniques based on the application.

Note

  • In a code generation workflow, the port accepts data from DSADC block

  • In a simulation workflow, the port accepts data from any Simulink® source block

Data Types: uint16 | int16

Output

expand all

The block outputs the filtered data as 16-bit values in the form of an N-by-1 array. N varies based on based on the timestamp, number of output samples, and FIFO depth configuration.

The size of output depends on the values of the other parameters in the block.

Enable FIFOEnable timestamp outputNumber of output samples FIFO depthSize of filtereddata
DisableDisableNANA1-by-1
EnableNANA1-by-1
EnableDisable144-by-1
33-by-1
22-by-1
11-by-1
244-by-1
22-by-1
Enable121-by-1

Note

If you set both Enable FIFO and Enable timestamp output parameters, then you must set FIFO depth parameter to 2 to receive correct filtered output. This is a known limitation.

Data Types: uint16 | int16

The port outputs the status of the 16-bit counter value of timestamp counter.

Dependencies

To enable this port, select the Enable timestamp output parameter.

Data Types: uint16

Parameters

expand all

Basic

Select this parameter to configure the timestamp output port.

Selecting this parameter enables options in the Timestamp tab and Timestamp event (under Events tab) in the CDSP Peripheral Configuration.

Note

As the timestamp is always associated with the trigger, it is recommended that you configure and provide the trigger accordingly, when the timestamp output is enabled. Otherwise, the FIFO functionality does not work, as timestamp is flushed into FIFO first and then to the result registers.

Select the filter chain to be used by CDSP.

Select data type of the filtered output.

Basic > FIFO Configuration

Select to enable FIFO register.

Configure whether to read a single sample or double samples at a time.

Selecting 2 helps in fetching the data faster from the FIFO.

Dependencies

To enable this parameter, select the Enable FIFO parameter.

FIFO level after which the module generates service request.

Dependencies

To view this parameter, select the Enable FIFO parameter.

FIR

Specify the coefficients of the FIR filter.

Specify decimation rate of the FIR filter.

Version History

Introduced in R2024a