TMADC Peripheral Configuration
Map TMADC peripherals in the Infineon AURIX model to peripheral registers in the MCU
Since R2022b
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 TMADC peripheral block.
Configure the global parameters. To set the group peripheral, select peripheral in Browser > Peripherals >
TMADC
. For more, see Map Tasks and Peripherals Using Hardware Mapping.Check for any conflicts between peripherals.
Open the TMADC Peripheral Configuration
In the Hardware tab, click Hardware Mapping.
Parameters
Enable calibration
— TMADC calibration
off
(default) | on
Enables the TMADC calibration for the module.
Enable interrupt # configuration
— Select interrupt configuration for TMADC
off
(default) | on
Select the interrupt configuration for the TMADC module. This parameter enables the interrupt# for the module.
Event operation
— Event operation for TMADC
OR without wait-for-clear
(default) | AND
Select the event operation for TMADC module.
Dependencies
To enable the Event operation parameter, select either the Enable interrupt # configuration parameter or the Enable global interrupt parameter.
Event selection
— Event selection for TMADC
Result
(default) | Boundary
| Error
Select the event selection for TMADC module.
Dependencies
To enable the Event operation parameter, select either the Enable interrupt # configuration parameter or the Enable global interrupt parameter.
Interrupt Event source name
— Source name of interrupt event for TMADC channel
TMADC#_Interrupt_#
| TMADC_Global_Interrupt_#
This read-only parameter displays the source name of the interrupt as
TMADCx_Interrupt_y
, where x is the Module
x and y is the interrupt configuration you enable in the Module
x tab of Hardware Mapping window.
Dependencies
To view the Interrupt Event source name, select either the Enable interrupt # configuration parameter or the Enable global interrupt parameter.
Enable global interrupt
— Select global interrupt configuration for TMADC
off
(default) | on
This parameter enables the global interrupt for the TMADC module.
Select global service request
— Select global interrupt configuration for TMADC
Global service request 0
(default) | Global service request 1
| Global service request 2
| ...
Select the global service request for the TMADC module.
Dependencies
To enable the Select global service request parameter, select the Enable global interrupt parameter.
Global event operation
— Event operation for global interrupt
OR
(default) | AND
Select the event operation for global interrupt.
Dependencies
To enable the Global event operation parameter, select the Enable global interrupt parameter.
Select boundary configuration
— Boundary profiles for TMADC
None
(default) | Profile-1
| Profile-2
| Both profiles
Select boundary profiles for the TMADC module.
Upper limit
— TMADC profile upper limit
2000
(default)
Specify the upper limit for boundary profile.
Dependencies
To set the Upper limit parameter for profile #, set the
Select boundary configuration parameter as either
Profile-#
or Both
profiles
.
Lower limit
— TMADC profile lower limit
1000
(default)
Specify the lower limit for boundary profile.
Dependencies
To set the Lower limit parameter for profile #, set the
Select boundary configuration parameter as either
Profile-#
or Both
profiles
.
Enable boundary flag
— Boundary flag for TMADC module
off
(default) | on
Select this parameter to enable boundary flag for TMADC module.
Dependencies
To enable the Enable boundary flag parameter for profile #,
set the Select boundary configuration parameter as either
Profile-#
or Both
profiles
.
Boundary result
— Boundary result for TMADC module
Result 0
(default) | Result 1
| Result 2
| ...
Select the appropriate result register ranging between Result
0
through Result 15
for the boundary
flag.
Dependencies
To set the Boundary result parameter, select the Enable boundary flag parameter.
Module
— TMADC module for conversion
0
(default) | 1
| 2
| 3
| ...
Select the TMADC module 0
through
7
on the hardware board.
Channel(s) selected
— TMADC module selected channels
1
(default) | 2
| 3
| 4
| ...
Provides the number of channels selected for the TMADC module. The number of channels selected depends on the input provided on the TMADC block.
Enable channel group
— Select channel group
Depends on the number of channels selected on the block
mask
(default)
This parameter enables the group functionality for the available channels.
Disabling this parameter enables the Operating mode parameter and options related to trigger and result registers in the Channel # tab.
Note
This parameter is enabled only when number of channels on the block mask is more than one.
Operating mode for the group
— Operating mode for TMADC channel
One shot
(default) | Continuous
Select the operating mode for TMADC channel group.
Note
You must set the Operating mode for the group parameter to
One shot
to view and configure the trigger related
parameters.
Dependencies
To enable the Operating mode for the group parameter, select the Enable channel group parameter.
Trigger source for the group
— TMADC trigger source for channel
Software trigger
(default) | Hardware trigger #
| Both hardware triggers
Select the TMADC trigger source for channel group.
Dependencies
To enable the Trigger source for the group parameter, select the Enable channel group parameter.
Source of hardware trigger # for the group
— TMADC hardware trigger source for group
The default varies based on the selected
module
(default) | GTM-ATOM#
| GTM-TOM#
| EGTM-TOM#
| EGTM-ATOM#
Select the TMADC hardware trigger source for channel group.
Dependencies
To enable the Source of hardware trigger # for the group
parameter, select the Enable channel group parameter and set
Trigger source for the group to Hardware trigger
#
or Both hardware triggers
.
Hardware trigger # for the group
— TMADC hardware trigger for group
The default varies based on the selected
module
(default) | ADC_TriggerSignal_#
Select the TMADC hardware trigger for channel group.
Dependencies
To enable the Source of hardware trigger # for the group
parameter, select the Enable channel group parameter and set
Trigger source for the group to Hardware trigger
#
or Both hardware triggers
.
Hardware trigger # edge for the group
— TMADC hardware trigger edge for group
Rising-edge
(default) | Falling-edge
| Both-edges
Select the TMADC hardware trigger edge for channel group.
Dependencies
To enable the Source of hardware trigger # for the group
parameter, select the Enable channel group parameter and set
Trigger source for the group to Hardware trigger
#
or Both hardware triggers
.
Trigger delay for the group in nano seconds
— Trigger delay for TMADC channel
0
(default)
Specify the trigger delay in nano seconds for the TMADC channel group.
Dependencies
To enable the Trigger delay for the group in nano seconds parameter, select the Enable channel group parameter.
Select result register
— Result register for TMADC channel group
Result 0
(default) | Result 1
| Result 2
| ...
Select the result register ranging between Result 0
through Result 15
for TMADC channel group.
Dependencies
To enable the Select result register parameter, select the Enable channel group parameter.
Enable wait-for-read for the result registers
— Specify if register should wait to read result
off
(default) | on
Select this parameter to enable the register to wait and read the TMADC channel # result registers.
Dependencies
To enable this parameter, select the Enable channel group
parameter and set the Trigger source for the group parameter to
Hardware trigger #
or Both Hardware
triggers
.
Select pin
— TMADC pin
Default value varies based on the module
selected
(default) | AN0
Select the TMADC pin for conversion.
Input mode
— Input mode for TMADC pin
Tri-state
(default) | Pull-up
| Push-down
Select the input mode for the pin(s).
Speed
— Speed for TMADC pin
Speed-1
(default) | Speed-2
| Speed-3
Select the pin speed for TMADC.
Voltage level
— Voltage level for TMADC pin
Automotive
(default) | TTL-5V
| TTL-3.3V
Select the pin voltage level.
Select channel #
— Select input for channel
Input 0
(default) | Input 1
| Input 2
| ...
This parameter is read-only.
This read-only parameter indicates the channel corresponding to the pin selected.
ADC sampling duration in nano seconds
— TMADC sampling duration
50
(default)
Specify the sampling duration in nano seconds for the TMADC channel.
SAR core
— TMADC SAR core for channel
Core 0
(default) | Core 1
Select the Successive-approximation-register (SAR) core for TMADC channel.
Operating mode
— Operating mode for TMADC channel
One shot
(default) | Continuous
Select the operating mode for TMADC channel.
Note
You must set the Operating mode parameter to One
shot
to view and configure the Trigger related
parameters.
Trigger source
— TMADC trigger source for channel
Software trigger
(default) | Hardware trigger #
| Both hardware triggers
If the Mode in block parameters is set to Trigger
and read
, select the TMADC trigger source for channel. If the
Mode is set to Trigger only
, then this
is a read-only parameter set to Software trigger
.
Source of hardware trigger#
— TMADC source of hardware trigger
The default varies based on the selected
module
(default) | GTM-ATOM#
| GTM-TOM#
| EGTM-TOM#
| EGTM-ATOM#
If the Mode in block parameters is set to Trigger
and read
, select the appropriate trigger source through which conversion
initiates.
Dependencies
To enable the Source of hardware trigger# parameter, set the
Trigger source to either Hardware trigger #
or Both hardware triggers
.
Hardware trigger#
— Hardware trigger for TMADC channel
ADC_TriggerSignal_0
(default) | ADC_TriggerSignal_1
| ADC_TriggerSignal_2
| ...
If the Mode in block parameters is set to Trigger
and read
, select the appropriate trigger signal through which conversion
initiates.
Dependencies
To enable the Hardware trigger# parameter, set the
Trigger source to either Hardware trigger #
or Both hardware triggers
.
Hardware trigger edge#
— Hardware trigger edge for TMADC channel
Rising-edge
(default) | Falling-edge
| Both-edges
If the Mode in block parameters is set to Trigger
and read
, select the appropriate trigger edge through which conversion
initiates.
Dependencies
To enable the Hardware trigger edge# parameter, set the
Trigger source to either Hardware trigger #
or Both hardware triggers
.
Trigger delay in nano seconds
— Trigger delay for TMADC channel
0
(default)
Specify the trigger delay in nano seconds for the TMADC channel.
Dependencies
To enable the Trigger delay in nano seconds parameter, set
the Mode in block parameters as either Trigger and
read
or Trigger only
.
Select result register
— Result register for TMADC channel
Result 0
(default) | Result 1
| Result 2
| ...
Select the result register for TMADC channel.
Dependencies
To enable the result related parameter Select result
register, set the Mode in block parameters as either
Read results only
or Trigger and
read
.
Enable wait-for-read
— Specify if register should wait to read result
off
(default) | on
Select this parameter to enable the register to wait and read the TMADC channel # result registers.
Dependencies
To enable this result related parameter, set the Mode in
block parameters toTrigger and read
or Read
only
. In the Trigger and read
mode, set the
Trigger source to Hardware trigger #
or Both Hardware triggers
.
Result interrupt
— Result interrupt for TMADC channel
Service request-None
(default) | Service request-#
| Global service request
Select the result interrupt for the TMADC channel.
Dependencies
To enable this parameter, enable the interrupt configuration and set the
Event selection parameter to Result
in the global parameters.
Error interrupt
— Error interrupt for TMADC channel
Service request-None
(default) | Service request-#
| Global service request
Select error interrupt for the TMADC channel.
Dependencies
To enable this parameter, enable the interrupt configuration and set the
Event selection parameter to Error
in the global parameters.
Select boundary profile
— Boundary profile for TMADC channel result
None
(default) | Boundary profile #
Select the boundary profile for TMADC channel # result.
Dependencies
To enable the Select boundary profile parameter, set the
Select boundary configuration parameter in global parameters to
either Profile-#
or Both
profiles
.
Boundary selection
— Boundary selection for TMADC channel result
Disable
(default) | Lower bound
| Upper bound
| Both bound
Select the boundary type for TMADC channel.
Dependencies
To enable the Boundary selection parameter, set the
Select boundary profile parameter as Boundary
profile-#
.
Boundary mode
— Boundary mode for TMADC channel result
Inside boundary
(default) | Outside boundary
Select the boundary mode for TMADC channel result.
To enable the Boundary mode parameter, set the Select
boundary profile parameter as Boundary
profile-#
.
Enable hysteresis
— Boundary hysteresis for TMADC channel result
Off
(default) | on
Enables the hysteresis condition for boundary selection for TMADC channel result.
Dependencies
To enable the Enable hysteresis parameter, set the
Boundary selection to Both bound
.
Boundary interrupt
— Boundary interrupt for TMADC channel result
Service request-None
(default) | Service request-#
| Global service request
Select the boundary interrupt for TMADC channel result.
Dependencies
To enable this parameter, enable the interrupt configuration and set the global
parameter Event selection to
Boundary
.
Version History
Introduced in R2022b
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)