Digital Port Read

Libraries:
Embedded Coder Support Package for Infineon AURIX TC4x
Microcontrollers /
AURIX TC4x
Description
Read the logical status of a GPIO port pin 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
This port receives the SoC Blockset™ message from the interface blocks and the Digital Port Read block converts the msg into data to be emitted at the output port during simulation.
Dependencies
To view this port, select the Enable simulation port parameter and set the port type as SoC Data (Message based).
The simulation-only signal input port acts as pass-through with the output of the Digital Port Read block during simulation.
Dependencies
To view this port, select the Enable simulation port parameter and set the port type as Signal.
Output
The port outputs the status of the digital pin you select in the Port number and Pin number parameter from Digital Port Read Peripheral Configuration.
The port outputs the status as a logical scalar if the pin number is
1
or as a logical vector if it is greater than
1
.
Data Types: Boolean
Parameters
Select the number of pins (1
to 16
)
whose output you want to configure in the block.
Specify in seconds how often the block should read the pin value.
When you specify this parameter as -1
, Simulink® determines the best sample time for the block based on the
block context within the model.
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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)