主要内容

MCAL DIO Channel Write

Write logical value to a specified DIO channel identifier

Since R2026a

  • MCAL DIO Channel Write block

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

Description

Use the MCAL DIO Channel Write block to write the logical value of a specified channel identifier. The block accepts a logical value as input and writes this value to 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

Input

expand all

Writes the logical value provided to the selected DIO channel.

Parameters

expand all

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

Programmatic Use

Block Parameter: Pins

Version History

Introduced in R2026a