首页软件新闻工具软件操作系统办公软件聊天工具多媒体网页制作网页设计网站运营平面设计作品欣赏数据库程序组网
Ghost | Kugoo | 遨游 | Xp | Dw | Fw | Flash | Ps | 迅雷 | CD | ill | CAD | 五笔 | Word | Excel | Wps | Msn | QQ | 学电脑 | Asp | Php | Jsp | 3Dmax | 海报 | 包装 | 标志 | 地产 | 插画

Windows CE.NET 4.2下PC与单片机的串行通信

来源:未知(读取中...) 2007-5-17 【字体: 】 切换为
摘 要:Windows CE.NET 4.2是面向移动计算和嵌入式应用的嵌入式操作系统,特别为有限的硬件资源设计了多线程、多任务和完全优先的操作系统环境,并具有强大通信能力,RS 232串行通信是Windows CE.NET 4.2支持的最基本的通信方式。介绍了在Windows CE.NET 4.2下实现RS 232串口通信的方法和过程,包括如何打开、配置、读写、关闭串口和使用多线程来实现类似的异步串口通信,深入讨论了正确实现通信的几个关键问题。

  关键词:Windows CE;串行通信;多线程;嵌入式操作系统

  Serial Communication of PC and Single Chip Computer in Windows CE.NET 4.2

  ZHOU Chengpeng, XU Yajuan, YIN Xiaogong

  (School of Electrical Engineering, Wuhan University,Wuhan,43007 2,China)

  Abstract:Windows CE.NET 4.2 is an operation system for mob ile computing and embedded application It designs a multithread, multitask and full priority operating system environment for limited resources specially, andit enables powerful communicate ability RS 232 serial communication is the mo st basic communication mode supported by Windows CE.NET 4.2. This paper intro duces the method and process of RS 232 serial communication in Windows CE.NET 4.2 including how to open, configure, read, write and close the port, and how torealize asynchronous serial port communication by means of multithread, and dis cusses several key techniques to realize communication rightly

  Keywords:Windows CE;serial communication;multithread; em bedded operating system

  在工业控制中,常需要将单片机采集到的数据传送给PC机处理、显示,并且根据处理结果给单片机发送控制命令。串行通信虽然传送速度相对较慢,但是传送成本低,对实现监视和控制,具有足够的带宽,并且没有过于复杂的编解码,实现自定义的协议也不复杂,因而在工业自动化、通信和军事等领域的应用十分广泛。随着Windows CE嵌入式操作系统在工业控制中的广泛应用,设计和实现Windows CE下PC与单片机的串行通信具有重要的意义。

  1Windows CE.NET 4.2简介

  Windows CE 是一个面向移动计算和嵌入式应用的操作系统,其突出优点是模块化、可定制性、完备性、实时性、通信能力强大和基于Win32应用程序编程接口。Windows CE.N ET 4.2是为嵌入式市场重新设计的Windows CE 3.0的后继产品,为快速建立下一代智能移动和小内存占用的设备提供了一个健壮的实时操作系统。他包括创建一个基于定制设备的Wi ndows CE所需的一切。

[1] [2] [3] [4] 下一页

    相关新闻
    用户评论
数据载入中,请稍后……
评论内容:不能超过250字,不需审核,请自觉遵守互联网相关政策法规。
发表评论: 匿名发表 用户名: loading 位网友发表了评论 查看评论
(0/250)
    推广服务
IT部落推荐阅读
·生活服务
·精彩图文
·赞助商链接