Home
Ethernet IO User`s Manual
Contents
1. Company Limited 4 Configuration Application cfg_app Configuration application is demonstration software that shows how to use Ethernet lO and library for Microsoft Visual C and Microsoft Visual Basic This example application can help user to develop software that controls user s board via Ethernet lO Ethernet 10 Send Data p 192 168 11 s mj Sending Data Pa Disconnect Preference C FileName Browse Main Control Text data Clear 1 0 Operation SeB y a p PA a m Valuefhex Operate Receiving Data I Savetofile Save as C EtherlO Receive txt Receive Data Status Bar Connection established with EtherlO 192 168 11 241 Figure 4 1 Example Application GUI 4 1 Main Control Main control is for communication setting between PC and Ethernet lO and it controls data input output from Ethernet IO to user s board 4 1 1 Communication setting This section is for network setting and UART setting Figure 4 2 shows communication setting section 192 168 11 241 IP Disconnect Preference Figure 4 2 Communication setting Ethernet lO User s Manual 10 PD0401 6 00 02E DESIGN i GATEWAY Ethernet io Company Limited 1 2 IP is IP Address of Ethernet IO board that user would like to connect Connect Button is to start connection between PC and Ethernet IO After press this button PC will try to connect to Ethernet IO board with IP Addr
2. Limited 2 10 LED Indicator LED indicator indicates status of network that shown in Table 2 7 Table 2 7 LED Indicators LED Signal Description D11 Power Bright when power on Ethernet IO board D2 Link Bright when connect Ethernet IO board to network D3 ACK Bright when send or receive data from network D4 Col Bright when data collision occur 3 Quick Start 1 Unplug LAN cable from user s PC Remove jumper J4 from Ethernet lO board Use cross cable to connect Ethernet lO board to PC gt A i N Set IP Address of users PC to 192 168 11 xx Ex 192 168 11 20 except 192 168 11 241 is default IP Address of Ethernet IO board 5 Open Ethernet IO Configuration Application and then click Connect button 6 After configuration application established connection successfully click Preference button to change IP Address for IP Address Subnet Mask and Gateway user s group and then click Save button IP Address must not to repeat with other user s IP Address in group 7 Set IP Address of user s PC to old previous IP Address 8 Unplug cross cable from users PC and plug in LAN cable to make connection between user s PC and Ethernet IO board 9 Change IP Address in Ethernet IO Configuration Application to new IP Address of Ethernet IO and then click Connect button User can connect Ethernet lO board via Ethernet Ethernet lO User s Manual 9 PD0401 6 00 02E DESIGNS GATEWAY Ethernet io
3. data will be automatically displayed in text display User can save text data to file by press save as and browse to directory that would like to save How to read analog input voltage from analog channel 3 Connect analog signal and analog ground to Ethernet lO board at connector J3 Connect configuration application to Ethernet IO board and wait until the connection is successfully established Select I O Operation to ReadADC and then select PIN to 3 Press Operate to execute operation Digital voltage that converts from ADCs is shown in Value hex Ethernet lO User s Manual 17 PD0401 6 00 02E DESIGNS GATEWAY Ethernet io Company Limited Note Ethernet lO User s Manual 18 PD0401 6 00 02E DESIGN s GATEWAY a Company Limited 54 BB Building 13 Floor Room No 1302 Sukhumvit 21 Rd Asoke Klongtoey Nua Wattana Bangkok 10110 Thailand Tel 662 664 3069 Fax 662 261 2290 www design gateway com
4. Ethernet lO User s Manual Design Gateway Co Ltd Rev 1 1 PDO401 6 00 02E Please read this manual carefully before using Ethernet IO DESIGN l GATEWAY Ethernet io Company Limited Revision History Revision Date Detail of change 1 0 5 August 2004 Initial Release 1 1 23 March 2005 Insert Quick start and edit picture Ethernet IO User s Manual PD0401 6 00 02E DESIGN GATEWAY Ethernet io Company Limited Table of Contents Te MMPOG WON AAA o e e 1 al Summan Salte aislado acia ista diia 1 1 2 System Requiero 2 Bee Waranty POlGY sste e a A E 2 2 MIS thet lO Network V O Board cisini ereire n aaa EaI 3 2 1 Ethernet IO Board Description in segeesieedeniansapblanakpeiseabansdeniacs 3 2 2 10 Base T Ethernet Module esicatorinio cc a a e 4 A E A A sca taeds 4 24 o MOQUE rper ia a a E E nemrer eet 4 257 AS A e O O O canntadsanai ati aeda tienda 5 2 6 6 Channels Analog INpUt aio 5 O A e a reer eRrr erty ie reer ater 6 ro ES E 8 2 9 A A aca 8 ZO LED Mic teresa 9 3s QUK AA E ECO CO mm A A 9 4 Configuration Application CO AO iii 10 dik MaM Contro A e A temiel acaaansaneds 10 42 Sending Datars ssion aee E p sate a E palates dala N 13 A e a a pitadseesedsenidiasaeieias anaes 14 A AP e a a E E 14 4 5 Configuration Application Utility c iccccscsssseidsseisesesseesssiedveesdsivsesdedrcseess 15 Ethernet IO User s Manual Il PD0401 6 00 02E DESIGN GATEWAY Eth
5. O User s Manual 1 PD0401 6 00 02E DESIGN 2 GATEWAY Company Limited Ethernet io Table 2 6 35 bits GPIO connector J1 continued Signal Port Current mA J1 Pin A Type Description Name Name Sink Source 36 GPIO13 RF5 1 0 8 8 General Purpose Input Output 37 GPIO14 RF6 1 0 8 8 General Purpose Input Output 38 GPIO15 RF 1 0 8 8 General Purpose Input Output 39 Gnd Ground 40 Gnd Ground Both GPIO2 pin and GPIO3 pin are connected to jumper for communication setting They have internal pull up to 3 3V so default logic is high 2 8 Reset Button Push Reset button to reset Ethernet IO board 2 9 Jumper Default value or user setting value can be selected by using jumper J4 If jumper J4 is close Ethernet IO use default both IP address and MAC address Otherwise if jumper J4 is open Ethernet lO use user setting both IP address and Mac address Ethernet lO provides jumper J6 so that user can define in user s application The following table shows jumper setting property Table 2 7 Jumper setting property Jumper Port Name Status Logic Description Closed Low Use default IP Address and Mac Address JP4 RB2 Open High Use user setting IP Address and Mac Address Closed Low User define JP6 RB3 Open High User define Ethernet lO User s Manual 8 PD0401 6 00 02E DESIGNS i GATEWAY Ethernet io Company
6. ation card attached herewith the product and send back to Design Gateway Co Ltd Ethernet IO User s Manual 2 PD0401 6 00 02E DESIGN y GATEWAY Ethernet io Company Limited 2 Ethernet IO Network I O Board 6 channels Analog Input X A a I 1 3 a Fave i RS232 Connector gt 5 R e Lill R RS485 Connector Di a a o no E ar J INCA eS UART Mode Al SHH TT PA Setting Jumper on DN 10 Base T Ethernet MES 35 Bit GPIO Na gt Default Value Jumpers Pin2 Pin1 Reset Button LED Indicators Figure 2 1 Ethernet IO board 2 1 Ethernet lO Board Description A high level block diagram of Ethernet lO board is shown in Figure 2 2 followed by a brief description of connector module LED Indicators RS232 Module UART 10 Base T Network Module RS485 Module Ethernet Microcontroller Module Reset Button 35 Bits GPIO 6 channel analog input Figure 2 2 Block Diagram of Ethernet IO Ethernet lO User s Manual 3 PD0401 6 00 02E DESIGN S GATEWAY Ethernet io Company Limited 2 2 10 Base T Ethernet Module Ethernet lO provides 10 Base T Ethernet Module to connect Ethernet lO with network Both LAN cable and cross cable can be used with Ethernet lO 2 3 UART Module Ethernet lO has one UART module for communication with serial mode This UART module has maximum speed at 115200 bps User can select UART mode RS232 or RS485 by se
7. ce voltage 2 5V read as OX3FE and ADCs resolution is 10 bits The following table shows ADCs values reported at the upper and lower limits of the ADC input voltage range and next table shows analog input connector property Table 2 4 ADCs Value Analog Input Voltage ADCs Value 0 0x000 2 5V Ox3FE 0x001 2 5V Ox3FE 2 5V 2 5V OxSFE Ox3FF Note Maximum input voltage to analog pin is 2 5V Ethernet lO User s Manual 5 PD0401 6 00 02E Table 2 5 Analog Input Connectors Ethernet io J3 Pin Signal Name Description 1 AINO Analog input channel 0 2 AIN1 Analog input channel 1 3 AIN2 Analog input channel 2 4 AIN3 Analog input channel 3 5 AIN4 Analog input channel 4 6 AINS Analog input channel 5 7 AGND Analog ground 8 AGND Analog ground 2 7 35 bits GPIO Ethernet lO provides 35 bits GPIO to control user s board This GPIO supports parallel I O interface in memory mode Ethernet IO performs as master and active read or writes signal to user hardware then read write to 16 bits data The following table shows name and property of each pin at connector J1 Table 2 6 35 bits GPIO connector J1 Signal Port Current mA J1 Pin Type Description Name Name Sink Source 1 5V Power 5V 2 GPIO1 RA3 1 0 24 24 General Purpose Input Output 3 AO RBO 1 0 8 8 Address O 4 Al RB1 I O 8 8 Addr
8. ecause serial port is too slow communication Clear button is for deleting a message in text box Sending Data Section will become active when PC is connected to Ethernet lO For adds a virtual serial com port for communication user can use The Hardware Virtual Serial Port VSP Detail in CD or www design gateway com 4 3 Receiving Data This section displays text data from UART port There is a limit of input buffer User must save and analyze input data before new incoming data In this example application user can save the current input data to file and also can use Clear button to delete a message from text display Figure 4 8 shows receiving data section The text display has limited size of 64 Kbytes If data in text display is full and there is new incoming data then it will shift out the old data from text display deleted and append a new data Receiving Data I Savetofile Save as C EtherlO Receive txt Clear Figure 4 8 Receiving Data Section 4 4 Status Bar Status bar will display these messages when application is executing Connection Established Connect to Ethernet IO successful Ethernet lO User s Manual 14 PD0401 6 00 02E DESIGNS GATEWAY Ethernet io Company Limited Connection Failed Connect to Ethernet IO fail Connection Abandoned Application loss connection Zero Length Message Sending zero size message Unknown Socket Errors Socket error can not keep connectio
9. ernet io Company Limited 1 Introduction Thank you very much for purchasing Ethernet lO Network I O Board Please check that all the following items are in the box If anything is missing or damaged contact your distributor or Design Gateway Co Ltd Ethernet IO Network I O Board 5V Power Adapter CD contents Demo software Library for developer User s Manual Programming Manual 1 5m Cross cable 1 5m Serial cable for RS232 User s Manual and Programming Manual Ethernet lO is network development board that controls user s board via Ethernet LAN It is suitable for user who not familiar with network microcontroller but would like to connect user s board to network User can communicate from Ethernet IO to user s board both sending and receiving data or control user s board via I O port command such as set bit clear bit set port etc Ethernet IO provides many ports to control user s board General purpose Input Output GPIO is normal connection to connect to user s board This GPIO supports 5V tolerant input and 2 5 V output For long distance user can use RS232 or RS485 port to send or receive data from user s board Both RS232 and RS485 have maximum speed at 115200 bps Ethernet lO provides 10 bits ADC 6 channels 48 kHz maximum sampling rate to receive analog signal Ethernet lO set provides example application and library for Microsoft Visual C so user can easily develop network system without deep kn
10. ess 1 5 GPIO2 RB2 1 0 8 8 General Purpose Input Output 6 GPIO3 RB3 1 0 8 8 General Purpose Input Output 7 Wr RB4 1 0 8 8 Write Signal active low 8 Rd RB5 1 0 8 8 Read Signal active low 9 GPIO4 RB6 I O 8 8 General Purpose Input Output 10 GPIO5 RB7 1 0 8 8 General Purpose Input Output Ethernet lO User s Manual 6 PD0401 6 00 02E DESIGNS GATEWAY Ethernet io To any Limited Table 2 6 35 bits GPIO connector J1 continued Signal Port Current mA J1 Pin Type Description Name Name Sink Source 11 D8 RCO 1 0 4 4 Data 8 12 D9 RC1 1 0 4 4 Data 9 13 D10 RC2 1 0 4 4 Data 10 14 D11 RC3 1 0 4 4 Data 11 15 D12 RC4 1 0 4 4 Data 12 16 D13 RC5 1 0 4 4 Data 13 17 D14 RC6 1 0 4 4 Data 14 18 D15 RC7 1 0 4 4 Data 15 19 Gnd z Ground 20 Gnd J E E Ground 21 DO RDO 1 0 4 4 Data 0 22 D1 RD1 1 0 4 4 Data 1 23 D2 RD2 1 0 4 4 Data 2 24 D3 RD3 1 0 4 4 Data 3 25 D4 RD4 I O 4 4 Data 4 26 D5 RD5 1 0 4 4 Data 5 27 D6 RD6 1 0 4 4 Data 6 28 D7 RD7 1 0 4 4 Data 7 29 GPIO6 REO 1 0 8 8 General Purpose Input Output 30 GPIO7 RE1 I O 8 8 General Purpose Input Output 31 GPIO8 RE2 I O 8 8 General Purpose Input Output 32 GPIO9 RE4 1 0 8 8 General Purpose Input Output 33 GPIO10 REG 1 0 24 24 General Purpose Input Output 34 GPIO11 RE7 1 0 8 8 General Purpose Input Output 35 GPIO12 RF4 1 0 8 8 General Purpose Input Output Ethernet l
11. ess as same as IP box If PC is successfully connected to Ethernet IO board status bar should display Connection established with Ethernet IO IP Address as shown in Figure 4 3 If for some reasons PC fails to connect to Ethernet IO board status bar should display Connection failed as shown in Figure 4 4 Connection established with Etherl0 192 168 11 241 Figure 4 3 Connection from PC to Ethernet IO completed Connection failed Figure 4 4 Connection from PC to Ethernet IO failed Disconnect Button is to stop connection between PC and Ethernet lO After press this button communication between PC and Ethernet lO is disconnected Preference Button is for setting UART and network This button will be active after connection between PC and Ethernet lO is established After press this button configuration window will appear In configuration window user can set UART properties and network properties as shown in Figure 4 5 Hardware Handshaking Enable or disable hardware handshaking pins DTS and RTS Data bits Can be set 7 or 8 bits data only Stop bits Can be set 1 or 2 stop bits Parity bit Can be none odd or even parity bit Baud Can be set from 300 to 115000 bits per second Ethernet lO User s Manual 11 PD0401 6 00 02E DESIGN 2 GATEWAY Company Limited Ethernet io IP New IP address that user would like to set to Ethernet lO Subnet mask New s
12. for operation such as ReadADC etc 3 Pin Select pin number for operate function Some functions do not specify pin number such as Outport ReadPort etc 4 Value hex User can fill or read data from operation from this box This box is active only for some functions 5 Operate This button is for getting Ethernet lO to operate according to the above setting 6 Test parallel After press Test parallel Ethernet lO will send increment data 16 bits from 0x0000 to Ox001FF via data pin DO to D16 and send write strobe signal via write pin 7 Test Read After press Test Read Ethernet lO will read data 16 bit via data pin DO to D16 and send read strobe signal via read pin lf t EE O Operation SetBit Test Read Pot PORT_A Test parallel Pin fo gt HA Y alue hex Figure 4 6 I O Operation 4 2 Sending Data Send Data Send C File Name Text data Clear Figure 4 7 Sending Data Section Ethernet IO User s Manual 13 PD0401 6 00 02E DESIGNS i GATEWAY Ethernet io Company Limited This section is for sending binary data in the form of text file to UART port of Ethernet lO Figure 4 7 shows sending data section User can send both text data and text file For text data user can insert text into text box and press Send button when user wants to send For text file user can browse file and press send button to send The size of file is limited at 128 Kbytes b
13. hed Select I O Operation to SetBit select Port to PORT_B and then select PIN to 2 Press Operate to execute operation then Ethernet lO board will set port RB2 to high logic 2 5V How to send 01010101 0x55 from Port C Connect configuration application to Ethernet IO board and wait until the connection is successfully established Select I O Operation to OutPort and then select Port to PORT_C Fill hex value 0x55 into Value hex and then press Operate to execute operation Ethernet lO board will set port C to logic 01010101 Ethernet lO User s Manual 16 PD0401 6 00 02E DESIGN S Company Limited GATEWAY Ethernet io 4 5 5 1 2 How to send text data from Ethernet lO board Open HyperTerminal then set and connect HyperTerminal to serial port Connect configuration application to Ethernet IO board and wait until the connection is successfully established Select UART mode between RS232 and RS485 by jumper J8 and J11 Type text data into text box and press Send then Ethernet lO board will send text data from UART module Text data will display in HyperTerminal How to receive text data Connect configuration application to Ethernet IO board and wait until the connection is successfully established Open HyperTerminal and connect them to serial port Type text data on HyperTerminal Text
14. n Disconnected Disconnection of Ethernet lO Sending Fail Sending message fail Open Send File Failed Can not open file Connecting Try to connect to Ethernet lO 4 5 Configuration Application Utility 4 5 1 How to change IP Address 1 Connect configuration application to Ethernet IO board 2 After configuration application establishes connection successfully press Preference then new dialog window will appear 3 Change current IP address to new IP address then press Save 4 Disconnect Ethernet IO board press Disconnect 5 Remove Jumper J4 and connect to Ethernet IO board again by using new IP address Ethernet lO User s Manual 15 PD0401 6 00 02E DESIGN S Company Limited GATEWAY Ethernet io 4 5 2 1 4 5 4 How to read logic from pin 29 REO Connect configuration application to Ethernet IO board and wait until the connection is successfully established Select I O Operation to ReadBit select Port to PORT_E and then select PIN to 0 Press Operate to execute operation and then configuration application will show logic in Value hex If Value hex shows 0x0 it means Low Logic If Value hex shows 0x1 it means High Logic How to send high logic from pin 5 RB2 Connect configuration application to Ethernet IO board and wait until the connection is successfully establis
15. owledge of Ethernet communication 1 1 Summary Feature 1 Embedded network 8 bit RISC microcontroller speed 120 MIPS 2 10base T Ethernet 10 Mbit Interface Ethernet lO User s Manual 1 PD0401 6 00 02E DESIGN S Company Limited GATEWAY Ethernet io o ee AA 64 Kbytes flash memory 16 Kbytes SRAM program memory 4 Kbytes SRAM data memory UART port RS232 RS485 maximum speed at 115200 bps 35 bits General Purpose I O 5V tolerant input and 2 5V output in each pin 10 bit 6 channel ADC 48 kHz maximum sampling rate 2 5V reference voltage 9 400 bytes user s area flash memory 10 200 Kbytes per second transfer rate in parallel mode 1 2 System Requirement ll 2 3 4 5 6 Windows 2000 or Windows XP 10 MB of available disk space for Windows 2000 Windows XP 64 MB of available RAM for Windows 2000 128 MB of available RAM for Windows XP 10 100 Mbps LAN card Microsoft Visual C 6 for developer 1 3 Warranty Policy 1 2 Product warranty is valid for 6 months from purchasing date Warranty is void if any modification has been made to this product and any incorrect operation from this manual or warranty sticker is torn or damaged In order to claim for product exchange or technical support within warranty period official receipt is required for unregistered customer as an evidence of purchasing whereas official receipt is unnecessary for registered customer please fill up registr
16. tting jumper on J8 and J11 User can not use both RS232 and RS485 at the same time The following table shows jumper setting for UART mode selection Table 2 1 RS232 and RS485 Jumper Setting J8 J11 UART Mode 1 2 2 3 1 2 2 3 RS232 Closed Open Closed Open RS485 Open Closed Open Closed 2 4 RS485 Module Ethernet lO board provides RS485 module to connect target board with line length greater than 1 000 meters The following table shows RS485 interface signal Table 2 2 RS485 Interface Signal Usage J9 Pin A Signal Name Description 1 TX Noninverting Driver Output 2 TX Inverting Driver Output 3 Gnd Ground 4 RX Noninverting Receiver Input 5 RX Inverting Receiver Input Ethernet IO User s Manual 4 PD0401 6 00 02E DESIGN GATEWAY Ethernet io Company Limited 2 5 RS232 Module Ethernet IO board provides RS232 module for connection from Ethernet lO to PC or user s board The following table shows RS232 interface signal Table 2 3 RS232 Interface Signal Usage J13 Pin Signal Name Description 1 TX Transmitted data from Ethernet IO board 2 RX Received data to Ethernet IO board 3 Gnd Ground 2 6 6 Channels Analog Input Ethernet lO board provides 6 channels 10 bit analog to digital converters ADCs The maximum sampling rate is 48 kHz and reference voltage is 2 5V The full scale voltage read as Ox3FF so the referen
17. ubnet mask that user would like to set to Ethernet IO Gateway New gateway that user would like to set to Ethernet lO MAC New MAC address that user would like to set to Ethernet IO Configuration l Hardware Handshaking 8 y ZZ Subnetmask 255 255 255 0 v Data bits Stop bits Parity bit Baud UART setting Network setting IP 192 168 11 241 1 No Gateway 192 168 11 2 3600 y MAC 000364000023 Cancel Figure 4 5 UART and Network properties Default IP Address is 192 168 11 241 Default Subnet Mask is 255 255 255 0 Default Gateway is 192 168 11 2 Default Mac Address is 0x00 0x03 0x64 0x00 0x00 0x23 4 1 2 I O Operation This section controls I O port on Ethernet IO board Figure 4 6 shows l O operation section 1 1 O Operation Select function to operate on Ethernet lO Some functions will be demonstrated in example application SetBit Set status of specified pin to logic high ClearBit Set status of specified pin to logic low OutPort Send one byte from specified port on Ethernet IO ReadPort Read status of all pins of specified port on Ethernet lO ReadADC Read 10 bit ADCs value on specified channel Ethernet lO User s Manual Sos PD0401 6 00 02E DESIGNS i GATEWAY Ethernet io Company Limited ReadBit Read status of specified pin on Ethernet lO 2 Port Select port to operate function Some functions do not specify port
Download Pdf Manuals
Related Search
Related Contents
Hypertec N13268PHY User's Manual DeviceNet (DN-02) User Manual Samsung WA95W9 manual de utilizador Bedienungsanleitung Steirische Ludwig II (PDF 1.8 MB) Roger Pen 取扱説明書 Copyright © All rights reserved.
Failed to retrieve file