EDSADC Peripheral Configuration
Map EDSADC peripherals in Infineon AURIX model to peripheral registers in MCU
Since R2024b
Description
View and edit the map of peripherals in the Infineon® AURIX™ model to the hardware peripherals.
Using the Hardware Mapping tool, you can:
View and edit configuration parameters of the EDSADC block.
Check for conflicts, if any, between peripherals.
Open the EDSADC Peripheral Configuration
In the Hardware tab, click Hardware Mapping.
Parameters
Supply voltage
— Voltage configuration of EDSADC module
Automatic
(default) |
5V
|
3.3V
Specify the voltage configuration of the EDSADC module.
Dithering levels
— Dithering intensity level
Minimum
(default) |
Low
|
Medium
|
High
Specify the dithering intensity (white noise).
Modulator Type
— Type of modulator for delta-sigma conversion
On-chip
(default) |
External
Select the type of modulator that the EDSADC module utilizes for delta-sigma conversion.
ADC count for voltage reference
— Maximum count for full-scale voltage
25000
(default) | scalar in the range (1,65535)
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.
Enable fractional reference voltage
— Option to specify fractional reference voltage
Vref/2
(default) |
Vref/4
|
Vref/8
|
Disabled
Disable or specify the fractional reference voltage for delta-sigma conversion.
Dependencies
To enable this parameter, set the Modulator type
parameter to on-chip
.
Clock source
— Clock source for external modulator
Internal
(default) |
External
Specify the clock source for the external modulator.
Dependencies
To enable this parameter, set the Modulator type
parameter to External
.
Clock frequency(MHz)
— Clock frequency for external and on-chip modulators
40
(default) |
26.6667
|
20
|
16
|
13.3333
|
11.4286
|
10
|
8.8889
Specify clock frequency for the external and on-chip modulators.
Data pin
— Pin number for data signal
P00_10 (default) | pin numbers
Specify the pin number for the data signal.
Dependencies
To enable this parameter, set the Modulator type
parameter to External
.
Clock pin
— Pin number for clock signal
P00_1 (default) | pin numbers
Specify 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.
Dependencies
To enable this parameter, set the Modulator type
parameter to External
.
Data capture on
— Trigger edge for data capture
Any-edge
(default) |
Falling-edge
|
Rising-edge
|
Every 2nd falling-edge
|
Every 2nd rising-edge
Specify the type of trigger edge to capture data.
Dependencies
To enable this parameter, set the Modulator type
parameter to External
.
Modulator gain factor
— Gain of external modulator
0.6945
(default) | scalar in the range (0,1)
Specify gain factor for the external modulator.
Dependencies
To enable this parameter, set the Modulator type
parameter to External
.
Clock sync delay cycle
— Option to select clock sync delay for on-chip modulator
No delay
(default) | scalar in the range (1,7)
Specify the clock sync delay for the on-chip modulator.
Dependencies
To enable this parameter, set the Modulator type
parameter to On-chip
.
Positive input type
— Type of positive input
Input-pin
(default) |
Supply voltage
|
Ground
|
Common mode voltage
Specify the type of positive input for delta-sigma conversion.
Note
The EDSADC 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.
Dependencies
To enable this parameter, set the Modulator type
parameter to On-chip
.
Select positive pin
— pin number for positive input
AN0
(default) | pin numbers
Specify the pin number for the positive input.
Dependencies
To enable this parameter, set the Modulator type
parameter to On-chip
and Positive input
type parameter to Input-pin
.
Negative input type
— Type of negative input
Ground
(default) |
Input-pin
|
Supply voltage
|
Common mode voltage
Specify the type of negative input for delta-sigma conversion.
Dependencies
To enable this parameter, set the Modulator type
parameter to On-chip
.
Select negative pin
— Pin number for negative input
AN1
(default) |
AN15
Specify the pin number of the negative input.
Dependencies
To enable this parameter, set the Modulator type
parameter to On-chip
and Negative input
type parameter to Input-pin
.
Input mode
— Configuration mode of EDSADC input pin
Tri-state
(default) |
Pull-up
|
Push-down
Select the configuration mode of EDSADC input pin.
Speed
— Speed for EDSADC pin
Speed-1
(default) |
Speed-2
|
Speed-3
|
Speed-4
Select the pin speed for EDSADC.
Voltage level
— Voltage level for EDSADC pin
Automatic
(default) |
TTL-5V
|
TTL-3.3V
Select the voltage level for the EDSADC pin.
Enable dithering
— Option to add dithering
off
(default) |
on
Add dithering (white noise) at the intensity level specified in the Dithering levels parameter.
Dependencies
To enable this parameter, set the Modulator type
parameter to On-chip
.
Enable auto-calibration when not converting ADC
— Option to enable auto-calibration
off
(default) |
on
Select to enable auto-calibration, if required.
Dependencies
To enable this parameter, set the Modulator type
parameter to On-chip
.
Trigger source
— Hardware trigger source for EDSADC channel
GTM Edsadc trigger 0
(default) |
GTM Edsadc trigger #
Specify the hardware trigger source for the EDSADC channel. The trigger signals options vary based on the choice of Timer unit and Channel # parameters in PWM Peripheral Configuration tool.
For more information on EDSADC trigger signals, see EDSADC Trigger Signals.
Timestamp clock frequency(MHz)
— Frequency of timestamp measurement
40
(default) |
20
|
10
|
5
Specify the frequency of timestamp measurement.
Dependencies
This parameter appears only if you select the Enable timestamp parameter in the EDSADC block in the Simulink® model.
Timestamp trigger when
— Hardware trigger edge for timestamp measurement
Both-edge
(default) |
Falling-edge
|
Rising-edge
Specify the hardware trigger edge for the timestamp measurement.
Dependencies
This parameter appears only if you select the Enable timestamp parameter in the EDSADC block in the Simulink model.
Enable pre-filter
— Option to enable CIC pre-filter
off
(default) |
on
Select to enable a pre-filter to reduce the data rate for modular frequencies above 20 MHz. This pre-filter is a CIC filter with the fixed decimation rate of 2.
Decimation factor(4-512)
— Decimation factor for EDSADC conversion
128
(default) | scalar in the range (4,512)
Decimation factor for the EDSADC conversion. A higher value improves accuracy at the cost of additional time.
Start value(4-Decimation factor)
— Start value of CIC filter
128
(default) | scalar in the range (4, value of Decimation factor
parameter)
Specify the start value of the CIC filter.
Enable overshoot compensation
— Option to enable overshoot compensation
off
(default) |
on
Select to enable an overshoot compensation filter before passing the CIC filter result to FIR filters.
Enable FIR0 filter
— Option to enable FIR0 filter
off
(default) |
on
Select to enable or bypass the FIR0 filter. The FIR0 filter attenuates the high frequency components that passed the CIC filter.
FIR1 filter
— Option to enable FIR filter with decimation specification
Disable
(default) |
Enable with 2:1 decimation
|
Enable with 1:1 decimation
Select to enable an FIR1 filter with decimation options.
Enable ripple compensation
— Option to enable ripple compensation
off
(default) |
on
Select to enable ripple compensation to attenuate low-frequency noise.
Offset compensation
— Offset compensation for EDSADC conversion
Configure
(default) |
rate 1
|
rate 2
|
rate 3
|
rate 4
|
rate 5
|
rate 6
|
rate 7
Specify offset compensation for EDSADC conversion.
Enable integrator
— Option to enable integrator module for EDSADC conversion
off
(default) |
on
Select to enable the integrator module for EDSADC conversion.
Enable external trigger control to start integrator
— Option to enable external trigger control to start integrator
off
(default) |
on
Select to enable trigger control to start the integrator module.
Dependencies
To enable this parameter, select the Enable integrator parameter.
Integrator start trigger when
— Hardware trigger edge to start integration window
Falling-edge
(default) |
Rising-edge
Specify the hardware trigger edge to start integration window.
Dependencies
To enable this parameter, select the Enable integrator and Enable external trigger control to start integrator parameters.
Number of values to discard(0-63)
— Number of values to discard during integration
0
(default) | scalar in the range (0,63)
Specify the number of values to discard during integration.
Dependencies
To enable this parameter, select the Enable integrator parameter.
Number of values for accumulation(1-64)
— Number of values to accumulate during integration
1
(default) | scalar in the range (1,64)
Specify the number of values to consider for accumulation during integration.
Dependencies
To enable this parameter, select the Enable integrator parameter.
Restart filter chain when an integration window starts
— Option to restart filter chain results when integration window starts
off
(default) | on
Select to restart filter chain results when integration window starts.
Dependencies
To enable this parameter, select the Enable integrator parameter.
Enable external trigger control to stop integrator
— Option to enable external trigger to control start and stop of integration window
off
(default) | on
Select to enable external trigger to control start and stop of integration window .
Dependencies
To enable this parameter, select the Enable integrator parameter.
Integration cycle(1-16)
— Number of integration cycles integration
1
(default) | scalar in the range (1,16)
Specify the number of integration cycles.
Dependencies
To enable this parameter, select the Enable integrator, Enable external trigger control to start integratorparameters and disable the Enable external trigger control to stop integrator parameter.
Auxiliary CIC filter decimation factor
— Decimation factor of auxiliary filter
16
(default) |
32
Specify the decimation factor of the auxiliary CIC filter.
Dependencies
This parameter appears only if you select the Auxiliary result parameter in the EDSADC block in the Simulink model.
Lower limit
— Lower limit for boundary band
0
(default) | scalar in the range (0, value of ADC count for voltage reference
parameter)
Lower limit for the boundary band for checking the result.
Upper limit
— Upper limit for the boundary band
25000
(default) | scalar in the range (0, value of ADC count for voltage reference
parameter)
Upper limit for the boundary band for checking the result.
Event condition
— Boundary condition for auxiliary interrupt event
Outside bounds
(default) |
Every new result
|
Inside bounds
Boundary condition for the auxiliary interrupt.
Enable main event
— Option to enable interrupt for main filter
off
(default) |
on
Select to enable an interrupt for the main filter.
Gate enable
— Interrupt condition for main filter
Always
(default) |
High
|
Low
Select one of these options as the interrupt condition for the main filter. To
limit conversion interrupts, select High
or
Low
.
Dependencies
To enable this parameter, select the Enable main event parameter.
Enable auxiliary event
— Option to enable auxiliary interrupt
off
(default) |
on
Select to enable the auxiliary interrupt.
Interrupt type
— Type of auxiliary interrupt
Boundary event
(default) | Timestamp event
Select the type of auxiliary interrupt. You can view the
Timestamp event
option if you select the
Enable timestamp parameter in the EDSADC block in the Simulink model.
If you enable the Auxiliary result parameter in the EDSADC block and set Interrupt type to
Boundary event
, then the boundary conditions set in Boundary tab apply to the auxiliary filter result.If you disable the Auxiliary result parameter in the EDSADC block and set Interrupt type to
Boundary event
, then the boundary conditions set in Boundary tab apply to the main filter result.
Version History
Introduced in R2024b
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 (한국어)