Digital Port Pins Read
Libraries:
Embedded Coder Support Package for Renesas RA Microcontrollers /
Renesas RA6 Based
Description
Use the Digital Port Pins Read block to read the logical value from a specified group of channels within a port.
Examples
Getting Started with Renesas RA Microcontroller Boards
Use the Embedded Coder ® Support Package for Renesas® RA Microcontrollers to deploy and simulate a Simulink® model on hardware based on Renesas RA microcontrollers. With this support package, you can access hardware peripherals at run time using Simulink® blocks and configure those peripherals through the Renesas RA Smart Configurator tool.
Ports
Output
Logical state for the pin/channel you specify within the selected port. The
numeric suffix (0 -15) for the channel reflects the value
specified in the Pins parameter
Dependencies
To enable this port, Select group of pins/channels and Separate input for each pin parameters must be selected.
Data Types: int8 | uint8 | uint32 | Boolean
Logical state (high or low) of the selected pins/channels on the specified port.
When the block outputs a vector, the element order follows the order of pin indices specified in the Pin(s) parameter. For example, if the selected port is PA and Pin(s) is set to [10 5 8], the output vector maps as follows:
output(1) → PA10
output(2) → PA5
output(3) → PA8
The output value follow the order of pins specified in the Pin(s) parameter:
The first pin specified corresponds to the least significant bit (LSB).
The last pin specified corresponds to the most significant bit (MSB).
Dependencies
This output port is available when either of the following conditions is met:
Select group of pins/channels is cleared, or
Select group of pins/channels is selected and Separate output for each pin is cleared.
Data Types: uint16
Parameters
Specify the unique identifier for the port. This links the block to a specific hardware instance or configuration.
Programmatic Use
Block Parameter:
PortName
|
Select this parameter to specify a group of pins or channels to read.
Programmatic Use
Block Parameter:
IndividualPinsRead
|
Specify the pin or channel index (0–15) to read. The
specified value is appended as a numeric suffix to the Channel000 output port. For
example, specifying 1, results in the output port name Channel001.
Programmatic Use
Block Parameter:
PinNumbers
|
Select this parameter to output multiple port pin values.
Programmatic Use
Block Parameter:
EachPinAsOutput
|
Specify in seconds how often this block reads 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.
Programmatic Use
Block Parameter:
SampleTime
|
Version History
Introduced in R2026a
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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 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)

