2023-06-16 11:23 AM
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?
Solved! Go to Solution.
2023-06-18 06:09 AM
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
2023-06-18 06:09 AM
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
2023-08-21 09:25 AM
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.