DSADC
Libraries:
SoC Blockset Support Package for Infineon AURIX Microcontrollers /
AURIX TC4x
Description
Measure the voltage of an analog input pin.
The Delta-Sigma Analog to Digital Converter (DSADC) block outputs the voltage as an unsigned or signed 16-bit count, as a N-by-1 array. The data conversion is based on the selection of either the on-chip modulator or the external modulator in the DSADC Peripheral Configuration. The block provides conversion results continuously based on the filter parameters that are configured in the DSADC Peripheral Configuration.
Ports
Output
result — Voltage as signed or unsigned 16-bit value
scalar
|
vector
The block outputs the voltage as a 16-bit count (N-by-1 array, where N is defined based on the timestamp and FIFO level configuration).
The size of result output depends on the selection of other parameters in the block:
Read mode | FIFO | Timestamp | Valid FIFO Level | Size of result |
---|---|---|---|---|
Number of 16-bit data to read: 1 | Disable | Disable | Stage 1 | 1-by-1 |
Enable | Disable | Stage 1 | 1-by-1 | |
Stage 2 | 2-by-1 | |||
Stage 3 | 3-by-1 | |||
Stage 4 | 4-by-1 | |||
Enable | Stage 2 | 1-by-1 | ||
Stage 3 | 2-by-1 | |||
Stage 4 | 3-by-1 | |||
Number of 16-bit data to read: 2 | Enable | Disable | Stage 2 | 2-by-1 |
Stage 4 | 4-by-1 | |||
Enable | Stage 4 | 3-by-1 |
Data Types: uint16
| int16
aux_result — Auxiliary result as signed or unsigned 16-bit value
scalar
The block outputs the auxiliary result as a 16-bit value. This output can be used to obtain immediate result of conversion, bypassing the offset and integrator filter stages during conversion.
Dependencies
To enable this port, select the Auxiliary Result parameter.
Data Types: uint16
timestamp — Timestamp of 16-bit counter value
scalar
The port outputs the status of the 16-bit counter value of timestamp counter.
Dependencies
To enable this port, select the Enable timestamp parameter.
Data Types: uint16
| int16
Parameters
Auxiliary Result — Enable the auxiliary result as additional output
off
(default) |
on
Enable the auxiliary result as additional output (16-bit).
Selection of this parameter enables the related parameters in the DSADC Peripheral Configuration.
Enable timestamp — Enable timestamp
off
(default) |
on
Select to enable the timestamp.
When you select the Enable timestamp
parameter, the block
configures an additional output port, timestamp.
Selection of this parameter enables options in the Timestamp tab and Timestamp event (under Events tab) in the DSADC 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 is enabled. Otherwise, the FIFO functionality does not work, as timestamp is flushed into FIFO first and then to the result registers.
Enable FIFO — Enable FIFO
off
(default) |
on
Enable FIFO.
Enabling this parameter results in the addition of two new parameters – Number of 16 bit data to read and FIFO Level.
Number of 16 bit data to read — Number of 16 bit data to read
1
(default) |
2
Number of 16 bit data to read.
Keeping this value at 2
helps in fetching the data
faster from the FIFO.
FIFO Level — Level of FIFO
4
(default) | 3
|
2
|
1
(only if 'Enable Timestamp' is not selected)
FIFO level for data transfer.
Sample time — Frequency at which block reads input analog pin(s)
-1
(default) |
scalar
Specify in seconds how often the block should read the analog pin(s).
When you specify this parameter as -1
, Simulink® determines the best sample time for the block based on the
block context within the model.
Data type — Data type of the result
int16
(default) |
uint16
Data type of the result.
Version History
Introduced in R2023b
See Also
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
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)