周辺装置の管理
R2026bターゲット ハードウェアと通信する前に、ブロック設定およびハードウェアのコンフィギュレーション パラメーターを適用します。
ブロック
![]() | Analog To Digital Converter | Convert analog signal on ADC input pin to digital signal (R2026a 以降) |
![]() | Analog to Digital Converter (r_adc) | Convert analog signal to digital value using r_adc ADC peripheral (R2026b 以降) |
![]() | Digital Port Pins Read | Read logical states from group of pins/channels on a specified port (R2026a 以降) |
![]() | Digital Port Pins Write | Write logical states to pins on a port (R2026a 以降) |
![]() | Hardware Interrupt | Trigger function-call subsystems in response to hardware interrupt events (R2026a 以降) |
![]() | Port Output Enable (GPT) | Control Port Output Enable (POEG) functionality for General Purpose Timer (GPT) PWM modules (R2026b 以降) |
![]() | PWM Output | Generate Pulse Width Modulation (PWM) signals on the specified output pins (R2026a 以降) |
![]() | SPI Controller Transfer | Write data to and read data from an SPI peripheral device (R2026b 以降) |
![]() | Three Phase PWM | Generates synchronized three-phase PWM signals (R2026a 以降) |
![]() | Timer | Implement timer functionality using General Purpose Timer (GPT) or Asynchronous General-Purpose Timer (AGT) peripherals (R2026b 以降) |
モデル設定
トピック
- Embedded Coder Support Package for Renesas RA Microcontrollers のインストール
Renesas RA マイクロコントローラーをモデル化するためのハードウェア サポートを手順に従ってインストールする。
- What is Sample Time and How Does it Work?
Concept of sample time and its role in simulations.
注目の例
Renesas RA マイクロコントローラー ボード入門
この例では、Embedded Coder ® Support Package for Renesas® RA Microcontrollers を使用して、Renesas RA マイクロコントローラーに基づいたハードウェアに Simulink® モデルを展開してシミュレーションを実行する方法を示します。このサポート パッケージにより、Simulink® ブロックを使用して実行時にハードウェア周辺装置にアクセスし、Renesas RA Smart Configurator ツールを介してそれらの周辺装置を構成できます。
Simulink を使用した Renesas RA6T2 マイクロコントローラー上でのモデルベースの BLDC モーター制御
この例では、Embedded Coder Support Package for Renesas RA Microcontrollers を使用して、Simulink でモデルベース デザインを用いて Renesas RA6T2 マイクロコントローラー上にセンサーレス ブラシレス DC (BLDC) モーター制御を実装および展開する方法を示します。Renesas Flexible Motor Control Kit および RA Smart Configurator (RASC) アドオンを活用して、開ループと閉ループの両方の制御手法をシミュレーションし、コードを生成して実行します。
Using Analog to Digital Converter Block with Renesas RA Microcontrollers
Digitize analog signals on Renesas® RA microcontrollers using the Analog to Digital Converter (ADC) block in Simulink® with Embedded Coder® Support Package for Renesas RA Microcontrollers. In this example, you measure the on-chip temperature sensor on a Renesas MCK-RA6T2 board and convert raw ADC values into temperature readings.
Control Onboard LED Brightness Using PWM Blocks on Renesas RA Microcontrollers
Control the brightness of an onboard LED on a Embedded Coder ® Support Package for Renesas® RA Microcontrollers by varying the duty cycle of a hardware PWM signal generated using the General PWM Timer (GPT). The example demonstrates how duty-cycle modulation directly affects LED intensity and how a Simulink model can be deployed to Renesas RA hardware for real-time execution.
Read and Write EEPROM Using SPI Blocks on Renesas RA Microcontrollers
Communicate with an SPI-based EEPROM using Renesas RA6 microcontrollers in Simulink. The example demonstrates two approaches for implementing SPI communication:
Control PWM Output Using POEG Triggers on Renesas RA Microcontrollers
Use the POEG (Port Output Enable for GPT) feature in the Embedded Coder® Support Package for Renesas® RA Microcontrollers to control PWM output using both software and hardware triggers.
Update Timer Period and Measure Encoder Counts on Renesas RA Microcontrollers
Use timer blocks in the Embedded Coder® Support Package for Renesas RA Microcontrollers to dynamically update the timer period, enable or disable the timer during execution, and reset the timer counter by using the AGT peripheral. It also shows how to update the timer period for the GPT peripheral and observe the counter waveform behavior when period values change at different time instants. Additionally, the example demonstrates how to perform phase counting using an encoder. In this example, you emulate the encoder pulses using two phase-shifted GPIO pulses with the GPT peripheral.
Read ADC Values Using Timer-Triggered Interrupts on Renesas RA Microcontrollers
Use the ADC (Analog-to-Digital Converter) blocks in the Embedded Coder® Support Package for Renesas® RA Microcontrollers to read analog input values using timer-triggered interrupts.
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)

















