Skip to main content
TJohn.14
Associate
March 11, 2019
Question

SPBTLE-1S Multi-Channel ADC?

  • March 11, 2019
  • 1 reply
  • 475 views

When I read one channel, I get good numbers (using the polled version for now).

When I change the MUX after a read to go to the other channel (ADC2, Temperature), I get garbage on all channels.

I've read/discarded 12 readings, but even that doesn't eliminate the garbage (eg, Temp reads 100degC or ADC1 reads -12mV, and it seems to be random as far as the error goes).

What do I need to do to "scan" the mux (and is it possible to use DMA like the STM32F030)?

This topic has been closed for replies.

1 reply

Winfred LU
ST Employee
March 26, 2019

Hi gthormj,

BlueNRG-1 supports one channel ADC only. It can be one channel in single ended or differential input from pins ADC1 and ADC2.

For DMA, the answer is Yes.

Please refer to sample projects in BlueNRG-1 DK, under folder:

<BlueNRG-1_2 DK>\Project\BlueNRG1_Periph_Examples\ADC\DMA\EWARM

DK can be downloaded from ST website:

https://www.st.com/content/st_com/en/products/embedded-software/evaluation-tool-software/stsw-bluenrg1-dk.html

Best Regards,

Winfred