cancel
Showing results for 
Search instead for 
Did you mean: 

I started a project from the BSP example for the STM32H735G-DK. I can sample audio from the "line in", but clipping happens above 0.030 V. I had anticipated a range closer to 0.8 V for audio. No .ioc file exists. How do I increase the voltage range?

RDans.1
Associate II
 
2 REPLIES 2

Not everything is machine generated.

Perhaps look at the schematics, and the CODEC settings.

Volume settings?

STM32Cube_FW_H7_V1.9.1\Drivers\BSP\STM32H735G-DK\stm32h735g_discovery_audio.c

STM32Cube_FW_H7_V1.9.1\Drivers\BSP\Components\wm8994\wm8994.c

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
RDans.1
Associate II

I explored those files, but haven't yet found a solution. I tried adjusting the volume for as part of BSP_AUDIO_IN_Init(). The volume did adjust the dynamic range of the values (i.e., I could get integer values with different maximum like [-3000,3000] or [-10000,10000] up to [-32768,32767] for 16-bit resolution). But, the clipping still occurs at around 0.030 V.

I read in one of the BSP source files that the ADC has a range of [-Vref, Vref]. If that is the issue, then I am not sure how to adjust Vref.