Skip to main content
Divya
Associate II
Feb 27, 2020 7:25 PM UTC
Question

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.

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.

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
Feb 28, 2020 1:01 AM UTC

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

Divya
DivyaAuthor
Associate II
Feb 28, 2020 4:25 PM UTC

Thank you!