cancel
Showing results for 
Search instead for 
Did you mean: 

I am working with the STM32L476ZETx MCU, and I need 18 ADC pins and 42 GPIO pins. However I'm having trouble doing this in STM32CubeMX.

Divya
Associate II

The first 16 lines (all single ended) are neatly assigned one pin each. However the 17th and 18th lines are assigned on the same pins as the first two lines. It would be great if you could help me understand how this works.

2 REPLIES 2

ADC1 and ADC2 use the same pins, i.e. those first 16 spend all inputs of ADC1 and ADC2.

The first 4 inputs of ADC3 still use the same pins as the first 4 inputs of ADC1 and ADC2, but then ADC3 inputs 6 to 13 are on different pins - PF3 to PF10 (pins 13-15 and 18-22).

The pinout table in datasheet is relatively clear in this.

JW

Thank you!