STM32H7 direct channel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-14 5:44 AM
i am using stm32h723zg nucleo board, I'm using adc's direct channe, h723zg have only PC2_C,PC3_C,.
Firs ı use this function and no noise>LL_SYSCFG_CloseAnalogSwitch(LL_SYSCFG_ANALOG_SWITCH_PC2|LL_SYSCFG_ANALOG_SWITCH_PC3);
second ı use this function and ıts have noise->
LL_SYSCFG_OpenAnalogSwitch(LL_SYSCFG_ANALOG_SWITCH_PC2|LL_SYSCFG_ANALOG_SWITCH_PC3);
What is the reason for the noise in the second function?,
I can only resolve the noise in the second one by increasing the resolution ratio.
no noise at low resolution in the first
- Labels:
-
ADC
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-14 6:02 AM
Noise is not a binary thing. How much noise do you see in each case? What signal are you monitoring? Adding capacitance on the line, which is a side of effect of closing the switch, will act to stabilize the value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-14 6:13 AM
I'm reading pc2_c and pc3_c with the timer, when I use the first function it returns 4095 at 3.3v on both channels.,
when I use the second function. At 3.3v pc2_c returns 4095 and pc3_c returns 4086. This only happens when I use the second function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-14 6:14 AM
resulation 12 bit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-14 6:28 AM
> At 3.3v pc2_c returns 4095 and pc3_c returns 4086.
Okay, so zero counts of noise? Same exact value every time you call the ADC? How are PC2 and PC3 configured? How is the ADC configured? Lots of missing data here.
Read:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-14 6:36 AM
no missing information,,
yes it gives more or less the same values, You don't need an extra definition for direct channels, they are already defined as analogue. What I don't understand here is that the noise changes with the switch state. it seems to me that there should be no noise in the second function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-14 6:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-14 6:49 AM
You're commenting without even understanding what I'm asking. good luck
