The Design of the Embedded WEB Server Based on ENC28J60

Similar documents
The Design of Embedded MCU Network Measure and Control System

Health monitoring of an power amplifier using an ethernet controller

eip-24/100 Embedded TCP/IP 10/100-BaseT Network Module Features Description Applications

Research on Image Sensor System Acquisition Based on ARM

Design of analog acquisition and storage system about airborne flight data recorder

Sensors State Monitoring based on LabVIEW and Wireless Nodes

The IIC interface based on ATmega8 realizes the applications of PS/2 keyboard/mouse in the system

Hardware Design of Smart Home System Based on zigbee Wireless Sensor Network

The Design of Electronic Color Screen Based on Proteus Visual Designer Ting-Yu HOU 1,a, Hao LIU 2,b,*

Design and Research of Intelligent Remote Control Fan Based on Single Chip Microcomputer and Bluetooth Technology

Research of digital temperature measurement system in vacuum thermal test based on DS18B20

Temperature Measurement and Control System Based on Embedded WEB

Jacquard Control System of Warp Knitting Machine Based on Embedded System

Human heart rate detector based on photoelectric volume

ET-PIC 24 WEB-V1. o Central Processing Unit (CPU) o System. o nanowatt Power Managed Modes. o Analog Features

Research and Design of Universal Proportional Valve Controller

Research on software development platform based on SSH framework structure

SPI to Ethernet Module

Design of Digital Voltmeter for Microcontrollers

eip-10 Embedded TCP/IP 10-BaseT Network Module Features Description Applications

SBC44EC. Single board computer for 44 pin PLCC PICs

Growing Together Globally Serial Communication Design In Embedded System

Intelligent Pressure Measuring System

nic424 ENC424J600 10/100-BaseT Network Interface Card Features Description Applications

Study of Smart Home System based on Zigbee Wireless Sensor System. Jie Huang 1

The engine temperature real-time monitoring instrument based on Microcontroller. Wang Jiayue, Yue Yuntao, Luan Ru, Zhang Jianghui Qin Xin

Wireless Smart Home Security System Based on Android

PVK40. User's manual. Feature Rich Development and Educational Kit for 40-pin Microchip PIC microcontrollers

User Manual For CP-JR ARM7 USB-LPC2148 / EXP

ISA Host Controller 15a Hardware Reference Release 1.2 (October 16, 2017)

The Design of the Sensor Node of IOT Based on SIM20 KUANG Xinghong 1, a,yao Zheyi 1, b, Huo haibo 1, c, Li junjun 1, d, Wu yanxiang 1, e

Design of Bicycle mileage Speed Meter

A Tentative Study on Ward Monitoring System based on Zigbee Technology Jifeng Liang

Agriculture Wireless Temperature and Humidity Sensor Network Based on ZigBee Technology

SBC45EC. Single board computer for 44 pin PLCC PICs

Design of Coal Mine Power Supply Monitoring System

Wireless Remote Water Meter Design of Automatic Meter Reading System

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

The Application of CAN Bus in Intelligent Substation Automation System Yuehua HUANG 1, a, Ruiyong LIU 2, b, Peipei YANG 3, C, Dongxu XIANG 4,D

Research on Device Control System Design Based on Stepping Motor. Zhongyong Tian

USR-TCP Hard version: V2.0 File version: V

World Scientific Research Journal (WSRJ) ISSN: Design and Implementation of Stepper Motor Control System Based on 52 MCU

Design and construction of ENP for Car : a novel Embedded System

DEVBOARD3 DATASHEET. 10Mbits Ethernet & SD card Development Board PIC18F67J60 MICROCHIP

Design of Greenhouse Temperature and Humidity Monitoring System Based on ZIGBEE Technique Ming Xin 1,a, Wei Zhongshan 1,b,*

Design and Research of Virtual Instrument Development Board

Design of Temperature and Humidity Data Acquisition System. Based on ARM

Design and Implementation of Aquarium Remote Automation Monitoring and Control System

Research on Device Control System Design Based on Stepping Motor Wu Dongyan 1, Xu Wen 1, Wang Mingge 2, Jiang Ruochong 1, Jiang Lifeng 1

Keywords Digital IC tester, Microcontroller AT89S52

Environmental Data Acquisition Using (ENC28J60)

USR-K1 Super Port. File version: V1.0.4

Design of New Oscillograph based on FPGA

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

P&E Microcomputer Systems, Inc. P.O. Box 2044, Woburn, MA 01888, USA

Research on Embedded CNC Device Based on ARM and FPGA

Research on Sine Dynamic Torque Measuring System

