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

Keil C环境下串口实验的模拟调试
引用本文:朱艳萍,邹应全,廖建辉.Keil C环境下串口实验的模拟调试[J].实验技术与管理,2012,29(3):112-114,126.
作者姓名:朱艳萍  邹应全  廖建辉
作者单位:1. 南京信息工程大学电子与信息工程学院,江苏南京 210044;江苏省气象探测与信息处理重点实验室,江苏南京210044
2. 南京信息工程大学滨江学院,江苏南京,210044
基金项目:“传感网与现代气息装备”优势学科资助;江苏省高等优势学科建设工程资助;江苏省属高校自然科学研究面上资助项目(11KJB51008)
摘    要:根据单片机实践教学发展的需要,提出了在Keil C51软件环境下模拟单片机与PC机间串口通信的具体方法和步骤。仿真实验为:串口程序发送2位16进制数据,将其转换为十进制后,在4位LED上显示。通过比较软件单步执行的I/O口模拟数据,发现与实际串口通信结果一致。该实验使学生更加熟悉单片机软件开发环境下模拟硬件的调试方法,加深了学生对串口通信及动态显示的理解。

关 键 词:串口通信  Keil  C51  单片机

Simulative debugging method for serial communication under Keil Cenvironment
Zhu Yanping , Zou Yingquan , Liao Jianhui.Simulative debugging method for serial communication under Keil Cenvironment[J].Experimental Technology and Management,2012,29(3):112-114,126.
Authors:Zhu Yanping  Zou Yingquan  Liao Jianhui
Institution:1.College of Electronic and Information Engineering,Nanjing University of Information Science and Technology,Nanjing 210044,China;2,Jiangsu Meteorological Observation and Information Processing Laboratory,Nanjing 210044,China;3.Bin Jiang College Nanjing University of Information Science and Technology,Nanjing 210044,China)
Abstract:According to the practice teaching needs of the single chip,the specific methods and steps of serial communication between SCM and PC are proposed under Keil C51 software environment.The simulation experiment is as follows: Serial program sends two hexadecimal data,changes it for decimal and displays on four digital tubes.Comparing the simulation data under software step execution of I/O mouth with the actual serial interface communication results,they are consistent.This experiment is to make the students more familiar with single-chip microcomputer software development environment and debugging details.And it also makes students deep understanding the serial interface communication and dynamic display.
Keywords:serial communication  Keil C51  single-chip microcomputer
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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