Digital Port Write

Libraries:
Embedded Coder Support Package for Infineon AURIX TC4x
Microcontrollers /
AURIX TC4x
Description
Write logical status of pins of a GPIO port for the Infineon AURIX TC4x Microcontrollers.
Examples
Getting Started with Embedded Coder Support Package for Infineon AURIX TC4x Microcontrollers
Use Embedded Coder® Support Package for Infineon® AURIX™ TC4x Microcontrollers to run a Simulink® model on Infineon AURIX TC4x board.
Getting Started with vHIL Simulation for Infineon AURIX TC4x Microcontrollers
Use Embedded Coder® Support Package for Infineon® AURIX™ TC4x Microcontrollers for virtual hardware-in-the-loop (vHIL) simulation using Synopsis® Virtualizer Development Kit (VDK).
Field-Oriented Control of BLDC with Encoder Using Infineon AURIX Microcontrollers
Implement the field-oriented control (FOC) technique to control the speed of a three-phase brushless DC (BLDC) motor. The FOC algorithm requires rotor position feedback, which is obtained by using an encoder sensor. For more details about FOC, see Field-Oriented Control (FOC) (Motor Control Blockset).
Analyze Sensorless Observers for Field-Oriented Control Using Multiple Cores of Infineon AURIX
Use Embedded Coder® Support Package for Infineon® AURIX™ Microcontrollers for sensorless field-oriented control using multiple cores of an Infineon AURIX microcontroller board. This example uses a top-level model and two referenced models. You use the TriCore0 referenced model to implement a sensor-based field-oriented control (FOC) technique to control the speed of a three-phase brushless DC (BLDC) motor. You use the TriCore1 referenced model to implement and analyze different sensorless algorithms, such as the algorithms implemented in the Flux Observer (Motor Control Blockset), Sliding Mode Observer (Motor Control Blockset), and Extended EMF Observer (Motor Control Blockset) blocks.
Accelerate AI Based Software Development on Infineon AURIX TC4x Microcontroller
Implement AI based motor control functions using the Model-Based Design approach by deploying a multi-layer perceptron (MLP) neural network on the Infineon® AURIX™ TC4x microcontroller.
Ports
Input
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
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
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.
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 R2022b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)