Skip to main content
Praveen_PK
Visitor II
September 22, 2022
Question

STM32WLE5(RAK3172) - Why do we need to initialize and de-initialize the ADC function again and again for every read, whether this method is effective?

  • September 22, 2022
  • 0 replies
  • 875 views

0693W00000Svy7DQAR.png0693W00000Svy78QAB.pngI'm currently working on stm32WLE5(RAK3172) for that module, and I'm using SDK 1.0.0V 

 1) In that LoRaWAN stack for battery reading implementation, we are noticing that the ADC initialization & de-initialization happening every time.

My question is, why do we need to De-initialize every time? Instead, the initialization can happen only one time before the while loop. So that we don't need to de-initialize & initialize every time.

We are observing that the battery value is constant if we implement it like the previous scenario.

Kindly support this. 

Thanks in advance!

This topic has been closed for replies.