Skip to main content
XLin.2
Associate II
June 16, 2023
Solved

Question about SPI2 using PC_2 and PC_3

  • June 16, 2023
  • 2 replies
  • 1701 views

My project (Stm32H753) has 2 identical external ADCs, one on SPI2 and one on SPI3. The one on SPI3 is working fine, but I am having problems with SPI2. The code for them are the same, except of course different 'hspi' and pin assignments.

The SPI is configured to use PC2 and 3 as MISO and MOSI, I probed SPI signals, everything looked fine except on MISO (ADC output) the voltage is only 1Vpp. Open the analog switches (SYSCFG->PMCR) didn't help much (instead reading all 0s, openning the switches gives all 0xfff readings. I have internal pullup for MISO).

Just curious, when PC_2 and PC_3 are labeled with '_', are there any special steps to use them for SPI2?

 

This topic has been closed for replies.
Best answer by STOne-32

Dear @XLin.2 ,

You can check this Knowledge Base FAQ :

_C pins are dedicated for a direct connection to ADC input stage, they are special with restrictions when used as Digital for SPI or any other peripherals such as current limitation - specified in the datasheet and Errata.

Ciao 

2 replies

STOne-32
STOne-32Best answer
ST Technical Moderator
June 18, 2023

Dear @XLin.2 ,

You can check this Knowledge Base FAQ :

_C pins are dedicated for a direct connection to ADC input stage, they are special with restrictions when used as Digital for SPI or any other peripherals such as current limitation - specified in the datasheet and Errata.

Ciao 

XLin.2
XLin.2Author
Associate II
August 21, 2023

Thanks Ciao. I realized we are using 208 pin package which does have the same pads as 240 pins. We will assign other pins for the SPI.