Skip to main content
MArna.19
Visitor II
March 31, 2020
Question

BL072-LRWAN1 CubeMx Atollic

  • March 31, 2020
  • 1 reply
  • 616 views

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
April 7, 2020

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.