cancel
Showing results for 
Search instead for 
Did you mean: 

Low power modes on STM32L4 series MCU

Vvenk.1
Associate

Hi,

Below is my requirement:

  1. Need to send a DAC sample every 2ms (on 32KHZ clock)
  2. Every 12 sec will do an access to external flash to copy a block of memory (on HSI clock)

how can i accomplish this? am new to microcontroller, can anyone help me with some link/ tutorial on this.

Regards,

Venkatesh

2 REPLIES 2
KnarfB
Principal III

A tiny example using a timer driven DMA triggering DAC is this: https://m0agx.eu/2019/03/30/generating-signals-with-stm32l4-timer-dma-and-dac/

This works also in sleep mode where the MCU core is halted except for interrupt handling.

The block copy from flash could be done in the circular DMA (half-)completion handlers.

Imen.D
ST Employee

Hello @Vvenk.1​ ,

You can get inspired from the DAC example for your board within STM32CubeL4 package and refer to the STM32L4-DAC training and

AN3126 Application note Audio and waveform generation using the DAC in STM32 products

Hope this helps you.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen