Serial communication USART Applications
String DMA send/receive application [USART of STM32]

This application uses STM32 USART DMA for sending and receiving character strings in serial communication. When character strings are long or the number of transfers is large, DMA is advantageous because it does not burden the CPU. The point In the sample program, both receiving and sending processes are handled in the interrupt handler for […]

Read more
Serial communication USART Applications
String interrupt send/receive application [USART of STM32]

This is a program that uses a buffer for sending strings and interrupts for multiple strings, and also interrupts for receiving strings using STM32 USART. This is a practical program that performs interrupt processing for both sending and receiving and can send multiple character strings at arbitrary times.

Read more
Serial communication USART Applications
String Interrupt send application Part 2 [USART of STM32]

This is a buffered application that sends several types of strings in USART with the STM32 MCU without interfering with each other. The buffer is provided to perform multiple string transmissions without interference.

Read more
Serial communication USART Applications
String Interrupt send application Part 1 [USART of STM32]

This application sends strings via interrupt in USART with the STM32 MCU. This method is the simplest and easiest to understand, using a pointer to store the string in a variable while sending it, but it is limited to one type of string, and if several types of strings are sent, they interfere with each […]

Read more
Serial communication USART Applications
String interrupt receivie application [USART of STM32]

This application uses receive interrupts in USART with the STM32 MCU. Compared to the polling method, it is more efficient because it can process only when receiving. This is an example of a ready-to-use application.

Read more
Serial communication USART Applications
String send/receive application [USART of STM32]

Since it is not practical to send a single character code in USART with the STM32 MCU, this application has been developed to send and receive a continuous string of characters. This is an example of an application that uses a pointer to store a continuous string of characters in a variable and send/receive it.

Read more
Serial communication USART Applications
1 character send/receive application [USART of STM32]

This is the simplest program for STM32 USART. The communication application is almost language-like outside of MCU knowledge because it deals with strings. It is a great way to familiarize yourself with arrays to store characters, the concept of pointers and addresses, etc. Setting Spec. :Input   : PC10 Floating inputOutput :PC11 Alternate Push-pull output Colum […]

Read more
External interrupts Application
External input interrupt application [EXTI for STM32]

This is an example of an interrupt application with an external input signal. The following is an explanation of the unique part of external interrupts. Setting Spec.:Input  :PC13 Floating input Output:PA5 Push-pull output+500Ω+LED The point When using external interrupts, the clock must be supplied to AFIO in addition to GPIO.

Read more
SysTick interrupt Application
SysTick interrupt application [SysTick for STM32]

This is an application for interrupts using the SysTick timer provided in the ARM core without using peripherals. Setting Specification:Output:PA5 Push-pull output+500Ω+LED Colum SysTick interrupts can only be used in environments that do not use FreeRTOS, since FreeRTOS itself already uses SysTick for OS timers. The development environment on this site is configured to use […]

Read more
Timer/counter Applications
Let's sound a piezoelectric buzzer and speaker [STM32 Nucleo]

Let's connect a piezoelectric buzzer and speaker to an STM32 MCU (Nucleo board) and play them. This time, I used an inexpensive piezoelectric buzzer (model: LF-MB12B06). This is an application of a peripheral timer. For details, see Timer/Counter [Details of STM32's High Functional and General Purpose Timer]. Table of contents1 Piezoelectric buzzer specifications2 Circuit of […]

Read more