How to Measure Negative Voltage with an ADC, Part 2...

How to Measure Negative Voltage with an ADC, Part 2...
Схемотехника

There are several more methods of measuring negative voltage with an ADC that deserve attention. One of them can be seen in the currently popular DSO138 kit. As you can see, this circuit doesn't use a summing amplifier, but the principle is the same as described in the previous article. Let's recall it: we need to set an offset equal to half the ADC's dynamic range (in this...

How to Measure Negative Voltage with an ADC.

How to Measure Negative Voltage with an ADC.
Схемотехника

As you know, many modern microcontrollers have a built-in multi-channel ADC; as a rule, there is physically only one ADC, and the multiple channels are provided by multiplexing. The voltage range the ADC can work with is determined by the reference voltage levels (+VREF and -VREF), which must not go beyond the microcontroller's supply range. The range of voltages powering...

STM32: Storing ADC Data with DMA.

STM32: Storing ADC Data with DMA.
STM32

DMA (Direct Memory Access) lets you transfer data without involving the core. That is, if you use DMA, then when an ADC conversion completes, we don't need to fetch the conversion result and store it in memory; DMA will do it for us. To do this, when configuring DMA it's enough to specify the address to take data from and where to store it, plus a few more simple settings...