Contenuto principale

Modeling

R2026b
Prepare model for hardware connection, add blocks to support hardware protocols

Prepare the model for hardware connection using STMicroelectronics Discovery boards, add blocks to support hardware protocols.

Support for STMicroelectronics® Discovery™ boards will be removed in a future release.

You can migrate your models that use STM32F4-Discovery library blocks to use the blocks from the STM32F4xx based block libraries. For more information, see Migrate STMicroelectronics STM32F4-Discovery Blocks to STM32F4xx Based Library Blocks and STMCubeMX Workflow.

Blocks

expand all

System Core

Analog Input blockAnalog InputMeasure voltage of analog input pin
Digital Read blockDigital ReadRead logical state of digital input pin
Digital Write blockDigital WriteSet logical state of digital output pin
PWM Output blockPWM OutputGenerate square wave on the specified output pin
SCI Read blockSCI ReadRead N-by-1 array of data on UART
SCI Write blockSCI WriteSend N-by-1 array of data to UART
External Interrupt blockExternal InterruptTrigger the downstream function-call subsystem from an Interrupt Service Routine

Multimedia

Audio Input blockAudio InputRead audio sample from audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board
Audio Output blockAudio OutputSend processed audio samples to audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board

Communication

I2C Controller Read blockI2C Controller ReadRead data from I2C Peripheral devices or I2C Peripheral devices register
I2C Controller Write blockI2C Controller WriteWrite data to I2C peripheral devices or I2C peripheral devices register
SPI Controller Transfer blockSPI Controller TransferWrite data to and read data from SPI peripheral devices
SPI Register Read blockSPI Register ReadRead data from SPI peripheral devices register
SPI Register Write blockSPI Register WriteWrite data to registers of SPI peripheral devices
MODBUS RS485 Client ReadModbus RS485 Client ReadClient device reads data from server device register(s) over RS485 network
MODBUS RS485 Client WriteModbus RS485 Client WriteClient device writes data to server device register(s) over RS485 network
MODBUS RS485 Server WriteModbus RS485 Server WriteServer device writes data to server device register over RS485 network
MODBUS RS485 Server ReadModbus RS485 Server ReadServer device reads data from the server device register over RS485 network

Network

TCP Receive blockTCP ReceiveReceive data over TCP/IP network from remote host
TCP Send blockTCP SendSend data over TCP/IP network to remote host
UDP Receive blockUDP ReceiveReceive UDP packets from UDP host
UDP Send blockUDP SendSend UDP packets to UDP host

System Core

Audio Input blockAudio InputRead audio sample from audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board
Audio Output blockAudio OutputSend processed audio samples to audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board
Digital Read blockDigital ReadRead logical state of digital input pin
Digital Write blockDigital WriteSet logical state of digital output pin
PWM Output blockPWM OutputGenerate square wave on the specified output pin
SCI Read blockSCI ReadRead N-by-1 array of data on UART
SCI Write blockSCI WriteSend N-by-1 array of data to UART
External Interrupt blockExternal InterruptTrigger the downstream function-call subsystem from an Interrupt Service Routine

Multimedia

Audio Input blockAudio InputRead audio sample from audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board
Audio Output blockAudio OutputSend processed audio samples to audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board

Communication

I2C Controller Read blockI2C Controller ReadRead data from I2C Peripheral devices or I2C Peripheral devices register
I2C Controller Write blockI2C Controller WriteWrite data to I2C peripheral devices or I2C peripheral devices register
SPI Controller Transfer blockSPI Controller TransferWrite data to and read data from SPI peripheral devices
SPI Register Read blockSPI Register ReadRead data from SPI peripheral devices register
SPI Register Write blockSPI Register WriteWrite data to registers of SPI peripheral devices
MODBUS RS485 Client ReadModbus RS485 Client ReadClient device reads data from server device register(s) over RS485 network
MODBUS RS485 Client WriteModbus RS485 Client WriteClient device writes data to server device register(s) over RS485 network
MODBUS RS485 Server WriteModbus RS485 Server WriteServer device writes data to server device register over RS485 network
MODBUS RS485 Server ReadModbus RS485 Server ReadServer device reads data from the server device register over RS485 network

Network

TCP Receive blockTCP ReceiveReceive data over TCP/IP network from remote host
TCP Send blockTCP SendSend data over TCP/IP network to remote host
UDP Receive blockUDP ReceiveReceive UDP packets from UDP host
UDP Send blockUDP SendSend UDP packets to UDP host

Internet of Things

WiFi TCP Receive blockWiFi TCP ReceiveReceive TCP/IP packets from another TCP/IP host on internet network
WiFi TCP Send blockWiFi TCP SendSend TCP/IP packets to another TCP/IP host on internet network
ThingSpeak Read blockThingSpeak ReadRead data stored in ThingSpeak channel
ThingSpeak Write blockThingSpeak WritePublish data to Internet of Things using ThingSpeak

Sensors

block icon for HTS221 Humidity SensorHTS221 Humidity SensorMeasure relative humidity and temperature from HTS221 sensor (Since R2025a)
block icon for LIS3MDL Magnetometer sensorLIS3MDL Magnetometer SensorMeasure magnetic field strength and temperature from LIS3MDL Magnetometer sensor (Since R2025a)
block icon for LPS22HB Pressure SensorLPS22HB Pressure SensorMeasure barometric air pressure and temperature from LPS22HB sensor (Since R2025a)
LSM6DSL sensor blockLSM6DSL IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DSL sensor (Since R2025a)

Utilities Blocks

Byte Pack blockByte PackConvert input signals to uint8 vector
Byte Unpack blockByte Unpack Convert uint8 vector to input signals
Byte Reversal blockByte ReversalReverse order of bytes in input word
Memory Copy blockMemory CopyCopy data from and to memory section

Topics

Featured Examples