Main Content

STM32WBxx Based Boards

Configure and use peripherals such as ADC, Encoder, I2C, Timer, SPI, UART, and more

Create Simulink® models with the peripherals such as ADC, CAN, DAC, Encoder, I2C, I2S, Timer, UART, and more available for STM32WBxx processor-based boards. You can prepare the model for STM32WBxx processor-based boards to use the STM32CubeMX project with Simulink to generate code and deploy the code to the hardware. Configure the Simulink model to interface with supported target hardware using model configuration parameters.

Blocks

expand all

Analog to Digital ConverterConvert analog signal on ADC input pin to digital signal (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
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)
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)
Digital Port ReadRead GPIO pin status (Since R2021b)
Digital Port WriteSet GPIO pin status (Since R2021b)
Hardware InterruptTrigger downstream function-call subsystems from interrupt service routine (Since R2021b)
EncoderMeasure rotation of encoder in counts (Since R2022b)
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)
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
Idle TaskCreate free-running task (Since R2024a)
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