Design of the Storage Battery Online Monitoring System

High-Performance 32-bit

EtherCAT Data Acquisition System Based on DMA Mode

Design and Implementation of the Arm JTAG Emulator

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

Design and Implementation of LED Display Screen Controller based on STM32 and FPGA Chi Zhang 1,a, Xiaoguang Wu 1,b and Chengjun Zhang 1,c

The Analysis and Research of IPTV Set-top Box System. Fangyan Bai 1, Qi Sun 2

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Implementation of Step Motor Control under Embedded Linux Based on S3C2440

PXA270 EPIC Computer with Power Over Ethernet & Six Serial Protocols SBC4670

SBC65EC. Ethernet enabled Single Board Computer

MICROCONTROLLER S PROGRAMMER

SUB-MASTER MICROCONTROLLER FOR HOME CONTROL ON FINGERTIPS

PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features:

International Conference on Information Sciences, Machinery, Materials and Energy (ICISMME 2015)

PIC-P67J60 development board Users Manual

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

NET101. RS232 / RS422 / RS485 to Ethernet Converter. User s Manual. Version 1.2

EASY219 / IEC CANopen Master / Slave

Mega128-Net Mega128-Net Mega128 AVR Boot Loader Mega128-Net

ZLAN1003 User Manual

PCI Host Controller 14a Hardware Reference Release 1.2 (October 16, 2017)

XPort Direct+ Integration Guide/Data Sheet

Altera EP4CE6 Mini Board. Hardware User's Guide

On Design and Implementation of Locomotive Video Monitoring System. Haifeng Yuan, Jie Peng

CHAPTER 1 MICROCOMPUTER SYSTEMS. 1.1 Introduction. 1.2 Microcontroller Evolution

ARDUINO LEONARDO ETH Code: A000022

pcduino V3B XC4350 User Manual

Design of Intelligent Power Terminal System Based on Family Heterogeneous Network

A Design of Remote Monitoring System based on 3G and Internet Technology

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

DS1306. Serial Alarm Real Time Clock (RTC)

SpiNN 3 System Diagram

Design and application of interface circuit of coal mine equipment intelligent management system TCP/IP module Xingshan LI1, a, Jian LU 2

Design of Underground Current Detection Nodes Based on ZigBee

ILI2511. ILI2511 Single Chip Capacitive Touch Sensor Controller. Specification ILI TECHNOLOGY CORP. Version: V1.4. Date: 2018/7/5

A High-Speed Wireless Transmission Scheme for Wireless Sensor Network

Design of Embedded Network Voice Communication Terminal Based on STM32 and μcosiii

EMBEDDED HARDWARE. Core Board. ARM7 Development board. ARM7 Evaluation Board. Page 1 of 5

High-performance Digital Protection and Control Unit for Distribution Substations

GSM MODULE BASED SMART NOTICE BOARD

WIZ220IO / WIZ220IO-EVB User s Manual (Ver. 1.0)

Zefeer EVB-L. Hardware Manual

Transcription:

Available online at www.sciencedirect.com Procedia Engineering 15 (2011) 2670 2674 Advanced in Control Engineering and Information Science The Design of the Embedded WEB Server Based on ENC28J60 Shisheng Jia a, Changqing Ma b, a* a,b Electromechanical Engineering Department of Shandong University of Science and Technology,Tai An,271021,China Abstract The design of the embedded WEB server, which is mainly composed of S3C44B0X, as the microprocessor, and ENC28J60, as the network controller, is introduced in this paper. The hardware design and software design of the system are illustrated in detail. The hardware design mainly refers to the design of the interface of the Ethernet controller ENC28J60 and the S3C44b0X as well as that of the peripheral circuit of the ENC28J60. The Compact TCP/IP protocol and the process of designing program are introduced in software design. All these are of reference significance to the design of embedded system, and it is estimable in application to the remote monitoring for the real system. 2011 Published by Elsevier Ltd. Open access under CC BY-NC-ND license. Selection and/or peer-review under responsibility of [CEIS 2011] Keywords: S3C44B0X; ENC28J60; WEB server * Shisheng Jia. Tel.:13854823855 E-mail address:jss9323@126.com 1877-7058 2011 Published by Elsevier Ltd. doi:10.1016/j.proeng.2011.08.502 Open access under CC BY-NC-ND license.

