文件名称:stm32
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 38kb
- 下载次数:
- 0次
- 提 供 者:
- yon***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
在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
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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
STM32模拟IIC\Simulation_IIC\include\fonts.h
............\..............\.......\lcd.h
............\..............\.......\main.h
............\..............\.......\stm32f10x_conf.h
............\..............\.......\stm32f10x_it.h
............\..............\project\cortexm3_macro.s
............\..............\.......\FSMC-LCD.Opt
............\..............\.......\FSMC-LCD_Opt.Bak
............\..............\.......\FSMC-LCD_STM3210E-EVAL.dep
............\..............\.......\FSMC-LCD_Uv2.Bak
............\..............\.......\STM32_IIC_STM32_IIC.dep
............\..............\.......\STM32_IIC_STM3210E-EVAL.dep
............\..............\.......\stm32f10x_vector.s
............\..............\.......\STM3210E-EVAL_FLASH.ini
............\..............\.......\STM32_IIC_Uv2.Bak
............\..............\.......\STM32_IIC.Uv2
............\..............\.......\STM32_IIC_Opt.Bak
............\..............\.......\STM32_IIC.Opt
............\..............\source\main.c
............\..............\......\lcd.c
............\..............\......\SetUsart.c
............\..............\......\stm32f10x_it.c
............\..............\......\I2C_Driver.c
............\..............\......\I2C_Driver.h
............\..............\project\Obj
............\..............\.......\Lis
............\..............\include
............\..............\project
............\..............\source
............\Simulation_IIC
STM32模拟IIC
............\..............\.......\lcd.h
............\..............\.......\main.h
............\..............\.......\stm32f10x_conf.h
............\..............\.......\stm32f10x_it.h
............\..............\project\cortexm3_macro.s
............\..............\.......\FSMC-LCD.Opt
............\..............\.......\FSMC-LCD_Opt.Bak
............\..............\.......\FSMC-LCD_STM3210E-EVAL.dep
............\..............\.......\FSMC-LCD_Uv2.Bak
............\..............\.......\STM32_IIC_STM32_IIC.dep
............\..............\.......\STM32_IIC_STM3210E-EVAL.dep
............\..............\.......\stm32f10x_vector.s
............\..............\.......\STM3210E-EVAL_FLASH.ini
............\..............\.......\STM32_IIC_Uv2.Bak
............\..............\.......\STM32_IIC.Uv2
............\..............\.......\STM32_IIC_Opt.Bak
............\..............\.......\STM32_IIC.Opt
............\..............\source\main.c
............\..............\......\lcd.c
............\..............\......\SetUsart.c
............\..............\......\stm32f10x_it.c
............\..............\......\I2C_Driver.c
............\..............\......\I2C_Driver.h
............\..............\project\Obj
............\..............\.......\Lis
............\..............\include
............\..............\project
............\..............\source
............\Simulation_IIC
STM32模拟IIC