Datasheet
数据手册 > 微控制器,MCU,单片机 > ST Microelectronics > STM32F102C6T6A 数据手册PDF > STM32F102C6T6A 应用笔记 第 1/10 页

STM32F102C6T6A 应用笔记 - ST Microelectronics

  • 制造商:
    ST Microelectronics
  • 分类:
    微控制器,MCU,单片机
  • 封装
    LQFP-48
  • 描述:
    STMICROELECTRONICS STM32F102C6T6A 32Bit Microcontroller, USB Full Speed, ARM Cortex-M3, 48MHz, 32KB, 6KB, 48Pins, LQFP
更新时间: 2025-04-22 22:30:30 (UTC+8)

STM32F102C6T6A 应用笔记

页码:/10页
下载 PDF
重新加载
下载
December 2009 Doc ID 16795 Rev 1 1/10
AN3109
Application note
Communication peripheral FIFO emulation with DMA
and DMA timeout in STM32F10x microcontrollers
Introduction
The STM32™ communication peripherals have a single transmit buffer and a single receive
buffer. The user software should therefore retrieve data from the receive buffer before the
data are overwritten by the next received data. With interrupts, there is a risk of data
overflow. The STM32’s DMA feature prevents data overflow but, usually, the number of data
items to be received is not known in advance, and it is variable (from one reception
sequence to the next). Consequently, in reception, the end of transfer cannot be detected.
The solution is to implement an emulated FIFO based on both DMA and interrupts, a DMA
timeout is required to indicated to the application that no further data will be received.
The only requirements for FIFO implementation are that the original data and their order are
preserved. Because it is so simple, FIFO structures are easily implemented in both
hardware and software.
This application note is based on the implementation of a simple 200-byte circular buffer, but
the principle can be extended to buffers of any size. Likewise, the peripheral used here is
the USART but the same principle can be adopted for any other communication peripheral.
The aim of this document is to show how to build an efficient circular FIFO using the
STM32F10x’s DMA, and to provide methods for the implementation of DMA timeout.
This application note is organized into two parts. It first gives a FIFO overview: it discusses
FIFO emulation in the STM32’s system RAM and provides a description of the software
required for FIFO implementation. Then it provides two methods for the implementation of
DMA timeout.
This application note assumes that the reader is familiar with the STM32’s DMA as
described in the STM32F10xx reference manual, RM0008, available for the
STMicroelectronics website www.st.com.
www.st.com

STM32F102C6T6A 数据手册 PDF

STM32F102C6T6A 数据手册
ST Microelectronics
78 页, 1285 KB
STM32F102C6T6A 产品设计参考
ST Microelectronics
22 页, 463 KB
STM32F102C6T6A 用户编程手册
ST Microelectronics
156 页, 4101 KB
STM32F102C6T6A 其它数据手册
ST Microelectronics
79 页, 1169 KB
STM32F102C6T6A 应用笔记
ST Microelectronics
10 页, 110 KB
STM32F102C6T6A 产品描述及参数
ST Microelectronics
11 页, 99 KB
STM32F102C6T6A 产品修订记录
ST Microelectronics
3 页, 114 KB

STM32F102C6T6 数据手册 PDF

STM32F102C6T6
数据手册
ST Microelectronics
MCU 32Bit STM32F ARM Cortex M3 RISC 32KB Flash 2.5V/3.3V 48Pin LQFP
STM32F102C6T6A
数据手册
ST Microelectronics
STMICROELECTRONICS STM32F102C6T6A 32Bit Microcontroller, USB Full Speed, ARM Cortex-M3, 48MHz, 32KB, 6KB, 48Pins, LQFP
STM32F102C6T6ATR
数据手册
ST Microelectronics
MCU 32Bit ARM Cortex M3 RISC 32KB Flash 2.5V/3.3V 48Pin LQFP T/R
STM32F102C6T6AOR
数据手册
ST Microelectronics
Mainstream USB Access line, ARM Cortex-M3 MCU with 32 Kbytes Flash, 48MHz CPU, USB FS
Datasheet 搜索
搜索
百芯智造数据库涵盖1亿多个数据手册,每天更新超过5,000个PDF文件。
在线联系我们
黄经理 - 百芯智造销售经理在线,5 分钟前
您的邮箱 *
消息 *
发送