Description: STM32是以Cortex-M3为核的处理器,该例程介绍STM32下如何对外部中断进行配置和操作。在许多情况下,我们需要将外部引脚配置为中断,该例程介绍了如何设置和操作外部中断。-Cortex-M3 based STM32-core processor for the routine introduction STM32 how to configure the external interrupt on and operate. In many cases, we need to configure the external pin interrupt, the routine introduction how to set up and operation of external interrupt. Platform: |
Size: 11264 |
Author:熊刚 |
Hits:
Description: 在STM32的I2C上摔了一跤,测试了官方提供的几个例程和库,都有不同缺陷,也无法弥补:
1、查询方式,在连续读数据的过程中不能中断
2、DMA方式类似,在同一DMA中I2C的级别必须最高,否则同1.
3、中断方式也不能有更高优先级中断I2C,否则同1.
鉴于以上原因,无奈的口线模拟了I2C。(仅仅代表个人看法,欢迎指正)
附件中的项目文件已经过测试,为感谢OUR这几年的帮助,先开源这个小程序-I2C on the STM32' s fall, the official offered few tested routines and libraries, have different defects, can not make up: 1, query methods, in a continuous process of reading the data can not be interrupted 2, DMA similar to at the same level of DMA in the I2C to be the highest, or with 1.3, can not interrupt higher priority interrupt I2C, or with 1. For these reasons, but unfortunately the port line to simulate the I2C. (Only represent my personal views, please correct me) the attached project document has been tested and OUR for the past few years thanks to help, first open the applet Platform: |
Size: 38912 |
Author:yongge |
Hits:
Description: stm32 的I2C若并容易实现,调试也困难,现在有好办法了:中断、轮询、DMA三种方式任选-If the I2C stm32 and easy to implement, debug and difficult, there are a good way: the interrupt, polling, DMA optional three ways Platform: |
Size: 2725888 |
Author:weilei |
Hits:
Description: 该文件是RT-Thread STM32的工程模板。
各目录说明如下:
1. Applications:应用文档
- 包含了main文件, 中断处理文件, 系统配置文件
2. Compiler:编译器文档
- 目前提供了 RealView MDK 的工程模板
3. Documents:文档说明,
- 提供模板使用教程
- 提供了模板版本说明
- 提供了模板分层说明,请重点阅读!!!
- 提供 doxygen 注释风格的模板,说明,软件
4. Drivers:PCB板级驱动文档
- 如按键、EEPROM、模拟I2C等等
- 该层要能对上屏蔽掉最底层 Libraries
这样起到承上启下的作用,方便跨平台移植
5. Libraries:MCU外设库文档
- 此部分由芯片厂商提供,是标准库
- 用户不得修改此层
6. Modules:组件层文档
- 按大功能划分的软件组件。如UI组件、网络通信组件、文件系统组件
- 不建议直接调用最底层 Libraries
7. OS:操作系统文档
- 提供 RT-Thread V0.3.3 系统-This file is the template of RT-Thread the STM32 engineering.
Each directory is as follows:
Applications: Application document
- Contains the main file, interrupt handling files, system configuration files
Compiler,: Compiler documentation
- The current RealView MDK project templates
3 Documents: Document Description
- Provide a template using the tutorial
- Provides a template Imprint
- Provides a template hierarchical description, please focus on reading! ! !
- Doxygen comment style template, instructions, software
4 Drivers: PCB board-level driver documentation
- Such as buttons, EEPROM, analog I2C, etc.
- The layer on a masked the bottom of Libraries
So play a connecting role to facilitate cross-platform portability
Libraries: MCU peripherals library documentation
- This section provided by the chip manufacturer, the standard library
- User may not modify this layer
Modules: component layer document
- Platform: |
Size: 1632256 |
Author: |
Hits:
Description: 在stm32单片机上,用IO口的上升沿和下降沿中断设计的I2C从机代码。测试通过。所有过程用状态机来控制,没有cpu空延时。
核心代码和单片机相关代码分开,方便移植。
主要用在项目验证和学习交流!-On stm32 microcontroller, with rising and falling IO port interrupt design of I2C slave code. The test. All the process is controlled by a state machine, no cpu empty delay. Microcontroller core code and related code separate, easy to transplant. Mainly used in the project validation and exchange of learning! Platform: |
Size: 3072 |
Author:xiaob |
Hits:
Description: 这是一个i2C中断服务函数历程 而且为从机程序,单片机为STM32系列,使用前开启中断就可以 。-This is a i2C interrupt service function and history the program, for the STM32 microcontroller series, before use enable interrupts can be. Platform: |
Size: 1024 |
Author:Wang li |
Hits:
Description: stm32的入门书籍,从处理器的介绍到引脚串口中断、定时器、flash、GPIO等,包含一些事例(如spi接口实验,I2C自通信和CAN总线的介绍与)。适合初学者入门。-stm32 introductory books, the introduction to the processor interrupt pin serial port, timer, flash, GPIO, etc., contains some instances (such as spi interface experiment, I2C and CAN bus communication since the introduction of). Suitable for beginners. Platform: |
Size: 36933632 |
Author:七天 |
Hits: