Skip to main content
MArna.19
Visitor II
Mar 31, 2020 2:40 PM UTC
Question

BL072-LRWAN1 CubeMx Atollic

Hello,

I want to use a multi channel ADC, But i can rean read only the channel0.

I will also want to read channel 4

how to do?

best regard

Michel

This topic has been closed for replies.

1 reply

ty.locke
Associate II
Apr 7, 2020 5:07 PM UTC

Michael,

Reading channel 4 can be done in the same manner as channel 0. For my example project I use HW_AdcReadChannel() to read values from ADC channels 0, 4, and 5 respectively. Make sure that your ADC is initialized and that pin PA4 is not being used by any other function in code or hardware and you shouldn't have any issue reading it.