单片机扩展CH395以太网控制器的通信速率测试
DOI:
作者:
作者单位:

西安工程大学电子信息学院 西安 710000

作者简介:

通讯作者:

中图分类号:

TN919.71

基金项目:

国家自然科学基金(61401347)、陕西省科技厅工业科技攻关项目(2016GY101)、陕西省教育厅自然科学基金(17JK1105)、西安工程大学博士科研启动基金(BS1410)项目资助


MCU extended CH395 Ethernet controller communication rate test
Author:
Affiliation:

Electronics and Information College, Xi’an Polytechnic University, Xi’an 710000, China

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    CH395是一款集成TCP/IP协议栈的国产以太网控制器芯片,为给普通单片机扩展基于CH395的以太网通信功能,提供实测数据传输速率参考。以单片机C8051F340外扩CH395为例,给出了一种简单易行的CH395网络通信速率测试方案。该方案在硬件上选用C8051F340片上外设中占用硬件资源较少且速率较快的SPI接口与CH395互连实现网络数据交互。在软件上单片机C8051F340直接通过命令调用CH395自带的库函数并采用CH395内置的TCP/IP协议栈把单片机配置成服务器,用LabVIEW上位机做的客户端与其进行数据通信。通过一种测试方案两种测试方法并经过多次数据通信实验,在SPI单收和单发模式下不丢失数据的情况下网络通信平均速率可以稳定达到200 KB/s。

    Abstract:

    CH395 is an integrated TCP/IP protocol stack of domestic Ethernet controller chip,for the ordinary singlechip expansion based on CH395 Ethernet communication function to provide the measured communication rate reference,In this paper, the C8051F340 singlechip expansion CH395, for example, gives a simple CH395 network communication rate test program.The program on the hardware selection C8051F340 onchip peripherals in the hardware resources less and faster SPI interface and CH395 interconnection to achieve network data interaction, In the software on the microcontroller C8051F340 directly through the command to call CH395 comes with the library function and the use of CH395 builtin TCP/IP protocol stack to configure the microcontroller as a server, with the LabVIEW host computer to do with its data communication.In the test program in the two test methods and a number of experimental data show that the data in the SPI mode, singleshot and singleshot without losing data in the case of the average speed can be stable to 200 KB/s.

    参考文献
    相似文献
    引证文献
引用本文

张洁,朱磊,郭林源.单片机扩展CH395以太网控制器的通信速率测试[J].国外电子测量技术,2017,36(7):90-94

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2017-08-02
  • 出版日期: