STM32U545 : LPBAM cotinuous ADC multichannel
Hi,
I am using an STM32U545 on which I expect to use ADC4_IN1 and ADC4_IN18 in stop mode 2 (using LPBAM).
I want to create two buffer (buff1 and buff2 uint16_t[32]) dedicated to each input.
I want to read 32 samples from input1 then 32 samples from input2 and restart infintely.
I don't find the correct way to configure LPBAM.
In first try, I use an LPTIM1 as trigger I do :
(sorry my project I can't get image of LPBAM configuration)
1) ADC conversion (channel 1) => ADC Conversion (channel 20) and loop on first conf bloc and use LPTIM1 trigger for both
=> In this case each buffer contain values from correct input but i run only once
2) If I do the same but loop on first data bloc => only last channel ise infinitrly sampled on both buffer
Can someone help me to configure it correctly?
Thanks
Have a good day.
Aurélien
