Search found 97 matches

by Oleg
17 Oct 2023, 07:22
Forum: ARM STM
Topic: STM32 Programming. Part 17: UART Driver
Replies: 0
Views: 3664

STM32 Programming. Part 17: UART Driver

In the last article we got acquainted with such an interesting block in STM32 as UART . In this article we will not deal with simple examples (but that's for now), but we will immediately get acquainted with the library that allows you to conveniently interact with any UART in STM32F103xx microcontr...
by Oleg
17 Oct 2023, 07:09
Forum: ARM STM
Topic: STM32 Programming. Part 16: USART
Replies: 0
Views: 3541

STM32 Programming. Part 16: USART

image.png Many of those who have had any dealings with microcontrollers, such as PIC and AVR , know about such a thing as UART . Universal asynchronous receiver transmitter - Universal asynchronous receiver transmitter is built as a peripheral device in any modern MC, and in some MCs it is not repr...
by Oleg
17 Oct 2023, 06:48
Forum: ARM STM
Topic: STM32 Programming. Part 15: External EXTI Interrupts
Replies: 0
Views: 3640

STM32 Programming. Part 15: External EXTI Interrupts

image.png External interrupts are needed to react the MC firmware to some fast external events, which are problematic to register by polling the GPIO pin state. The stm32f103c8 has a special EXTI block for this purpose, which we will consider in this article. EXTI external event/interruption contro...
by Oleg
17 Oct 2023, 06:14
Forum: ARM STM
Topic: STM32 Programming. Part 14: Flashing the STM32 via ST-Link
Replies: 0
Views: 3541

STM32 Programming. Part 14: Flashing the STM32 via ST-Link

image.png Let's say, digging the Internet, we found a very interesting electronic device on the STM32 microcontroller, and all the schematics and firmware is attached. But here's the trouble, we have never downloaded firmware into STM32, we have only worked with AVRs before. No problem! In this art...
by Oleg
17 Oct 2023, 04:49
Forum: ARM STM
Topic: STM32 Programming. Part 13: ST-Link Programmer
Replies: 0
Views: 3516

STM32 Programming. Part 13: ST-Link Programmer

By all means, this topic should have been touched upon in the 2nd or 3rd part of this article series. But better late than never, so let's go! In this part we will get acquainted with ST-Link programmer, which can be used to load firmware into STM32 microcontroller and debug the software. Varieties ...
by Oleg
17 Oct 2023, 04:42
Forum: ARM STM
Topic: STM32 Programming. Part 12: DMA Interrupts
Replies: 0
Views: 3549

STM32 Programming. Part 12: DMA Interrupts

So, we have considered the exchange with peripherals via DMA on the example of data transfer from memory to SPI interface and back, as well as using DMA to copy one data array to another. In this part we will look at interrupts that can be generated by the DMA controller. DMA interrupts In the stm32...
by Oleg
17 Oct 2023, 04:36
Forum: ARM STM
Topic: STM32 Programming. Part 11: Copying Arrays via DMA
Replies: 0
Views: 3571

STM32 Programming. Part 11: Copying Arrays via DMA

In this short article we will look at the MEM2MEM mode and learn how to copy one memory location to another using DMA . All examples are, as always, for the stm32f103c8 microcontroller. MEM2MEM mode has three features compared to normal DMA operation when we send any data to or receive anything from...
by Oleg
16 Oct 2023, 04:57
Forum: ARM STM
Topic: STM32 Programming. Part 10: SPI + DMA
Replies: 0
Views: 3553

STM32 Programming. Part 10: SPI + DMA

In this part we will move on to the practice of working with DMA on the example of SPI interface, namely we will consider the transfer and reception of data via SPI in Master mode with the help of DMA controller. All examples, as always, are for the stm32f103c8 microcontroller. General information a...
by Oleg
16 Oct 2023, 04:34
Forum: ARM STM
Topic: STM32 Programming. Part 9: Description of DMA registers
Replies: 0
Views: 3569

STM32 Programming. Part 9: Description of DMA registers

Since the previous article about DMA was quite large, I decided to put the description of registers in a separate article. In the STM32F103C8 microcontroller, the DMA controller has 6 types of registers. They are organized as follows. Registers that are common to all DMA channels: DMA_ISR - interrup...
by Oleg
16 Oct 2023, 04:15
Forum: ARM STM
Topic: STM32 Programming. Part 8: DMA
Replies: 0
Views: 3568

STM32 Programming. Part 8: DMA

Direct memory access (DMA) , or direct memory access ( DMA ) is used for fast data transfer between memory and peripheral, memory and memory, or between two peripherals without CPU involvement. One DMA1 controller with 7 channels is available in the STM32F103c8 microcontroller. DMA2 is present only...