主要内容

MCAL DIO Channel Read

Read logical value of the specified DIO channel identifier

Since R2026a

  • MCAL DIO Channel Read block

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

Description

Use the MCAL DIO Channel Read block to read the logical value of a specified channel identifier.

The block outputs the logical value of the selected DIO channel at each simulation step or sample time.

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

Outputs the logical value of the specified DIO channel.

Parameters

expand all

Specify the unique identifier for the DIO channel to be read. This links the MCAL DIO Channel Read block to a specific group of digital input/output channels as configured in the CDF file. Click Get dio channels to view and select from the list of available channel names configured in the CDF.

Programmatic Use

Block Parameter: Pins

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