双机通信案例在单片机串口教学中的应用  被引量:2

Application of Dual MCU Communication Example in Serial Port Teaching

在线阅读下载全文

作  者:冯康 FENG Kang(School of Computer Science,Huainan Normal University,Huainan 232038,China)

机构地区:[1]淮南师范学院计算机学院

出  处:《电脑知识与技术》2019年第8Z期75-77,共3页Computer Knowledge and Technology

基  金:淮南师范学院2017年智慧课堂试点项目(2017hszhkt01);安徽省自然科学基金项目(1508085MF124)

摘  要:为解决将单片机串口的理论应用于实践的问题,在单片机串口教学中设计出双机通信案例。该案例使用两台单片机分别作为发送机和接收机,两台单片机串口均工作于方式一;发送机运行发送程序,按下发送机控制的矩阵键盘的按键,其键值通过串口传送到接收机;接收机运行接收程序,并将从串口接收到的键值在数码管上显示出来。该案例不但可以直观地展现出单片机串口通信的过程,还可以帮助学生掌握将单片机串口理论应用于实践的技能,因此,可以推广到高等学校单片机课程的教学中。To solve the problem of applying micro control unit(MCU)serial port theory to practice,a dual MCU communication example is designed in the serial port teaching.In this example,two MCUs are used as sending MCU and receiving MCU,and the serial ports of the two MCUs work in mode one.The sending MCU executes the sending program which the key of the matrix keyboard is pressed;the key value is sent the receiving MCU through the serial port.The receiving MCU executes the receiving program which displays the key value on the digital tubes.This example does not only show the process of MCU serial port communication,but also help college students gain the skill of applying MCU serial port theory to practice.Therefore,the dual MCU communication example can be apply to the teaching of MCU course in colleges.

关 键 词:单片机 串口 波特率 矩阵键盘 中断 

分 类 号:G642.0[文化科学—高等教育学]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象