首页 | 本学科首页   官方微博 | 高级检索  
     检索      

位带技术在 STM32程序设计中的应用
引用本文:唐飞,王陈宁,查长礼.位带技术在 STM32程序设计中的应用[J].安庆师范学院学报(自然科学版),2014(1):54-57,76.
作者姓名:唐飞  王陈宁  查长礼
作者单位:安庆师范学院物理与电气工程学院;
基金项目:安徽省自然科学基金资助项目(KJ2013B130)资助
摘    要:STM32系统的C语言中并未提供直接操作位的方法,需要使用复合语句实现位操作,程序执行效率低。位带技术是一种内存映射技术,将位带区的一“位”映射到位带别名区的一个“字”,通过对位带别名区“字”的读取和写入来改变位带区“位”的数值。在嵌入式程序设计中使用位带技术,可以降低代码占用空间,提高程序执行效率,特别适合于大量使用标志位或频繁操作IO口单个引脚的场合。

关 键 词:位带  嵌入式  STM32  映射  STM32

The Application of Bit-Band in STM32 Programming
TANG Fei,WANG Chen-ning,ZHA Chang-li.The Application of Bit-Band in STM32 Programming[J].Journal of Anqing Teachers College(Natural Science Edition),2014(1):54-57,76.
Authors:TANG Fei  WANG Chen-ning  ZHA Chang-li
Institution:(School of Physics and Electronic Engineering, Anqing Teachers College, Anqing 246133, China)
Abstract:It's very difficult to single bit write and read operations in C programming .The low efficiency of program execution is associated with the read-write operation.The Cortex-M3 memory map includes two bit-band regions.These regions map each word in an alias region of memory to a bit in a bit-band region of memory.Writing to a word in the alias region has the same effect as a read-write operation on the targeted bit in the bit-band region.It can reduce the code space and improve the efficiency of pro-gram execution by using the bit-band technology.
Keywords:bit-band  embedded system  mapping
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号