摘要
定时计数器在单片机应用中非常广泛,精确延时是定时计数器一个重要应用.分别用查询法、中断法以及查询和中断相结合的方法实现1 ms的延时量,使LED灯按照1 Hz频率闪烁,总结定时计数器在定时方面的特点,加强学生对单片机定时计数器的理解.
Timing counter has been used very extensively in the microcontroller application, and accurate delay is one of the important uses of timing counter. Taking flashing LED lamps at a 1 Hz frequency lighted by 1 ms delay, which concludes inquiry method, interrupt method, and combination of inquiry and interrupt method, and the characteristic of timer/counter in timing aspect are summarized to help students enhance understanding of the timer/counter of mieroeontroller unit.
出处
《韶关学院学报》
2014年第2期14-19,共6页
Journal of Shaoguan University
基金
物电实验实训中心项目(2013WDSY01)
高职应用型IT人才培养校内实训基地建设研究(JD10101)
自动化创新团队项目(2013BZKJCX03)
关键词
定时计数器
单片机
精确延时
timing counter
microcontroller unit
accurate delay