Main Content

MCAL DIO Channel Group Read

Read value of a specified DIO channel group identifier

Since R2026a

  • MCAL DIO Channel Group Read block

Libraries:
Embedded Coder Support Package for Renesas RH850 Microcontrollers / Microcontroller Abstraction Layer (MCAL) Blocks

Description

Use the MCAL DIO Channel Group Read block to read a subset of contiguous bits from a port, as specified by the channel group identifier. The channel group must be configured in the CDF (Configuration Description File).

Before using this block, configure pin modes and DIO channels, select the Configuration Description File (CDF) in Simulink model configuration, and then integrate the block into your target-specific model for code generation and deployment. For information on configuring correct and portable Digital Input/Output (DIO) workflow using the MCAL DIO module in Simulink and AUTOSAR-based projects, see Getting Started With DIO Using MCAL.

Examples

Ports

Output

expand all

Reads a subset of contiguous bits from a port and outputs the value using the selected data type.

Data Types: uint16 | uint8 | uint32

Parameters

expand all

Specify the unique identifier for the DIO channel group to be read. Click Get dio channel groups to view and select from the list of available channel group names configured in the CDF.

Programmatic Use

Block Parameter: Port

Select the output data type for the channel group value.

Programmatic Use

Block Parameter: PortDataType

Specify how often (in seconds) the block reads the logical value. Enter a value greater than zero. When you specify this parameter as -1, Simulink® determines the best sample time for the block based on the block context within the model.

Programmatic Use

Block Parameter: SampleTime

Version History

Introduced in R2026a