Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years ago.
spi pins of stm32l476vg
Hi, I am newbie to the stm32l476vg. I studied documents it have three spi's could please help which one i have to use in the code? in block diagram it shows total pins of PA_X,PB_X,PC_X,PE_X...but in board it shows only some pins what about remaining pins? please help me Thanks in Advance
Regards, Gupta
Question relating to:
1 Answer
7 years ago.
Arnab,
You are correct in that there are 3 available SPI pin-sets on the DISCO-L476VG.
If you are just concerned with using one of the SPI buses, I would recommend using the default SPI bus broken out to the following pins:
- PE_12 - SPI_NSS
- PE_13 - SPI_CLK
- PE_14 - SPI_MISO
- PE_15 - SPI_MOSI
Those pins can be found on the DISCO-L476VG page on the bottom right of the image.
Additional SPI pins(if for some reason you aren't using the default SPI bus) can be found by looking at the PeripheralPins.c file.