APP下载

实时操作系统uC/OS—II串口通信的设计与实现

2017-07-12夏鑫

价值工程 2017年19期

夏鑫

摘要: 随着电子技术、信息技术和通讯技术的快速发展以及互联网的广泛应用,计算机产品开始逐渐转移到信息产品,而硬件技术的发展促进了计算机往微型化和专业化的趋势发展,人们对于信息产品的功能要求越来越高,嵌入式系统开始逐渐走入人们的视线,实时操作系统的移植也成为计算机这个行业的热点。本文选用能够管理多任务的嵌入式实时操作系统uC/OS-II,以及嵌入式网络协议Lwip,该协议能够实现嵌入式设备与互联网之间的连接,分析了以微处理器LPC2365、闪存FLASH、LED、蜂鸣器和PC为硬件平台嵌入移植了uC/OS-II嵌入式实时操作系统的相关设计方法,以实现在此嵌入式系统上进行主从结构帧结构传输的串口通信。

Abstract: With the rapid development of electronic technology, information and communication technology, and the wide application of Internet, computer products gradually transferred to information products, with the development of hardware technology and requirements of people to the improvement of information product functional, embedded system has become hotspot in this field, at the same time in the field of computer itself, miniaturization and specialization is a new trend of development. This paper expounds on the ARM7 microprocessor LPC2365 transplant uC/OS-II main content and the realization of the related function of design method. Choose embedded real-time operating system uC/OS-II that manage multiple tasks, and used embedded network protocol called Lwip to implement the connection between embedded devices and the Internet. With microprocessor LPC2365, FLASH, LED, buzzer and PC as the hardware platform, transplant the embedded real-time operating system uC/OS-II, and on the embedded system realize the master-slave structure frame structure transmission and serial communication function.

關键词: 嵌入式系统;uC/OS-II实时操作系统;Lwip协议;LPC2365

Key words: embedded system;uC/OS-II real-time operating system;Lwip protocol;LPC2365

中图分类号:TP316.8 文献标识码:A 文章编号:1006-4311(2017)19-0090-04

0 引言

近年来,随着计算机技术中、网络通信技术及微电子技术的快速发展,嵌入式技术这门新兴学科开始进入研究人员的视线并且在其相应的技术支持下所衍生的信息产品逐渐向微型化和智能化发展。在人们的日常生活中随处可见嵌入式设备,比如手机、MP3,单片机的提出对于用于交通、科技、生活、工业生产和通信等的各种各样的产品通过内嵌集成电路芯片来优化其性能,基于此提出了嵌入式系统的概念,而这些内置芯片的产品初步具备嵌入式的应用特点。而“嵌入式系统“这个概念源于80年代初的微型机时代,主要适用于某些对应用系统成本、功能、功耗和体积要求很苛刻的专业计算机系统,基于计算机技术、围绕应用并且能够实现软硬件裁剪而提出。……

登录APP查看全文