You are on page 1of 4

aMicrophone loop back application

GPIO

ADC/DAC (DMA)

DSP

Stm32f407vg (STM)

Stm32 discovery

Data source(some input) – data processing (signal) – extention module

Install develop environment

STM32 Cube IDE download – do not use long path.

Clock speed, clock configuration 16 to 168 mhz

Using internal clock – inaccurate but good enough

Pin configuration

- PA0 user button


- PD15 Blue Led
- Hal gpio generic driver(pdf)

afwaxxxxx

sdasf
Poti(pc2) -> ADC(resolution, sampling rate) -> ->TIMER -> Fab(PES)

Int(Interrupt), DMA, at 84 Mhz PWM

While(1) {

ADC

Pwm duty cycle -> Delay

Timer9

First adjust clock configuration

Clock prescaler

Resolution

Continuos conversion mode

When we set timer, on Parameter settings The Prescaler has to be adjusted usually put the number
that makes 10 khz

Counter Period 4096(12bits)

68.25

7.2.4 HAL_ADC_Start() for interrupt mode , HAL_ADC_Start_DMA()


For 12 bits we choose half word

You will get DMA interrupt and no more ADC interrupt


Interrupt version

Direct memory access

You might also like