Shisheng Jia and Changqing Ma / Procedia Engineering 15 (2011) 2670 2674 2671 1. Introduction In order to realize the communication, the microcontrollers are often connected each other through RS- 232, RS-485 or CAN bus in traditional industrial control or data survey system. This kind of system is often separated from the Internet and its transmission distance is limited as a result of its characteristics. Meanwhile, the Ethernet now has become the most popular and widespread communication network because of its rapid transmission speed, good real-timeliness, high reliability, low cost and its convenience to use or service. The integration of management and control can be realized by replacing the ordinary data acquisition and control network with the Ethernet, and corporations can monitor and control the producing courses in time through the Ethernet in any place. This paper introduces the design of a micro embedded Web server based on S3C44B0X and ENC28J60. 2. The structure of the embedded Web server This system is mainly composed of the smallest system of the microprocessor S3C44B0X and the circuit of the Ethernet controller ENC28J60. The smallest system of S3C44B0X includes such circuit units as the microprocessor chip S3C44B0X, SDRAM and FLASH, reset circuit, crystal oscillator circuit, UART serial interface, JTAG connection, power circuit and so on[1]. The circuit of the Ethernet controller ENC28J60 consists of the Ethernet controller ENC28J60, insulation transformer, RJ45 attachment and the crystal oscillator circuit. The principle diagram of the system is shown in Figure 1. Fig.1 The embedded WEB server functional block diagram The microprocessor S3C44B0X, as the central control chip of the whole system, sends commands to the ENC28J60, visits its registers, reads or writes its transmit/receive buffer so as to complete the related operation. The Ethernet controller ENC28J60, which is made by Microchip Corporation, USA, has an industry standard Serial Peripheral Interface (SPI) and meets all of the IEEE 802.3 specifications, takes charge of the data exchange between the microprocessor and HUB through the insulation transformer and the RJ45 attachment. FLASH is usually used to store the procedure code, constant form and some user data that need to be preserved after the system power failure and so on. SDRAM mainly serves as the space for the procedure to run, the data area and the stack area in the system. The serial port, which is connected to the super terminal of PC, usually transmits some lower speed data such as some debugging instructions or some results during the program running. JTAG is mainly used for the interior test for the chip or for the simulating and debugging for the system. Moreover, the power circuit mainly provides the DC voltage for the core of the microprocessor S3C44B0X, Input/Output of CPU and the peripheral component; The crystal oscillator circuit provides

2672 Shisheng Jia and Changqing Ma / Procedia Engineering 15 (2011) 2670 2674 the clock signal for CPU and other circuits; The reset circuit completes the reset of system when the power switch on or the system program is in endless loop. 3. The hardware system design The circuit design of the smallest system of microcontroller S3C44B0X such as the expansion circuit of SDRAM and Flash, the UART serial interface, the JTAG interface, the reset circuit, the crystal oscillator circuit, and power circuit belongs to conventional circuit design in ARM embedded system, which is omitted here. The interface circuit design between the microprocessor S3C44B0X and the Ethernet controller ENC28J60 is mainly introduced in this paper. The hardware circuit of the ENC28J60 and its interface circuit with the microprocessor S3C44B0X are shown in Figure 2. Fig.2 The hardware circuit principle diagram The connection mode between the ENC28J60 and the S3C44B0X is shown in Figure 2. Because the SIO of S3C44B0X is not completely compatible with the SPI of ENC28J60, the method with which general purpose I/O ports GPC0~GPC2 simulate the timing of SPI interface is adopted so as to ensure the communication reliability. It is easy to write the program to simulate the SPI timing according to the ENC28J60 read or write timing[2]. The hardware design of ENC28J60 mainly includes such unit circuit as the reset circuit, the crystal oscillator circuit, the network transformer and other exterior part (i.e LED) and so on. The reset circuit and crystal oscillator circuit of ENC28J60: There are several reset modes in the ENC28J60 component. The system reset mode is adopted in this design, namely, the system resets through the pin RESET of ENC28J60 receiving signal from the exterior asynchronous trigger device. When RESET is low the system resets, and when high the ENC28J6 works normally. There is a noise filter in the RESET channel, it can examine and filter the small disturbance pulses. The operating frequency of ENC28J60 is 25 MHz. The OSC1 is connected to OUT of the active crystal oscillator, which provides the 3.3V external clock signals. The OSC1 is no connected[3].

