安庆师范学院学报(自然科学版)
安慶師範學院學報(自然科學版)
안경사범학원학보(자연과학판)
JOURNAL OF ANQING TEACHERS COLLEGE(NATURAL SCIENCE)
2013年
4期
117-120
,共4页
单片机%C语言%延时函数%循环语句
單片機%C語言%延時函數%循環語句
단편궤%C어언%연시함수%순배어구
microcontroller unit%C language%delay function%loop statements
延时是单片机教学中最常用的概念之一,因此延时函数是单片机控制程序中的一个重要函数。分别利用while循环语句、do-while循环语句、for循环语句以及while和for循环语句组合实现t ms延时点亮一个按照一定频率闪烁的LED灯,以此为例,总结了C语言循环语句实现单片机延时函数的方法,帮助学生在掌握C语言知识的基础上,增强了对单片机延时概念的理解,提高了教学效果。
延時是單片機教學中最常用的概唸之一,因此延時函數是單片機控製程序中的一箇重要函數。分彆利用while循環語句、do-while循環語句、for循環語句以及while和for循環語句組閤實現t ms延時點亮一箇按照一定頻率閃爍的LED燈,以此為例,總結瞭C語言循環語句實現單片機延時函數的方法,幫助學生在掌握C語言知識的基礎上,增彊瞭對單片機延時概唸的理解,提高瞭教學效果。
연시시단편궤교학중최상용적개념지일,인차연시함수시단편궤공제정서중적일개중요함수。분별이용while순배어구、do-while순배어구、for순배어구이급while화for순배어구조합실현t ms연시점량일개안조일정빈솔섬삭적LED등,이차위례,총결료C어언순배어구실현단편궤연시함수적방법,방조학생재장악C어언지식적기출상,증강료대단편궤연시개념적리해,제고료교학효과。
Delay is one of the most commonly used concepts in microcontroller teaching , and delay function is an important function in the controlling programs of microcontroller unit .Take flashing LED lamps at a constant frequency lighted by t ms delay function, which realized using while, do-while, for, and combination of while and for loop statements, as an example, the delay functions of microcontroller C loop statements are summarized to help students enhance understanding the delay concepts of micro-controller unit based on the C knowledge.The results show the teaching methods are very good.