Main Content

Modeling

Prepare model for hardware connection using STM32 processor-based boards, add blocks to support hardware protocols

Blocks

expand all

Analog to Digital ConverterConvert analog signal on ADC input pin to digital signal (Since R2021b)
CAN ReadRead message from CAN network (Since R2023a)
CAN WriteWrite data to the CAN Bus (Since R2023a)
Digital Port ReadRead GPIO pin status (Since R2021b)
Digital Port WriteSet GPIO pin status (Since R2021b)
Digital to Analog ConverterConfigures the DAC to generate an analog voltage on the specified DAC channel (Since R2023a)
EncoderMeasure rotation of encoder in counts (Since R2022b)
Hardware InterruptTrigger downstream function-call subsystems from interrupt service routine (Since R2021b)
I2C Controller ReadRead data from I2C peripheral device or I2C peripheral device register
I2C Controller WriteWrite data to I2C peripheral device or I2C peripheral device register
I2S Audio OutSend processed audio samples to audio devices (Since R2023a)
I2S Mic InRead audio sample from MEMS microphone available on the STM32F4xx based board (Since R2023a)
PWM OutputGenerate square waveform on enabled channels using timer module (Since R2021b)
TCP ReceiveReceive data over TCP/IP network from remote host (Since R2022b)
TCP SendSend data over TCP/IP network to remote host (Since R2022b)
TimerStarts timer counter and provides current counter value (Since R2022b)
Timer CaptureOutput the capture compare register value (Since R2022b)
UART/USART ReadRead data from the Universal Asynchronous Receiver Transmitter (UART/USART) port (Since R2022a)
UART/USART WriteWrite serial data from the Universal Asynchronous Receiver Transmitter (UART/USART) port (Since R2022a)
UDP ReceiveReceive UDP packets from UDP host (Since R2022b)
UDP SendSend UDP packets to UDP host (Since R2022b)
Analog to Digital ConverterConvert analog signal on ADC input pin to digital signal (Since R2021b)
CAN ReadRead message from CAN network (Since R2023a)
CAN WriteWrite data to the CAN Bus (Since R2023a)
Digital Port ReadRead GPIO pin status (Since R2021b)
Digital Port WriteSet GPIO pin status (Since R2021b)
Digital to Analog ConverterConfigures the DAC to generate an analog voltage on the specified DAC channel (Since R2023a)
EncoderMeasure rotation of encoder in counts (Since R2022b)
Hardware InterruptTrigger downstream function-call subsystems from interrupt service routine (Since R2021b)
I2C Controller ReadRead data from I2C peripheral device or I2C peripheral device register
I2C Controller WriteWrite data to I2C peripheral device or I2C peripheral device register
I2S Audio OutSend processed audio samples to audio devices (Since R2023a)
I2S Mic InRead audio sample from MEMS microphone available on the STM32F4xx based board (Since R2023a)
PWM OutputGenerate square waveform on enabled channels using timer module (Since R2021b)
SPI ReceiveReceive data through Serial Peripheral Interface (SPI) on target (Since R2023a)
SPI TransmitTransmit data through Serial Peripheral Interface (SPI) on target (Since R2023a)
SPI Controller TransferWrite data to and read data from SPI peripheral device (Since R2023a)
TCP ReceiveReceive data over TCP/IP network from remote host (Since R2022b)
TCP SendSend data over TCP/IP network to remote host (Since R2022b)
TimerStarts timer counter and provides current counter value (Since R2022b)
Timer CaptureOutput the capture compare register value (Since R2022b)
UART/USART ReadRead data from the Universal Asynchronous Receiver Transmitter (UART/USART) port (Since R2022a)
UART/USART WriteWrite serial data from the Universal Asynchronous Receiver Transmitter (UART/USART) port (Since R2022a)
UDP ReceiveReceive UDP packets from UDP host (Since R2022b)
UDP SendSend UDP packets to UDP host (Since R2022b)
Analog to Digital ConverterConvert analog signal on ADC input pin to digital signal (Since R2021b)
ComparatorCompare two analog inputs on peripheral and provide results (Since R2023b)
CORDICEnable hardware acceleration of trigonometric and hyperbolic mathematical functions (Since R2023b)
Digital to Analog ConverterConfigures the DAC to generate an analog voltage on the specified DAC channel (Since R2023a)
Digital Port ReadRead GPIO pin status (Since R2021b)
Digital Port WriteSet GPIO pin status (Since R2021b)
EncoderMeasure rotation of encoder in counts (Since R2022b)
FDCAN ReadRead data from CAN FD Bus (Since R2023a)
FDCAN WriteWrite data to the FDCAN Bus (Since R2023a)
Hardware InterruptTrigger downstream function-call subsystems from interrupt service routine (Since R2021b)
Higher Resolution TimerGenerate high resolution pulse width modulated waveforms (Since R2022b)
I2C Controller ReadRead data from I2C peripheral device or I2C peripheral device register
I2C Controller WriteWrite data to I2C peripheral device or I2C peripheral device register
I2S Audio OutSend processed audio samples to audio devices (Since R2023a)
I2S Mic InRead audio sample from MEMS microphone available on the STM32F4xx based board (Since R2023a)
PWM OutputGenerate square waveform on enabled channels using timer module (Since R2021b)
SPI ReceiveReceive data through Serial Peripheral Interface (SPI) on target (Since R2023a)
SPI TransmitTransmit data through Serial Peripheral Interface (SPI) on target (Since R2023a)
SPI Controller TransferWrite data to and read data from SPI peripheral device (Since R2023a)
TimerStarts timer counter and provides current counter value (Since R2022b)
Timer CaptureOutput the capture compare register value (Since R2022b)
UART/USART ReadRead data from the Universal Asynchronous Receiver Transmitter (UART/USART) port (Since R2022a)
UART/USART WriteWrite serial data from the Universal Asynchronous Receiver Transmitter (UART/USART) port (Since R2022a)
Analog to Digital ConverterConvert analog signal on ADC input pin to digital signal (Since R2021b)
ComparatorCompare two analog inputs on peripheral and provide results (Since R2023b)
CORDICEnable hardware acceleration of trigonometric and hyperbolic mathematical functions (Since R2023b)
Digital Port ReadRead GPIO pin status (Since R2021b)
Digital Port WriteSet GPIO pin status (Since R2021b)
Digital to Analog ConverterConfigures the DAC to generate an analog voltage on the specified DAC channel (Since R2023a)
EncoderMeasure rotation of encoder in counts (Since R2022b)
FDCAN ReadRead data from CAN FD Bus (Since R2023a)
FDCAN WriteWrite data to the FDCAN Bus (Since R2023a)
Hardware InterruptTrigger downstream function-call subsystems from interrupt service routine (Since R2021b)
Higher Resolution TimerGenerate high resolution pulse width modulated waveforms (Since R2022b)
I2C Controller ReadRead data from I2C peripheral device or I2C peripheral device register
I2C Controller WriteWrite data to I2C peripheral device or I2C peripheral device register
PWM OutputGenerate square waveform on enabled channels using timer module (Since R2021b)
SPI ReceiveReceive data through Serial Peripheral Interface (SPI) on target (Since R2023a)
SPI TransmitTransmit data through Serial Peripheral Interface (SPI) on target (Since R2023a)
SPI Controller TransferWrite data to and read data from SPI peripheral device (Since R2023a)
TCP ReceiveReceive data over TCP/IP network from remote host (Since R2022b)
TCP SendSend data over TCP/IP network to remote host (Since R2022b)
TimerStarts timer counter and provides current counter value (Since R2022b)
Timer CaptureOutput the capture compare register value (Since R2022b)
UART/USART ReadRead data from the Universal Asynchronous Receiver Transmitter (UART/USART) port (Since R2022a)
UART/USART WriteWrite serial data from the Universal Asynchronous Receiver Transmitter (UART/USART) port (Since R2022a)
UDP ReceiveReceive UDP packets from UDP host (Since R2022b)
UDP SendSend UDP packets to UDP host (Since R2022b)
Analog to Digital ConverterConvert analog signal on ADC input pin to digital signal (Since R2021b)
CAN ReadRead message from CAN network (Since R2023a)
CAN WriteWrite data to the CAN Bus (Since R2023a)
ComparatorCompare two analog inputs on peripheral and provide results (Since R2023b)
Digital Port ReadRead GPIO pin status (Since R2021b)
Digital Port WriteSet GPIO pin status (Since R2021b)
Digital to Analog ConverterConfigures the DAC to generate an analog voltage on the specified DAC channel (Since R2023a)
EncoderMeasure rotation of encoder in counts (Since R2022b)
Hardware InterruptTrigger downstream function-call subsystems from interrupt service routine (Since R2021b)
I2C Controller ReadRead data from I2C peripheral device or I2C peripheral device register
I2C Controller WriteWrite data to I2C peripheral device or I2C peripheral device register
PWM OutputGenerate square waveform on enabled channels using timer module (Since R2021b)
TimerStarts timer counter and provides current counter value (Since R2022b)
Timer CaptureOutput the capture compare register value (Since R2022b)
UART/USART ReadRead data from the Universal Asynchronous Receiver Transmitter (UART/USART) port (Since R2022a)
UART/USART WriteWrite serial data from the Universal Asynchronous Receiver Transmitter (UART/USART) port (Since R2022a)
Analog to Digital ConverterConvert analog signal on ADC input pin to digital signal (Since R2021b)
ComparatorCompare two analog inputs on peripheral and provide results (Since R2023b)
Digital Port ReadRead GPIO pin status (Since R2021b)
Digital Port WriteSet GPIO pin status (Since R2021b)
Digital to Analog ConverterConfigures the DAC to generate an analog voltage on the specified DAC channel (Since R2023a)
EncoderMeasure rotation of encoder in counts (Since R2022b)
FDCAN ReadRead data from CAN FD Bus (Since R2023a)
FDCAN WriteWrite data to the FDCAN Bus (Since R2023a)
Hardware InterruptTrigger downstream function-call subsystems from interrupt service routine (Since R2021b)
I2C Controller ReadRead data from I2C peripheral device or I2C peripheral device register
I2C Controller WriteWrite data to I2C peripheral device or I2C peripheral device register
PWM OutputGenerate square waveform on enabled channels using timer module (Since R2021b)
TimerStarts timer counter and provides current counter value (Since R2022b)
Timer CaptureOutput the capture compare register value (Since R2022b)
UART/USART ReadRead data from the Universal Asynchronous Receiver Transmitter (UART/USART) port (Since R2022a)
UART/USART WriteWrite serial data from the Universal Asynchronous Receiver Transmitter (UART/USART) port (Since R2022a)
Analog to Digital ConverterConvert analog signal on ADC input pin to digital signal (Since R2021b)
Digital Port ReadRead GPIO pin status (Since R2021b)
Digital Port WriteSet GPIO pin status (Since R2021b)
EncoderMeasure rotation of encoder in counts (Since R2022b)
Hardware InterruptTrigger downstream function-call subsystems from interrupt service routine (Since R2021b)
I2C Controller ReadRead data from I2C peripheral device or I2C peripheral device register
I2C Controller WriteWrite data to I2C peripheral device or I2C peripheral device register
PWM OutputGenerate square waveform on enabled channels using timer module (Since R2021b)
TimerStarts timer counter and provides current counter value (Since R2022b)
Timer CaptureOutput the capture compare register value (Since R2022b)
UART/USART ReadRead data from the Universal Asynchronous Receiver Transmitter (UART/USART) port (Since R2022a)
UART/USART WriteWrite serial data from the Universal Asynchronous Receiver Transmitter (UART/USART) port (Since R2022a)
Analog to Digital ConverterConvert analog signal on ADC input pin to digital signal (Since R2021b)
Digital Port ReadRead GPIO pin status (Since R2021b)
Digital Port WriteSet GPIO pin status (Since R2021b)
EncoderMeasure rotation of encoder in counts (Since R2022b)
FDCAN ReadRead data from CAN FD Bus (Since R2023a)
FDCAN WriteWrite data to the FDCAN Bus (Since R2023a)
Hardware InterruptTrigger downstream function-call subsystems from interrupt service routine (Since R2021b)
I2C Controller ReadRead data from I2C peripheral device or I2C peripheral device register
I2C Controller WriteWrite data to I2C peripheral device or I2C peripheral device register
PWM OutputGenerate square waveform on enabled channels using timer module (Since R2021b)
TimerStarts timer counter and provides current counter value (Since R2022b)
Timer CaptureOutput the capture compare register value (Since R2022b)
UART/USART ReadRead data from the Universal Asynchronous Receiver Transmitter (UART/USART) port (Since R2022a)
UART/USART WriteWrite serial data from the Universal Asynchronous Receiver Transmitter (UART/USART) port (Since R2022a)
Byte PackConvert input signals to uint8 vector
Byte Unpack Convert uint8 vector to input signals
Byte ReversalReverse order of bytes in input word
Memory CopyCopy data from and to memory section
Protocol EncoderEncode input data into a uint8 byte stream by specifying the packet structure (Since R2023a)
Protocol DecoderDecode a uint8 byte stream by specifying the packet structure (Since R2023a)

Topics