2021-12-03 06:00 AM
i am using stm32h723zg nucleo board, I'm using adc's direct channe, There are 2 different analog channel definition processes for the direct channel.what is the difference between the two.
A-)LL_SYSCFG_OpenAnalogSwitch(LL_SYSCFG_ANALOG_SWITCH_PC2|LL_SYSCFG_ANALOG_SWITCH_PC3);
B-) GPIO_InitStruct.Pin = LL_GPIO_PIN_2 | LL_GPIO_PIN_3;
GPIO_InitStruct.Mode = LL_GPIO_MODE_ANALOG;
GPIO_InitStruct.Pull = LL_GPIO_PULL_NO;
LL_GPIO_Init(GPIOC, &GPIO_InitStruct);
İf ı use A,noise is increasing,,A is more than noise B
Solved! Go to Solution.
2021-12-03 06:20 AM
PC2 and PC2_C are potentially separate pins. The latter has a direct path to the ADC and allows for faster sampling, with some drawbacks.
Some chips, such as the one on this board, only have a PC2_C pin broken out. On these chips, if you want to use the ADC3_IN0 function, you do not need the switch closed. If you want to use functions of the PC2 pin, you need the switch closed so that the physical PC2_C pin is connected to PC2. The switch is closed by default.
PC2_C is always in analog mode and needs no initialization.
If the switch is closed, you are increasing capacitance on the line which can reduce noise (and accuracy).
More info here:
2021-12-03 06:20 AM
PC2 and PC2_C are potentially separate pins. The latter has a direct path to the ADC and allows for faster sampling, with some drawbacks.
Some chips, such as the one on this board, only have a PC2_C pin broken out. On these chips, if you want to use the ADC3_IN0 function, you do not need the switch closed. If you want to use functions of the PC2 pin, you need the switch closed so that the physical PC2_C pin is connected to PC2. The switch is closed by default.
PC2_C is always in analog mode and needs no initialization.
If the switch is closed, you are increasing capacitance on the line which can reduce noise (and accuracy).
More info here:
2021-12-03 06:24 AM
thank u your ansever.What is the disadvantage of direct channel?
2021-12-03 07:19 AM
Less protection on the pin. And there are fewer of them.