摘要:上期我们学会了I/O端口的输出操作,也就是通过I/O端口控制LED的亮灭与亮度。这次我们来学习I/O端口的输入操作,也就是通过I/O端口读取微动开关按键的状态,然后再写一段程序,通过按键来控制LED,看一看按键控制都有哪些特性和编程技巧。按照之前的惯例,讲解一个新的功能要从硬件电路分析、程序分析和下载HEX观察实验效果这3个方面展开。现在我们介绍微动开关按键的功能,先来看一下硬件部分。
注:因版权方要求,不能公开全文,如需全文,请咨询杂志社
热门期刊服务
Science China Earth Sciences ITS通讯 Chinese Optics Letters Journal of Systems Science and Complexity Advances in Atmospheric Sciences Research in Astronomy and Astrophysics Science China Chemistry Science China Mathematics Chinese Annals of Mathematics,Series B Transactions of Nonferrous Metals Society of China Chinese Annals of Mathematics Series B Journal of Systems Engineering and Electronics相关文章
sts教育论文