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

一种采用SysTick中断实现精确延时的方法
引用本文:陶静.一种采用SysTick中断实现精确延时的方法[J].单片机与嵌入式系统应用,2017,17(8).
作者姓名:陶静
作者单位:全球能源互联网研究院,南京,210003
基金项目:国家电网公司科技项目“面向电力通信多域交互的软件定义光网络关键技术研究”[SGRIXTKJ
摘    要:在使用STM32微控制器作为处理器的系统中,常采用递减函数实现延时,该方法适用于一般延时,实现精确延时时误差较大.本文介绍了一种采用SysTick中断实现精确延时的方法,该方法能大大提升延时精度.通过实验验证,SysTick中断方式可将1μs延时的误差由26%降低至3%.

关 键 词:STM32  延时  SysTick

Precise Delay Method Using SysTick Interrupt
Tao Jing.Precise Delay Method Using SysTick Interrupt[J].Microcontrollers & Embedded Systems,2017,17(8).
Authors:Tao Jing
Abstract:The system uses STM32 MCU as the processor,which often uses a decreasing function to generate delay,but this method is only suitable for generating a general delay and not suitable for precise delay.In the paper,a method to realize precise delay by using SysTick interrupt is introduced.This method can greatly improve the precision of delay.Through the experiment,the SysTick interrupt mode can reduce the deviation of 1 μts delay from 26% to 3%.
Keywords:STM32  delay  SysTick
本文献已被 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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