Main Content

Digital Port Write

Set GPIO pin(s) status

Since R2022b

  • Digital Port Write block

Libraries:
SoC Blockset Support Package for Infineon AURIX Microcontrollers / AURIX TC4x

Description

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

Ports

Input

expand all

Specify a value at this port to set the status of GPIO pin(s). You can specify a nonnegative scalar or a vector of nonnegative 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 16) whose output you want to configure in the block.

Select this parameter to enable peripheral simulation capability.

Note

If you do not have a SoC Blockset license, the Enable simulation port parameter is visible but you cannot enable it.

Select this parameter to configure either the SoC Blockset 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 R2022b