Arbitrary Waveform Generator

<< Click to Display Table of Contents >>

Navigation:  STM32F4 Target > Block References > On-chip Peripherals > DAC >

Arbitrary Waveform Generator

Previous pageReturn to chapter overviewNext page

User Interface

How this block appears in a Simulink model?

dmadacblock

What can be configured?

dmadacblockmask

When to use this block?

Use this block to output pre-determined sequence of voltage values to Digital to Analog Converter modules of the MCU.

STM32F4 has a maximum number of 2 DAC channels, meaning STM32F4 can be used as a 2 channels arbitrary function generator (by default between 0 - 3.3V).

How does this block work?

Users give an array of voltage values to be output to the DAC modules.

This block uses DMA to automatically control the output of DAC, minimizing MCU load.

Select "Loop Data" to enable output values to loop back continuously.

Check "Enable Simulation" to enable output ports for output DAC values during simulation.

Demo

Arbitrary Waveform Generator