このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
モデル化
STMicroelectronics Discovery ボードを使用したハードウェア接続用のモデルの準備、ハードウェア プロトコルをサポートするためのブロックの追加
ブロック
STMicroelectronics STM32F4-Discovery ボード ブロック
GPIO Read | Read GPIO pin status |
GPIO Write | Set GPIO pin status |
Analog to Digital Converter | Convert analog signal on ADC input pin to digital signal |
Audio Out | Send processed audio samples to audio devices |
Mic In | Read audio sample from MEMS microphone available on the STMicroelectronics STM32F4–Discovery board |
Hardware Interrupt | Trigger the downstream function-call subsystem from an interrupt service routine. |
STMicroelectronics STM32F746G/STM32F769I-Discovery ボード ブロック
Analog Input | Measure voltage of analog input pin |
Digital Read | Read logical state of digital input pin |
Digital Write | Set logical state of digital output pin |
I2C Controller Read | Read data from I2C Peripheral devices or I2C Peripheral devices register |
I2C Controller Write | Write data to I2C peripheral devices or I2C peripheral devices register |
PWM Output | Generate square wave on the specified output pin |
SCI Read | Read N-by-1 array of data on UART |
SCI Write | Send N-by-1 array of data to UART |
SPI Controller Transfer | Write data to and read data from SPI peripheral devices |
SPI Register Read | Read data from SPI peripheral devices register |
SPI Register Write | Write data to registers of SPI peripheral devices |
Audio Input | Read audio sample from audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board |
Audio Output | Send processed audio samples to audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board |
TCP Receive | Receive data over TCP/IP network from remote host |
TCP Send | Send data over TCP/IP network to remote host |
UDP Receive | Receive UDP packets from UDP host |
UDP Send | Send UDP packets to UDP host |
External Interrupt | Trigger the downstream function-call subsystem from an Interrupt Service Routine (R2021a 以降) |
Modbus RS485 Client Read | Client device reads data from server device register(s) over RS485 network (R2021b 以降) |
Modbus RS485 Client Write | Client device writes data to server device register(s) over RS485 network (R2021b 以降) |
Modbus RS485 Server Write | Server device writes data to server device register over RS485 network (R2021b 以降) |
Modbus RS485 Server Read | Server device reads data from the server device register over RS485 network (R2021b 以降) |
STMicroelectronics STM32L475VG-Discovery (B-L475E-IOT01A) ボード ブロック
Analog Input | Measure voltage of analog input pin |
Digital Read | Read logical state of digital input pin |
Digital Write | Set logical state of digital output pin |
I2C Controller Read | Read data from I2C Peripheral devices or I2C Peripheral devices register |
I2C Controller Write | Write data to I2C peripheral devices or I2C peripheral devices register |
PWM Output | Generate square wave on the specified output pin |
SCI Read | Read N-by-1 array of data on UART |
SCI Write | Send N-by-1 array of data to UART |
SPI Controller Transfer | Write data to and read data from SPI peripheral devices |
SPI Register Read | Read data from SPI peripheral devices register |
SPI Register Write | Write data to registers of SPI peripheral devices |
External Interrupt | Trigger the downstream function-call subsystem from an Interrupt Service Routine (R2021a 以降) |
WiFi TCP Receive | Receive TCP/IP packets from another TCP/IP host on internet network (R2021a 以降) |
WiFi TCP Send | Send TCP/IP packets to another TCP/IP host on internet network (R2021a 以降) |
ThingSpeak Read | Read data stored in ThingSpeak channel (R2021a 以降) |
ThingSpeak Write | Publish data to Internet of Things using ThingSpeak (R2021a 以降) |
Modbus RS485 Client Read | Client device reads data from server device register(s) over RS485 network (R2021b 以降) |
Modbus RS485 Client Write | Client device writes data to server device register(s) over RS485 network (R2021b 以降) |
Modbus RS485 Server Read | Server device reads data from the server device register over RS485 network (R2021b 以降) |
Modbus RS485 Server Write | Server device writes data to server device register over RS485 network (R2021b 以降) |
HTS221 Humidity Sensor | Measure relative humidity and temperature from HTS221 sensor (R2021b 以降) |
LIS3MDL Magnetometer Sensor | Measure magnetic field strength and temperature from LIS3MDL Magnetometer sensor (R2021b 以降) |
LPS22HB Pressure Sensor | Measure barometric air pressure and temperature from LPS22HB sensor (R2021b 以降) |
LSM6DSL IMU Sensor | Measure linear acceleration, angular rate, and temperature from LSM6DSL sensor (R2021b 以降) |
ユーティリティ ブロック
Byte Pack | 入力信号を uint8 ベクトルに変換 |
Byte Unpack | uint8 ベクトルを入力信号に変換 |
Byte Reversal | 入力語のバイト順を反転 |
Memory Copy | Copy data from and to memory section |
モデル設定
トピック
- Open Block Library for Embedded Coder Support Package for STMicroelectronics STM32 Processors
Open Block Library Embedded Coder® Support Package for STMicroelectronics® STM32 Processors.
- Configure Network Settings for STMicroelectronics Discovery Boards Ethernet Resource
Configure network settings for STMicroelectronics Discovery Boards Ethernet resource.
- Log Signals on SD Card
Log signals from Simulink® models on an SD card mounted on the target hardware.
- Usage of Alternate Pin Names
Accessing multiple hardware peripherals connected to the same pin using alternate pin names.
注目の例
Getting Started with Embedded Coder Support Package for STMicroelectronics Discovery Boards
Demonstrates how to use the Embedded Coder® Support Package for STMicroelectronics® STM32 Processors to run a Simulink® model on an STMicroelectronics STM32F4-Discovery, STM32F746G-Discovery, or STM32F769I-Discovery board.
Code Optimization Using CMSIS DSP Library
Use code replacement libraries for ARM® Cortex®-M processors to generate optimized code for the STMicroelectronics® STM32F4-Discovery board using Embedded Coder® Support Package for STMicroelectronics STM32 Processors.
Push Button and LED
Use the GPIO blocks in the STMicroelectronics® STM32F4-Discovery library to control the push-button and the LED's on the STMicroelectronics® STM32F4-Discovery board.
Parametric Audio Equalizer for STM32 Discovery Boards
Model a three band parametric equalizer algorithm and run it on the ARM® Cortex®-M based STMicroelectronics® STM32 Discovery boards using Embedded Coder® Support Package for STMicroelectronics STM32 Processors.
G.729 Voice Activity Detection for STM32 Processor Based Board
Model the ITU-T G.729 Voice Activity Detector (VAD) algorithm and run it on the ARM® Cortex®-M based STMicroelectronics® STM32 boards using Embedded Coder® Support Package for STMicroelectronics STM32 Processors.
Asynchronous Scheduling for STM32F4-Discovery Board
Model asynchronous scheduling using the Hardware Interrupt block for the STMicroelectronics® STM32F4-Discovery board using Asynchronous Scheduling for STM32F4-Discovery Board using Embedded Coder® Support Package for STMicroelectronics STM32 Processors.
Exchanging Ethernet Data with STM32F746G Discovery Board
Use Embedded Coder® Support Package for STMicroelectronics® STM32 Processors to run on the STM32F746G Discovery Board to send and receive the UDP and TCP messages.
Read Data from I2C-Based Sensors on STM32L475VG Discovery Board
Use the Embedded Coder® Support Package for STMicroelectronics® STM32 Processors to configure and read data from these sensors on the STM32L475VG Discovery (B-L475E-IOT01A) board:
MODBUS RS485 Communication Between Client and Server Devices Using STMicroelectronics Discovery Board
Use the Embedded Coder® Support Package for STMicroelectronics® STM32 Processors to implement a MODBUS® RS485 asynchronous, serial communication between MODBUS client and server devices. The example also shows the four modes of operation: Client Read, Client Write, Server Read, and Server Write.
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
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)