cancel
Showing results for 
Search instead for 
Did you mean: 

Where is ADF ambient noise level stored for SAD?

TheLoneRanger
Associate II

Howdy,

just as the subject line asks, I am trying to figure out where the ADF stores its Ambient noise level (ANLVL) or if there is already a callback for that value. I was having trouble locating where this value is stored. Is there a set register location I can call or a set variable? In addition, where would the sound level (SDLVL) be stored? Any help with this would be much appreciated. 

1 REPLY 1
Amel NASRI
ST Employee

Hi @TheLoneRanger ,

Please refer to the chapter ADF in the product reference manual RM0456.

Here an overview of how SAD works:

AmelNASRI_0-1739376559043.png

In the reference manual, you will find more details about the registers as well as SDLVL & ANLVL computation.

You can also refer to the example: https://github.com/STMicroelectronics/STM32CubeU5/tree/main/Projects/B-U585I-IOT02A/Examples/MDF/ADF_AudioSoundDetector.

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.