2021-01-05 07:52 AM - edited 2025-01-07 09:55 AM
What is the state after reset of STM32H7 analog switches between Pxy_C and Pxy pins/balls?
The Reference Manual RM0399 Rev 3 (page 584) gives a figure as the one below , but not all Pxy_C and Pxy are accessible depending on the STM32H7 package.
The default state of the analog switches can be deduced from the STM32H7 package and can be read with a debugger.
According to these rules, the default state of the switches depends on the package:
The switch state can be read/modified in SYSCFG_PMCR.PxySO (Pxy Switch Open):
0: Analog switch closed (pads are connected through the analog switch)
1: Analog switch open (2 separated pads)
At this point, the datasheet is needed to know which pins are available on the STM32H7 package (pinout/ballout figure and pin/ball definition table).
The value of this SYSCFG_PMCR register can also be read in a debugger (after having enabled the clock by __HAL_RCC_SYSCFG_CLK_ENABLE()).