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...

Digital Programmable Oscillator: Connecting the LTC6903 to STM32.

Digital Programmable Oscillator: Connecting the LTC6903 to STM32.
STM32

In one of my designs I needed to vary a clock frequency over a wide range, and as the title suggests, I chose the LTC6903. The LTC6903 and LTC6904 are digital programmable oscillators with a frequency range from 1KHz to 68MHz; the only difference is that the LTC6903 is controlled via SPI and the LTC6904 via I2C. They are quite easy to connect and only require bypass capacitors on the supply...

How to Connect an Encoder to STM32.

How to Connect an Encoder to STM32.
STM32

One of my previous articles about encoders described how they work and ways to process the data coming from them. The methods described can be implemented on simple microcontrollers like the Atmega; more advanced ones, like STM32, have a dedicated encoder interface that processes the data from the encoder by itself and, based on this data, increments or decrements the value...

How to Flash the miniSTM32F103V.

How to Flash the miniSTM32F103V.
STM32

The simplest and most accessible way to flash an STM32 is with the bootloader; in this article we'll look at how to do it using the miniSTM32F103V board as an example. First, let's figure out what a bootloader is. A bootloader is simply a program that is stored in a certain section of memory and can rewrite the microcontroller's flash. It is programmed during chip manufacturing...

STM32 ADC.

STM32 ADC.
STM32

Let's look at the features of the ADC in STM32. 12-bit resolution; reference voltage from 2.4 to 3.6 volts; sampling rate up to 1MSPS; 18 channels (16 external and 2 internal: reference voltage and temperature sensor); interrupt at the end of regular and injected conversions; interrupt from the window comparator (Analog watchdog); DMA transfer for regular...

Connecting a TFT Display to the STM32F103VET6 via FSMC, Using the SSD1289 as an Example.

Connecting a TFT Display to the STM32F103VET6 via FSMC, Using the SSD1289 as an Example.
Дисплеи

Recently a board with an STM32VET6 that I ordered on AliExpress arrived, and in this article we'll try to connect a TFT display to it; by the way, the board has a dedicated header for it. Unlike the Atmega, STM32 has a special interface for connecting a display, called FSMC, also known as the external memory controller. The idea of FSMC is as follows: when connected via FSMC...