STMicroelectronics AN3109 Application Note

This document describes the method of building an efficient circular FIFO using STM32F10x's DMA, and provides implementation methods.


STMicroelectronics AN3109 Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
10
File format
PDF
File size
109 KB
Published
07 August, 2012
Updated
29 September, 2023
MD5 checksum
7960E59FA7AE6F99035A94E427F8C57B

About this manual

This application note explains how to implement an emulated FIFO using DMA and interrupts in STM32F10x microcontrollers to prevent data overflow during reception when the data length is unknown. It details the use of a circular buffer in system RAM and describes the software architecture required for this implementation.

What's inside

  • FIFO emulation with DMA
  • RAM FIFO emulation
  • FIFO software implementation
  • Receive DMA timeout
  • Method 1: Timer input capture
  • Method 2: System timer and interrupts

Frequently asked questions

What is the primary purpose of the FIFO emulation described in this document?

The emulation prevents data overflow in the receive buffer when the number of incoming data items is not known in advance.

What is the size of the circular buffer used in the example implementation?

The example implementation uses a circular buffer with a size of 200 bytes.

How many data bytes does the transmitter send to the receiver in the provided firmware example?

The transmitter sends 250 data bytes to the receiver in the example.

Download PDF (109 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →