Main Content

Digital Port Write

Set GPIO pin(s) status

Since R2024a

  • Digital Port Write block

Libraries:
Embedded Coder Support Package for Infineon AURIX TC3x Microcontrollers / AURIX TC3x

Description

Write logical status of pins of a GPIO port for the Infineon AURIX TC3x Microcontrollers.

Ports

Input

expand all

Specify a value at this port to set the status of GPIO pin(s). You can specify a non-negative scalar or a vector of non-negative elements.

  • Specify 0 to set the pin(s) to a low value.

  • Specify a nonzero value to set the pin(s) to a high value.

The size of input ports available depends on the Number of pins parameter.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean

Output

expand all

The Digital Port Write block converts the data received at input port into SoC Blockset™ message form and the msg port outputs that message during simulation.

Dependencies

To view this port, select the Enable simulation port parameter and set the port type as SoC Data (Message based).

This port outputs the data received at the input port during simulation.

Dependencies

To view this port, select the Enable simulation port parameter and set the port type as Signal.

Parameters

expand all

Select the number of pins (1 to 15) whose output you want to configure in the block.

Select this parameter to enable peripheral simulation capability.

Select this parameter to configure either the SoC compatible or the Simulink® signal based simulation ports to enable peripheral simulation capability.

Dependencies

To view this parameter, select the Enable simulation port parameter.

Version History

Introduced in R2024a