DSP Concepts
Using GPIO Inputs and Outputs
The Discovery boards have a variety of LEDs, I/O pins, and a blue user button. Audio
Weaver has a GPIO block that allows either output to a GPIO pin or led or input from a
GPIO pin or the blue user button. However, the block has to be setup to access the
desired pin. Each pin and led on the board is labelled. The GPIO block numbers pins
starting with pin 1 and these need to be mapped to the actual pins on the board.
STM32F407VG-Discovery Board Available GPIO Pin Map
GPIO Block
Board Input Pin
Pin Number
1
Blue User Button
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
STM32F4xx Discovery Board Users Guide
Board Output Pin
Name
Name
LED6
PA1
LED3
PA2
LED5
PA3
PA1
PA8
PA2
PA15
PA3
PB0
PA8
PB1
PA15
PB4
PB0
PB5
PB1
PB7
PB4
PB8
PB5
PB11
PB7
PB12
PB8
PB13
PB11
PB14
PB12
PB15
PB13
PC1
PB14
PC2
PB15
PC4
PC1
PC5
PC2
PC6
PC4
PC8
PC5
PC9
PC6
PC11
PC8
PC13
PC9
PC14
PC11
PC15
PC13
PD0
PC14
PD1
PC15
PD2
PD0
PD3
PD1
PD6
PD2
Page: 12 of 13
Need help?
Do you have a question about the STM32F4 Series and is the answer not in the manual?