Using ADC with STM32, ADC channel selection, ADC setting, ADC regular conversion mode, Injected simultaneous mode, Regular simultaneous mode

How to use ADC with STM32?

An Analog to Digital Converter (ADC) converts a continuous signal (usually a voltage) into a series of discrete values ​​(sequences of bits). The main features are: Resolution (in analog terms): It is the minimum variation of the analog input voltage that can determine the variation of the LSB, that is of the least significant bit…

SPI communication with STM32, SPI in polling mode, SPI in interrupt mode, SPI in DNA mode, SCLK, MOSI, SS

STM32 SPI Communication

The SPI (Serial Peripheral Interface) protocol, or rather the SPI interface, was originally devised by Motorola (now Freescale) to support their microprocessors and microcontrollers. Unlike the I2C standard designed by Philips, the SPI interface has never been standardized; nevertheless, it has become a de-facto standard. National Semiconductor has developed a variant of the SPI under…