DSADC Peripheral Configuration
Map DSADC peripherals in Infineon AURIX model to peripheral registers in 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.
Open the DSADC Peripheral Configuration
In the Hardware tab, click Hardware Mapping.
Parameters
Modulator Type
— Type of modulator for delta-sigma conversion
On-chip
(default) |
External
Select the modulator type.
Maximum count for voltage reference
— Maximum count for full-scale voltage
25000
(default) | integer
Maximum count for full-scale voltage.
Note
When you configure for an unsigned datatype, the result will be a signed conversion + 32767. For example, for 3.3V, the converted value for signed operation is 3.3/5*25000=16500 and for unsigned datatype, the value is 16500+32767=49267.
Positive input type
— Type of positive input
Input-pin
(default) |
Ground
Type of positive input for DSADC conversion.
Note
The DSADC module supports differential inputs where you can configure both positive and negative inputs accordingly. In case of single-ended applications, you can configure the unused pin with ground.
Select positive pin
— Selection of positive pin
AN0
(default) | pin numbers
Select pin number of the positive pin.
Dependencies
This parameter appears only if you select
Input-pin
for the Positive input
type parameter.
Negative input type
— Type of negative input
Ground
(default) |
Input-pin
Type of negative input for DSADC conversion.
Select negative pin
— Selection of negative pin
AN1
(default) |
AN15
Select pin number of the negative pin.
Dependencies
This parameter appears only if the Negative input type
parameter is set to Input-pin
.
Input mode
— Input mode for DSADC pin
Tri-state
(default) | Pull-up
| Push-down
Select the input mode for the pin(s).
Speed
— Speed for DSADC pin
Speed-1
(default) | Speed-2
| Speed-3
Select the pin speed for DSADC.
Voltage level
— Voltage level for DSADC pin
Automatic
(default) | TTL-5V
| TTL-3.3V
Select the pin voltage level.
On-chip modulator frequency
— Select the on-chip modulator frequency
40MHz
(default) | 20MHz
| 10MHz
Select the on-chip modulator frequency.
Dithering
— Add dithering, if required
Disable
(default) | Level-0
| Level-1
| Level-2
| Level-3
Add dithering (white noise), if required.
Enable auto calibration
— Enable auto calibration, if required
off
(default) | on
Enable auto calibration of the DSADC conversion, if required.
Calibration Type
— Calibration type
High precision
(default) | High speed
Define the type of calibration for the DSADC signal.
Dependencies
This parameter appears only if you select the Enable auto calibration parameter.
Clock source
— Clock source for external modulator
Internal
(default) |
External
Clock source for external modulator.
If you choose external clock source, the block enables Channel parameter to specify the channel for external clock source.
Clock pin
— Pin number for clock signal
P33_5 (default) | available pin numbers
Pin number for clock signal.
Note
If you set Clock source to
External
, the modulator clock pin inputs the clock signal generated by the external modulator.If you set Clock source to
Internal
, the modulator clock pin outputs the internally generated clock signal, which can be used by external modulator.
Clock frequency (MHz)
— Clock frequency for external modulator
20
(default) | 10
| 5
Clock frequency for external modulator.
Channel
— Channel for external clock source
3
(default) | scalar in the range (0,3)
Specify the channel for external clock source..
Dependencies
To enable this parameter, set the Clock source
parameter to External
.
Clock input mode
— Input mode for clock signal
Tri-state
(default) | Pull-up
| Pull-down
Input mode for clock signal.
Data pin
— Pin number for data signal
P33_6 (default) | available pin numbers
Pin number for data signal.
Data capture on
— Trigger edge for data capture
Rising-edge
(default) | Falling-edge
| Both-edges
Trigger edge for data capture.
Data input mode
— Input mode for clock signal
Pull-down
(default) | Pull-up
| Tri-state
Input mode for clock signal.
Speed
— Speed for data pin
Speed-1
(default) | Speed-2
| Speed-3
Select the pin speed for data transfer.
Voltage level
— Voltage level for data pin
Automatic
(default) | TTL-5V
| TTL-3.3V
Select the data pin voltage level.
Manchester coding
— Encode data with Manchester coding
off
(default) | on
Encode data with Manchester coding.
Modulator gain
— Gain of external modulator
1
(default) | integer
Add the external modulator gain including the external circuitry.
Timestamp frequency
— Frequency of timestamp measurement
40MHz
(default) |
20MHz
|
10Mhz
|
5Mhz
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
— Gate source to trigger timestamp
GTM-ATOM0
(default) | GTM-ATOM#
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
— Hardware trigger for timestamp
Adc_TriggerSignal_0
(default) | Adc_TriggerSignal_1
| Adc_TriggerSignal_2
| Adc_TriggerSignal_3
Hardware trigger for timestamp.
Dependencies
This parameter appears only if you select the Enable timestamp parameter in the DSADC block in the Simulink model.
Trigger edge
— Hardware trigger edge
Rising-edge
(default) | Falling-edge
| Both-edges
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.
Trigger delay in nano seconds
— Trigger delay for timestamp
0
(default) | 0
to 6553500
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.
Decimation factor
— Decimation factor for DSADC conversion
128
(default) | 3
to 1023
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
— Auxiliary filter decimation factor for DSADC conversion
16
(default) | 32
| 64
| 128
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.
Enable offset compensation
— Offset compensation for DSADC conversion
off
(default) |
on
Enable offset compensation for DSADC conversion.
Note
This option is supported only if Modulator Type
parameter is set with On-chip
.
Cutoff frequency
— Cutoff frequency for offset compensation
0
(default) |
0
to 7
Cutoff frequency for offset compensation.
Offset in volts
— Offset in volts
0
(default)
Specify the offset voltage.
Enable integrator
— Enable integrator module for DSADC conversion
off
(default) |
on
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
— Number of values to discard during integration
0
(default) | 0
to 127
Number of values to discard during integration.
Number of values for accumulation
— Number of values for accumulation during integration
64
(default) | 1
to 127
Number of values for accumulation during integration.
Restart control
— Restart filter chain results when the integration window starts
Clear both main and auxiliary filter
(default) | Clear Main filter only
| No effect on bot filters
The filter chain results that are set will be restarted (or resets to 0) when the integration window starts.
External trigger for window start
— Enable external trigger for the start of adjustable integration window
off
(default) |
on
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.
Window stop control
— Stop control of adjustable integration window
Inverse of trigger edge
(default)
Stop control of adjustable integration window.
Note
The window will be stopped by the inverse edge of the starting window.
Window gate source
— Gate source of adjustable integration window
GTM-ATOM0
(default) | GTM-ATOM#
| GTM-TOM#
Gate source of adjustable integration window.
Note
Ensure that you configure the appropriate trigger using the PWM block.
Hardware trigger
— Hardware trigger for integrator
Adc_TriggerSignal_0
(default) | Adc_TriggerSignal_#
Hardware trigger for integrator.
Trigger edge
— Hardware trigger edge for integrator
Rising-edge
(default) | Falling-edge
| Both-edges
Hardware trigger edge for integrator.
Trigger delay in nano seconds
— Trigger delay for integrator
0
(default) | 0
to 6553500
Specify the trigger delay for integrator.
Lower limit in volts (-5V to 5V)
— Lower limit for the boundary band
0
(default) | -5
to 5
Lower limit for the boundary band for checking the result.
Upper limit in volts (-5V to 5V)
— Upper limit for the boundary band
5
(default) | -5
to 5
Upper limit for the boundary band for checking the result.
Enable hysteresis on boundary flag
— Enable hysteresis on boundary flag
off
(default) | on
Enable hysteresis to avoid metastable states and switching due to internal ground bounce.
Boundary mode
— Boundary mode for auxiliary filter
Disabled
(default) | Exceeds upper limit
| Lower than lower limit
| Out of bound
Boundary mode for auxiliary filter.
Note
This option is available only if the Hysteresis is disabled.
Service request
— Service request based on the boundary mode
None
(default) | Inside boundary band
| Outside boundary band
| Out of bound
Service request based on the boundary mode.
Enable Interrupt
— Enable interrupt for main filter
off
(default) | on
Enable interrupt for main filter.
Interrupt
— Interrupt condition for main filter
Always
(default) | Only while gate is high
| Only while gate is low
Interrupt condition for main filter. To limit the conversion interrupts, select the gate-signal option.
Gate signal from
— Gate signal to trigger main filter result
GTM-ATOM0
(default) | GTM-ATOM#
Gate signal to trigger main filter result.
Hardware trigger
— Hardware trigger for main filter result
Adc_TriggerSignal_0
(default) | Adc_TriggerSignal_#
Hardware trigger for main filter result.
Note
Configure the ADC trigger from the PWM block. The Module, Timer submodule, Timer unit, and Trigger Channel parameter values in PWM Peripheral Configuration must match the values of Gate signal from and Hardware trigger parameters.
Trigger delay in nano seconds
— Trigger delay for main filter result
0
(default) | 0
to 6553500
Trigger delay for main filter result.
Enable Interrupt
— Enable interrupt for auxiliary filter
off
(default) | on
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.
Enable Interrupt
— Enable interrupt for timestamp
off
(default) | on
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
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)