Analog Peripherals
Create Simulink® models with the analog peripherals such as ADC, Comparator, DAC, and more available with STM32 processors. Configure the Simulink model to interface with supported target hardware using model configuration parameters.
Support for STM32 processor based board with Simulink uses STM32CubeMX graphical tool. STM32CubeMX tool is a graphical interface that you can use to configure peripherals of STM32 processors and generate peripheral initialization code for the STM32 processors that you select. You can configure the STM32 Processor-Based Boards to use the STM32CubeMX project with Simulink to generate code and deploy the code to the hardware.
Blocks
Analog to Digital Converter | Convert analog signal on ADC input pin to digital signal (Since R2021b) |
Comparator | Compare two analog inputs on peripheral and provide results (Since R2023b) |
Digital to Analog Converter | Configures the DAC to generate an analog voltage on the specified DAC channel (Since R2023a) |
Topics
- Configure STM32 Processor-Based Boards using STM32CubeMX with Simulink
Configure the STM32 Processors-Based Boards to use STM32CubeMX project with Simulink.
- Set Up Scheduling Options for STM32 Processor-Based Boards
Setting up scheduling options for STM32 processor based boards.
- STM32CubeMX Configuration for Voltage Mode Control
Instructions for STM32CubeMX configuration.
- Use SoC Blockset Pass-Through Block Simulation
Use the SoC Blockset™ block pass through to add simulation to STM blocks.