ADC Interface
R2026bConvert analog signal on ADC input pin to digital signal
Libraries:
SoC Blockset for AMD /
SoC System Simulation /
Peripherals
C2000 Microcontroller Blockset /
Test Bench Blocks
Embedded Coder Support Package for Infineon AURIX TC3x Microcontrollers /
Test Bench Blocks
Embedded Coder Support Package for Infineon AURIX TC4x Microcontrollers /
Test Bench Blocks
Description
The ADC Interface block simulates the analog-to-digital conversion (ADC) of a hardware board. The input analog signal gets sampled and converted into a representative digital value. A start event message signals the block to sample the input analog voltage signal. When the conversion completes, the block emits the digital representation of the analog signal and sends an event to a Task Manager block. At this point, a connected task can execute with the new ADC sample.
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"peripheralslib/ADC Interface"
"c2btestbenchlib/ADC Interface"
"aurixtc3xlib/Test Bench Blocks/ADC Interface"
"aurixtc4xlib/Test Bench Blocks/ADC Interface"
Example: add_block("peripheralslib/ADC Interface","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2020b