Shisheng Jia and Changqing Ma / Procedia Engineering 15 (2011) 2670 2674 2673 The Ethernet interface of the ENC28J60: The difference transmission pin (TPOUT+/TPOUT-) and the difference receive pin (TPIN+/TPIN-) of the ENC28J60 are directly connected to the corresponding pins of RJ45 in which there is an integrated insulating transformer[4]. For each transformer, two extra resistances (50Ω, precision to be 1%) and a capacity (0.01μF) need to connect to the specific terminal. The analogous circuit inside the ENC28J60 needs a 2kΩ (precision to be 1%) resistance between RBIAS and GND. In order to reduce the power loss, some digital circuits inside ENC28J60 work below 2.5V which is produced by a 2.5V manostat inside the ENC28J60. In order to make the chip work stably, A 10uF capacity is necessary between VCAP and GND. In addition, all power pins must be connected to 3.3V power. In the same way, all references ground should be connected to the same ground. There should be a 0.1μF ceramicon between each power pin and ground [5]. LED configuration: LEDA pin and LEDB pin support automatic polar examination when the system resetting. The LEDs connected to these two pins can be driven through pulling current or filling current. When the system resets, the connection condition of the LED connected with LEDB will be read automatically and the bit PHCON1.PDPXMD will be initialized. If the led is lighten through pulling current, the bit PHCON1.PDPXMD is zero and the PHY works in the half-duplex mode. 4. Software structure design 4.1. Compact TCP/IP protocol The TCP/IP protocol stack must be embedded inside the embedded system so that it can connect to the Internet. This embedded Web server uses compact TCP/IP protocol stack because its hardware architecture is simple, the hardware resource especially the system program storage space is limited. The compact TCP/IP protocol stack mainly includes ARP, IP, ICMP, TCP and the HTTP. The ARP, as the Address Resolution Protocol, takes charge of converting IP address to physical address. The Internet Protocol (IP) is responsible for transmitting the news from one host computer to another. ICMP is the Internet Control Message Protocol, it is used to transmit the control news between the IP mainframe and the router. The TCP is the Transfer Control Protocol that is designed to be used to provide the reliable, end-to-end bits flow on the unreliable Internet. The Hypertext Transfer Protocol HTTP is mainly responsible for receiving and transmitting data in the application layer[6]. 4.2. The master program flow chart of embedded WEB server The software of embedded WEB server mainly realizes two major tasks: one is to disassemble the data frames that are received from the Ethernet. The other is to encapsulate the data and transmit them. Its master program flow chart is shown in Figure 3. The system initialization module mainly includes the initialization of the microcontroller S3C44B0x, the initialization of network controller ENC28J60 and that of the flag of TCP/IP protocol stack and so on. The ARP processing module mainly completes receiving the ARP request and transmitting the ARP response. The ICMP processing module mainly completes receiving ICMP display requests and transmitting ICMP display response, and realize the simple diagnosis and return the wrong messages for all nodes of the network. The TCP data processing module mainly completes the data processing of TCP and HTTP. The Hypertext Transfer Protocol (HTTP) mainly realizes receiving and transmitting data in the application

2674 Shisheng Jia and Changqing Ma / Procedia Engineering 15 (2011) 2670 2674 layer, if the TCP text's data field contains data, the data need to be received and processed according to HTTP. Fig.3 The master program flow chart 5. Conclusion The development and realization of the embedded WEB server that processes the remote control function are illustrated in this article. As an embedded system, it can connect to the Internet. It not only supports HTTP, provides the WWW service for the user, but also realizes the long-distance monitor and control through the web page. In addition, the solution of embedded WEB server processes lots of advantages. For example, its function is easy to extend, it meets the small client side requirement, its development cost is low, it is easy to operate and so on. It has a widespread application in many domains such as the industrial automation, the intelligent measuring appliance and the sensing technology and so on. It has very high application value. Reference [1] Ge, Renqiu and Yulong Han. The Embedded Application System Design[M]. Beijing: Higher Education Press, 2008. [2]Yu, Haoyang, Guoping Shao and Jie Qin. The SPI Interface Design Based on the Ethernet Controller ENC28J60[J]. Heilongjiang Engineering College Journal (natural sciences version), 2009,23(2):63-65. [3] Chen, Yanhua, Anhua Hou and Panpan Liu. Embedded System Development and Example Based on ARM[M]. Beijing: People's Posts and Telecommunications Publishing House, 2008. [4] Qi, Shusheng. Ethernet Controller ENC28J60 with SPI Interface and Its application[j], Microcomputer Information, 2006,22(8-2): 266~268. [5]Zhou, Xiaoyang, Hong Cheng and Xiaoyuan Zhang. New Type Ethernet Controller ENC28J60 and Its Interface Technology[J]. Single Chip Microcomputer and Embedded System Application, 2006(8):34-36. [6]Liu, Haixia, Renwang Li, Jupeng Zhang, Lili Zhou. The Design and Realization of ENC28J60 Interface on Embedded System[J]. Microcomputer Information, 2008(24):33-35.