Analog To Digital Converter
R2026bLibraries:
Embedded Coder Support Package for Renesas RA Microcontrollers /
Renesas RA6 Based
Description
Use the Analog to Digital Converter block to convert the analog value at
an ADC input pin to a digital value. This block uses the r_adc_b ADC
peripheral, which is available on the RA6T2 device series. The block output is a
1-by-N row vector depending on the number of conversions N. The block
measures the voltage of an analog pin relative to the analog input reference voltage on
Renesas RA Microcontrollers.
Note
Continuous scan mode is not supported. The block performs single-scan conversions only.
Examples
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.
"ra6basedlib/Analog To Digital Converter"
Example: add_block("ra6basedlib/Analog To Digital Converter","myModel/myBlock",MakeNameUnique="on")
Version History
Introduced in R2026a

