Link
On this page

See more info in the STM32duino repository

PWM Timer Pins

Pin PWM Timer Channel Generic label NUCLEO_L152RE
PA_0 (no. alternatives: 1) TIM2 1 D0/A0 PA_0
PA_0_ALT1 TIM5 1
PA_1 (no. alternatives: 1) TIM2 2 D1/A1 PA_1
PA_1_ALT1 TIM5 2
PA_2 (no. alternatives: 2) TIM2 3 D2/A2 PA_2
PA_2_ALT1 TIM5 3
PA_2_ALT2 TIM9 1
PA_3 (no. alternatives: 2) TIM2 4 D3/A3 PA_3
PA_3_ALT1 TIM5 4
PA_3_ALT2 TIM9 2
PA_5 TIM2 1 D5/A5 PA_5
PA_6 (no. alternatives: 1) TIM3 1 D6/A6 PA_6
PA_6_ALT1 TIM10 1
PA_7 (no. alternatives: 1) TIM3 2 D7/A7 PA_7
PA_7_ALT1 TIM11 1
PA_15 TIM2 1 D15 PA_15
PB_0 TIM3 3 D16/A8 PB_0
PB_1 TIM3 4 D17/A9 PB_1
PB_3 TIM2 2 D19 PB_3
PB_4 TIM3 1 D20 PB_4
PB_5 TIM3 2 D21 PB_5
PB_6 TIM4 1 D22 PB_6
PB_7 TIM4 2 D23 PB_7
PB_8 (no. alternatives: 1) TIM4 3 D24 ST Morpho
PB_8_ALT1 TIM10 1
PB_9 (no. alternatives: 1) TIM4 4 D25 PB_9
PB_9_ALT1 TIM11 1
PB_10 TIM2 3 D26 PB_10
PB_11 TIM2 4 D27 PB_11
PB_12 TIM10 1 D28/A11 PB_12
PB_13 TIM9 1 D29/A12 PB_13
PB_14 TIM9 2 D30/A13 PB_14
PB_15 TIM11 1 D31/A14 PB_15
PC_6 TIM3 1 D38 PC_6
PC_7 TIM3 2 D39 PC_7
PC_8 TIM3 3 D40 PC_8
PC_9 TIM3 4 D41 CN10 Right side

ADC Pins

Pin ADC Channel Generic label NUCLEO_L152RE
PA_0 ADC1 0 D0/A0 PA_0
PA_1 ADC1 1 D1/A1 PA_1
PA_2 ADC1 2 D2/A2 PA_2
PA_3 ADC1 3 D3/A3 PA_3
PA_4 ADC1 4 D4/A4 PA_4
PA_5 ADC1 5 D5/A5 PA_5
PA_6 ADC1 6 D6/A6 PA_6
PA_7 ADC1 7 D7/A7 PA_7
PB_0 ADC1 8 D16/A8 PB_0
PB_1 ADC1 9 D17/A9 PB_1
PB_2 ADC1 0 D18/A10 PB_2
PB_12 ADC1 18 D28/A11 PB_12
PB_13 ADC1 19 D29/A12 PB_13
PB_14 ADC1 20 D30/A13 PB_14
PB_15 ADC1 21 D31/A14 PB_15
PC_0 ADC1 10 D32/A15 PC_0
PC_1 ADC1 11 D33/A16 PC_1
PC_2 ADC1 12 D34/A17 PC_2
PC_3 ADC1 13 D35/A18 CN7 Right Side
PC_4 ADC1 14 D36/A19 PC_4
PC_5 ADC1 15 D37/A20 PC_5

Back to Main Page