Home

IGM7100 사용자 설명서 - RS Components International

image

Contents

1. 58 Peels cp 58 2 Web Server Tests 58 Appendix B Specification of Serial Cables 59 Appendix C Specification of NM7010A 60 CH Advantages l Me fou 60 2 S ce e ud 60 C 3 Block AM 60 uiri p Ad SG e tenete A 61 CH Pin description aa eo iic Ie pibe desi t qe ute 62 Appendix D Specification of NM7000A 67 Ct Advantages oec o ae RR URDU dd quie 67 iv EVB8051 User s Manual C2 Components re ei erie 67 C 3 Block Diagram Ja 67 Mod ul e te pb e tid 68 CO Pim description 69 ooo EVB8051 User s Manual Figures lt FiG 1 8051 gt 1 lt FIG 2 ITEMS CONTAINED IN THE EVB8051 gt 2 SEIG 3 EVB805152 2 Ate ER n eevee GAR ttd 3 sunu won Ds 3 lt USER S MANUALS u etu 4 lt FIG 6 POWER ADAPTOR 5 gt 4 lt EFIG 7 SOFTWARE OD gt i OZ EA OAZA EO 5 lt PIG 8 UTP ACABEE
2. 9 EVB8051User s Manual 43 3 2 4 Web Server 3 2 4 1 Source Codes Software Firmware DirectMode WEB_SERVER 3 2 4 2 Flow Diagram 44 EVB8051 User s Manual Initialization 8051 LCD W3100A Software Reset Network Configuation Apply default netowrk configuration in EEPROM or Update network configuration gt Y Create TCP Socket with port 80 Y Set the socket to server mode gt lt 5 ae ed Error occurred es c unl b R E No IM EC connected gt alculate received ncc ed data size amp the size 2 07 R Cz Close socket Sa Yes E od REN Receive data from W3100A L Closed by peer gt pem Y No Analyze HTML request p e message Y pen es SA Already closed BR Y No Create HTML header Y OS Request message type No 7 Yes Y Display text or LED Execute CGI function Y Create HTML body Y Transmit HTML document EVB8051User s Manual 45 3 2 5 SMTP WEB 3 2 5 1 Source Codes Software Firmware DirectMode SMTP_WEB 3 2 5 2 Flow Diagram Initialization 8051 LCD W3100A Software Reset Network Configuation Apply default netowrk configuration in EEPROM or Update network configuration
3. VM 0x9800 0xA000 process Addr begin if Addr gt 100110 and Addr lt 101000 then nCS_VM lt 0 else nCS VM lt 1 end if end process W3100A 0x8000 0 9000 0 000 0x10000 process Addr begin if Addr gt 100000 and Addr lt 100100 or Addr gt 110000 then nCS IINCHIP lt 0 else nCS IINCHIP lt 1 end if end process end arch test W3100A 0x8000 0 9000 0 000 0x10000 process Addr nRD nWR begin if Addr gt 100000 and Addr lt 100100 or Addr gt 110000 and nRD 0 or nWR nCS IINCHIP lt 0 else nCS IINCHIP lt 1 O 56 EVB8051 User s Manual end if end process end arch_test 4 3 Parts List Please refer to part list in Software CD Schematic DirectMode Partlist EVB8051User s Manual 57 Appendix A Quick Testing Procedure A 1 Loopback Test Step 1 Check whether EVB8051 is connected to PC correctly with UTP cable Step 2 Slide on EVB8051 to the right and turn on the power of EVB8051 Step 3 Ping to EVB8051 192 168 0 2 on the PC whether EVB8051 is connected to the PC correctly Step 4 Install Axinstall exe only for the first time and run Ax1 exe on the PC Step 5 Select TCP Connect menu and enter EVB8051 s IP address and Port number 5000 Step 6 Select File Send menu and select a file to transfer A 2 Web Server Test S
4. Fu 1ction Name void setgateway u_char addr Ar juments addr Pointer having the value for setting up the gateway IP Re urn value None De scription Gateway IP setup function Cz API Function 28 EVB8051 User s Manual void setlP u_char addr juments addr Pointer having the value for setting up the source IP address urn value None scription W3100A IP address setup function egory 1ction Name API Function void setMACAddr u_char addr juments addr Pointer having the value for setting up the MAC address urn value None scription MAC address setup function egory iction Name API Function void settimeout u_char val juments val Pointer having the value for setting up the timeout Upper 2 bytes have the initial timeout value while the last 1 byte has the number of retransmissions until timeout urn value None scription TCP timeout setup function Used for adjusting the TCP retransmission time A timeout interrupt takes place when retransmission is attempted for establishing the connection or for data transfer beyond the set value Name API Function void setINTMask u_char mask juments mask Value of the mask to be set 1 refers to interrupt enable urn value None scription Interrupt mask setup function Enables disables the co
5. 27 th 29 th a Value 100 Length Data Send OK 29 th a Value 100 Length Data Receive OK 30 th a Value 100 Length Data Send OK 30 th a Value 100 Length Data Receive OK 31 th Value 100 Length Data Send OK AXI Loopback Test lt Fig 25 UDP Test in Succession gt ka sssosu 20 EVB8051 User s Manual 2 2 2 Web Server Test 2 2 2 1 Outline The EVB8051 provides the source code to control the equipment through the web and is available for developing applications that require web server functions 2 2 22 Testing Procedure The test method for the web server is the same as for the Loopback test Download the web server program Software Firmware DirectMode WEB_SERVER HTTPD HEX from the Software CD to the EVB8051 for testing For more information on program downloading refer to Section 3 3 2 Run the ping command to the EVB8051 to check network operation By default the IP address of the EVB8051 is set to 192 168 0 2 If the Ping command works properly run the web browser on the PC and enter the IP address of the EVB8051 192 168 0 2 in the URL window to attempt to access the web server of the EVB8051 If the EVB8051 is running in web server mode the starting screen of the web page will look like lt Fig 26 gt WEB CONTROL 8051 EVB 3 0 Microsoft Internet Explorer BE SARIA FAD TEH esz gt 0 4 Qa WEAR Eh 5 8 FEW ej
6. ESEE SEC SEE SEE 8 2 5 fos o o o PEE SEE SE oA f ADDRESS 00 08 DC 00 00 00 ISUBNET MASK 255 255 255 000 G W IP ADDRESS 192 168 000 001 Connected 57600 8 None 1 None Capture OFF lt Fig 22 Starting Screen of UDP Loopback gt On the PC Run the AX1 exe program From the UDP menu of the AXI program select Open to display the dialog box as shown in lt Fig 23 gt And set port of UDP for PC lt Fig 23 Open UDP Socket gt EVB8051User s Manual 19 Select Send to display the dialog box as shown lt Fig 24 gt Enter Peer IP Address port data size and value for UDP loopback test of EVB8051 And push the OK button UDP Send Data Peer IP Address 192 168 0 2 Peer Port Number 3000 Data Format Value 0 255 97 Cancel lt Fig 24 Input of the EVB8051 Information and Data Format gt Then you can see the image as shown in lt Fig 25 gt Now PC and EVB8051 are sending and receiving each other i2Chip Loopback Test Program File E UDP CUPTICK 5 value 100 Length Data Send OK z Value 100 Length Data Receive OK Value 100 Length Data Send OK 27 th Value 100 Length Data Receive OK 28 th a Value 100 Length Data Send OK 26 th a a a a 28 th Value 100 Length Data Receive OK 26 th
7. you d better check whether the UTP cable works correctly p SST EVB8051User s Manual 23 2 3 2 Misc 2 3 2 1 made Step 1 When the screen remains blank with the power on after a connection is Check the connection condition of the serial cable Step 2 Check if the COM Port numbers of the PC and terminal coincide Step 3 Check the terminal configuration 24 EVB8051 User s Manual 3 Programmer s Guide 3 4 API Function 3 1 1 Type of Functions 1 Internal Function Used inside the driver function 2 Function Used in applications Fu iction Name void IntO void interrupt 0 uments None Re urn value None De cription Interrupt handling function of the W3100A Stores the status information that each function waits for in the global variable S STATUS for transfer S STATUS stores the interrupt status value for each channel Ca egory Ft nction Name Internal Function void ESTABLISHED SOCKET s juments Channel number R turn value None Di scription Established connection interrupt handling function Called upon connection establishment and may be inserted in user code if needed by the programmer Ci tegory Ft action Name Internal Function void ISR CLOSED SOCKET s Ar juments s Channel number R turn value None De scription Closed connection interrupt handling functio
8. DEMO SMTP PAGE OF THE EVB8051 gt 23 ZFIG 20ZUMISI NESJE wa OR ARA RER A A has OE 49 be vi EVB8051 User s Manual lt FIG 29 MAKING A NEW gt 50 SEIG 30 52325 outa ce eedem 50 SEI 315 EEIP BY AV MEL 52 lt FIG 32 MEMORY OF EV 0512 si eee rtm eU ee E 53 Tables lt TABLE1 LIST OF ITEMS CONTAINED IN THE EVB8051 gt lt TABLE2 LIST OF COMMAND FOR NETWORK CONFIGURATION FOR EVB8051 gt 12 EVB8051 User s Manual vii 1 Getting Started 1 1 EVB8051 Package 1 1 1 Components The 8051 is packaged as shown lt Fig 1 gt and its contents as shown lt Fig 2 gt lt Fig 1 EVB8051 Package gt EVB8051 User s Manual 1 8051 contains the items described in the table below Photographs of the items are shown in lt Fig 3 gt through lt Fig 11 gt lt Table 1 List of Items Contained in the EVB8051 gt No Item Quantity 1 MB EVB8051 1 2 NM7010A Plugged in MB EVB8051 1 2 User s Manual 1 3 Power Adaptor 5 1 4 Software CD 1 5 UTP Cable 1 6 Serial Cable 1 EVB8051 User s Manual Version 3 1 lt Fig 2 Items contained in the EVB8051 gt 2 EVB8051 User s Manual lt Fig 3 gt shows the EVB8051 Board
9. Fun tion Name void wait 1ms int cnt Arg iments ent count Ret rn value None Des ription Designates the delay Waits for 1 millisecond gory Internal Function tion Name void wait 1us int cnt iments cnt count rn value None ription Designates the delay Waits for 1 millisecond gory Internal Function EVB8051User s Manual 39 3 2 Sample Source Codes 3 2 1 Loopback amp TCP Server 3 2 1 1 Source Codes Software Firmware DirectMode LB_TCP_SERVER 7 Z3 40 EVB8051 User s Manual 32 1 2 Flow Diagram Initialization 8051 LCD W3100A Software Reset Network Configuation Apply default netowrk configuration in EEPROM or Update network configuration c Create TCP Socket Set the socket to server mode Error occurred Calculate received data size amp the size gt Is socket connected Close socket A Yes Service Loopback Closed by peer Receive data from W3100A Transmit data via W3100A Yes No Already closed Jo EVB8051User s Manual 41 3 2 2 Loopback amp TCP Client 3 2 2 1 LB_TCP_CLIENT 3 2 2 2 Flow Diagram Initialization 8051 LCD W3100A Software Reset Network Configuation Apply default netowrk configuration in EEPROM or Update network configuration Sour
10. It includes LCD that is useful for testing the functions of the web server and for debugging lt Fig 3 EVB8051 gt lt Fig 4 gt shows a NM7010A plugged in the EVB8051 For more information please refer to Appendix C Specification of NM7010A lt Fig 4 NM7010A gt EVB8051User s Manual 3 lt Fig 5 gt shows the User s Manual of the 8051 Version 3 1 Wiznet EVB8051 User s Manual lt Fig 5 User s Manual gt lt Fig 6 gt shows the 5V Power Adaptor for supplying power to the EVB8051 yoidvav ov lt Fig 6 Power Adaptor 5V gt EVB8051 User s Manual lt Fig 7 gt shows the Software CD provided with the EVB8051 It contains Documents Schematics Source Code and Software Mgurce fevel Driver API for WiZnet products Data sheet PDF Manual PDF amp Application Note PDF Application examples with source code Schematics for design reference lt Fig 7 Software CD gt lt Fig 8 gt shows the UTP Cable Crossed Cable for connecting the EVB8051 directly to the PC lt Fig 8 UTP Cable gt p a EVB8051User s Manual 5 lt Fig 9 gt shows the Serial Cable Female to Female connecting the EVB8051 to the PC It is used for monitoring and program downloading Please refer to Appendix B Specification of serial cable lt Fig 9 Serial Cable gt EVB8051 User s Manual 1 1 22 Software CD The EVB805
11. Me NT 2000 XP Supports RS232 or CAN link Note Above information may differ Please refer to recent information on it from ATMEL 1 2 2 Evaluation Board Configuration 1 2 2 1 W3100A mode setting The W3100A s mode has been fixed to CLOCKED mode as default 1 2 2 2 PHY mode setting The PHY mode has been set as follows Auto Negotiation Yes Full Duplex Yes Speed 100Mbps EVB8051User s Manual 13 2 User s Guide 2 1 Evaluation Board Layout lt Fig 14 gt illustrates the layout of the EVB8051 Board On the upper left is the processor area that includes the 8051 MCU with 64 Kbytes of flash memory and 32 Kbytes of SRAM On the upper right is TEXT LCD area The power section is located on the bottom left which accepts 5V and supplies 5 and 3 3V to the board On the bottom right NM7010A that includes W3100A PHY and MAC jack with transformer is located RC Connector 1x8 F Network Camera Connector 2x17 F 74573 5 3ZKByte SRAM LCD 2 8051 5 5 i MAX232 5 25 Mode Switch EEPROM 16V8 PAL A u 1615 10 ZUNGS 7414 i2Chip W3100A Power Part DC Power Reset PHY LED BY Switch Switch for IIM7000A 8051EVB REV3 1 lt Fig 14 Layout of EVB8051 gt 14 EVB8051 User s Manual 2 2 Fu
12. gt return socket status SEL_SEND 0x01 SEL_RECV 0x02 buffer gt return free transmit buffer size gt return data size in receive rn value Socket status or free transmit buffer size or received data size ription Function handling the channel socket information gory Name API Function u_int read_data SOCKET s u_char src u_char dst u_int len iments s Channel number src Receive buffer pointer of the W3100A dst System buffer pointer len Data size to be copied rn value Copied data size ription Copies the receive buffer data of the W3100A to the system buffer It is called from the recv or recvfrom function gory Name Internal Function u int write data SOCKET s u char src u char dst u int len iments s Channel number src System buffer pointer dst Transmit buffer pointer of the W3100A len Data size to be copied Ret rn value Copied data size Des ription Copies the system buffer data to the transmit buffer of the W3100A It is called from the send sendto_in function Cat gory Internal Function EVB8051User s Manual 37 Fun tion Name void wait 10ms int cnt Arg iments ent count Ret rn value None Des ription Designates the delay Waits for 10 milliseconds gory Internal Function TYT 38 EVB8051 User s Manual
13. ry couni d NE Y Y Yes Not found DHCP server Return error IN End y Yes lt Y Generate DHCP Request Message amp Broadcasting the message No ai Try count gt 10 a POR iei Yes Apply received network No ACK from DHCP server information from DHCP Return error NY server to W3100A Y fo Return Success irs End Y pt Yes Save received network DHCP succeeded gt gt information from DHCP cC NU c server to EEPROM No Y Network Configuation Apply default netowrk configuration in EEPROM or Update network configuration via RS232 Loopback Service 48 EVB8051 User s Manual 3 3 Application Development Procedure 3 31 Program Developing Procedure based on the compiler Note For this developing procedure you need KEIL compiler and FLIP by ATMEL 3 3 1 1 Configuration 1 RunuVision 51 2 Options gt BL51 Code Banking Linker set Xdata Address arbitrarily in the SRAM area and the Code Address to 0 Refer to the section 3 3 3 Memory Map BL51 Code Banking Linker TCPS PRA Additional OK Bank Area Cancel Size decimal 128 Segment Location Hel Bit Address hex Xdata Address hex 9200 Default Code Address hex 0 Idata Address hex Data Address hex Pdata Address hex Command Line Option
14. 03 lt Network Configuration Mode gt iD isplay network configuration IP address update Deciaml S ubnet mask update Decimal address update Decimal H ardware address update HexaDeciaml Format E xit network configuration mode EEPROM with 0x00 Connected 57600 8 1 None Capture OFF QnxQ Tx Fig 13 Network Configuration Menu And when you press you can see the menu as shown in Fig 13 gt The menu consists of the Command Set as shown in Table 27 p s PT EVB8051User s Manual 11 lt Table 2 List of Command for Network Configuration for EVB8051 gt Command Meaning D d Display network information Gg Set Default Gateway IP address S s Set Subnet Mask 1 1 Set IP address H h Set EVB MAC address E e Exit menu and run program 12 EVB8051 User s Manual 1 2 1 3 Program Installation Since the EVB8051 uses an ATMEL 8051 MCU you can use the development tools In System Programmer provided by ATMEL To download the tools required for development visit the ATMEL site and download the latest version of the FLIP Software for installation 8051 Architecture Software http www atmel com atmel products prod74 htm FLIP Software Download dev tools3bc6cOcebce3f zip now 1 9M updated Apr 24 2002 FLIP Flexible In system Programmer software v1 6 0 Runs Windows 9x
15. 0A datasheet for further detail regarding reset RESET I JP2 2 Reset Active low EVB8051User s Manual 71 Reset RTL8201BL chip For complete reset function this pin must be asserted low for at least 1011 gt Z3 72 EVB8051 User s Manual
16. 1 is supplied with a Software CD that contains various development tools including Documents Schematics Source Codes and PC Softwares lt Fig 10 gt shows the directory structure of the Software CD C DATASHEETs C3 MANUALs SRC C3 PARTLIST 41 SCHEMATICS E SW EC FW 1 DIRECT CJ DHCP C3 IFTEST i LB_TCP_CLIENT CT LB_TCP_SERVER LB_UDP i PING SMTP_WEB C3 WEB_SERVER i BMC l2c i IFTEST C3 LB_UDP CJ LBCLIENT i LBSERVER 0 INDIRECT C3 LB_TCP_CLIENT CI LB_TCP_SERVER C3 LB_UDP C3 WEB_SERVER E C PC APPS LoopbackTest 1 MiniTerm lt Fig 10 Directory Structure of the Software CD gt 1 1 2 1 Document Contains the data sheets of essential parts including the W3100A User manual is also included 1 1 2 2 Schematic Contains the circuit diagram of the EVB8051 The PAL subdirectory contains the PAL Source that is necessary for interfacing the 8051 MCU and the W3100A EVB8051User s Manual 7 EC 1 1 2 3 Software Software is provided for the Firmware and PC applications The software for the Firmware contains the W3100A API Driver for the 8051 and some samples of application source code The software for PC applications contains Loopback Test program and Serial Terminal program for Windows EVB8051 User s Manual 1 2 System Configuration 1 2 1 PC Setup 1 2 1 1 Connecting Cables For testing the functions of the EVB8051 and for application development the system should be configure
17. 16 gt Enter the IP address assigned to the EVB8051 192 168 0 2 and the Port 5000 number and try the connection Peer IP amp Port Setting Peer IP 192 168 0 2 Peer Port 5000 lt Fig 16 Input of the Connection Information gt Once a connection is set up between the EVB8051 and the computer a box with the Connected message appears as shown in lt Fig 17 gt ze x AN Connected lt Fig 17 Connection Setup Completed gt 16 EVB8051 User s Manual After the connection setup select Send from the File menu The dialog box for file transfer appears Select a file to start the loop back test Refer to lt Fig 18 gt 0 16 Mbps 532480 Bytes lt Fig 18 File Transfer gt You can perform the Loopback test successively using the A uto command or the I teration command Make sure to perform the S end command before the A uto command or the I teration command lt Fig 19 gt shows the result of I teration command execution i2Chip Loopback Test Program ID x File E TCP UDP CUPTICK IZChip Send 0 1602 Mbps 1007370 bytes 47 9628 seconds amp IZChip Recv 0 1590 Mbps 1007370 bytes 48 3221 seconds I2Chip Send 0 1602 Mbps 1007370 bytes 47 9617 seconds IZChip Recv 0 1590 Mbps 1007370 bytes 48 3222 seconds IZChip Send 0 1602 Mbps 1007370 bytes 47 9780 seconds I2Chip Recv 0 1591 Mbps 1007370 byte
18. C interface EVB8051User s Manual 63 5 mode This pin is positioned as pull down internally LSDA JP2 26 SDA data used by LC interface mode This pin is positloned as pull down internally Network status Indicator LEDs Symbol Type Pin No Descripti L COL 6 22 LED Active low when collisions occur Link 100 ACT LED Active low L_100ACT A ie when linked 100 Base TX and blinking when transmitting or receiving data Link 10 ACT LED Active low when L 10ACT O JP2 10 linked 10 Base T and blinking when transmitting or receiving data Full Duplex LED Active low when L_DUPX O JP2 11 in full duplex operation Active high when in half duplex operation L_LINK O JP2 12 Link LED Active low when linked Miscellaneous Signals Reset Mode setting etc Symbol Descriptic RESET I JP1 6 Reset Active high Initializes or Reinitializes the W3100A Asserting this pin will CE _ 64 EVB8051 User s Manual n force a reset process to occur which will result all internal registers reinitializing to their default and all strapping options are reinitialized For complete reset function this pin must be asserted low for at least 10us Refer to W3100A datasheet for further detail regarding reset RESET JB252 Reset Active low Reset RTL8201BL chip For comple
19. EVB8051 User s Manual Version 3 1 1 COPYRIGHT NOTICE Copyright 2002 WIZnet Inc All Rights Reserved Technical Support support wiznet co kr Sales amp Distribution sales wiznet co kr General Information info wiznet co kr For more information visit our website at http www wiznet co kr ii EVB8051 User s Manual Table of Contents 1 Getting Started 1 BV i 1 zai 1 1 1 2 Softwate CD Je e eee eee 7 1 2 System Configuration soe eri bet t ah oto fed 9 LZ I pc a pr REIR ER Re 9 1 2 2 Evaluation Board Configuration essere 13 2 Users 14 2 1 Evaluation Board Layout ee teer e its 14 2 2 Function e este 15 2 2 1 v Eo6pback I68t s ico n m RU aU Rin 15 22 2 Web Servet ono ue e Ee that RR 21 2233 SMTPTest ene eee pee ede 22 23 Troubleshooting Guide cnc as o Rd e e eet 23 2 37 23 et ii et ne ER OWA E e a EUR en AE 24 3 Programmers Guide 25 3 1 APLPUBCUOD seed ert ai ede t dep tutes 25 3 T TDype of Functions 25 3 2 Sampl
20. S ai EO AO I EUNDO S RH A ae 5 lt 15 09 lees O PiE 6 lt FIG 10 DIRECTORY STRUCTURE OF THE SOFTWARE gt 0 7 lt FIG 11 SYSTEM CONFIGURATION BETWEEN EVB8051 AND gt 9 lt FIG 12 BOOT UP MESSAGE OF 8051 gt 11 lt FIG 13 NETWORK CONFIGURATION gt 1 0 000000000010 11 14 LAYOUTOFEVBSOSI gt 14 lt FIG 15 RUNNING OF 1 PROGRAM 16 lt FIG 16 INPUT OF THE CONNECTION gt 16 lt FIG 17 CONNECTION SETUP gt 16 lt 18 FILE TRANSFER us iz I WO I ER E YR GER WY 17 lt FIG 19 LOOPBACK TEST IN SUCCESSION eese eene 17 lt FIG 20 INPUT OF THE LISTEN PORT 2 sotiei ra aer eene 18 lt FIG 21 STARTING SCREEN OF CLIENT eene enne 18 lt FIG 22 STARTING SCREEN OF UDP gt 19 lt FIG 23 OPEN UDP SOCKET e YE AYO A 19 lt FIG 24 INPUT OF THE EVB8051 INFORMATION AND DATA FORMAT eene 20 lt FiG 25 UDP TEST IN SUCCESSION gt eee a desee O O aa 20 lt FIG 26 HOME PAGE FOR WEB PAGE TEST OF THE 8051 gt 21 lt FIG 27 STARTING SCREEN FOR THE
21. TCP data Called by the send function for TCP transmission It first calculates the free transmit buffer size and compares it with the size of the data to be transmitted to determine the transmission size After calculating the data size it copies data from TX_WR_PTR It waits if there is a previous send command in process When the send command is cleared it updates the TX_WR_PTR up to the size to be transmitted and performs the send command Internal Function Fu iction Name u_int recv SOCKET s u_char buf u_int len Ar juments s Channel number buf Pointer where the data to be received is copied len Size of the data to be received Re urn value Received data size De icription TCP data receiving function The recv function is an application I F function It continues to wait for as much data as the application wants to receive Ca egory API Function iction Name u_int sendto SOCKET s const u_char buf u_int len u_char addr u_int port juments s Channel number buf Pointer indicating the data to send len Size of the data to send addr Destination IP address urn value Sent data size CE ZZ TEZ 34 EVB8051 User s Manual De scription UDP data sending function Composed of the sendto and sendto in functions The send function is an application I F function It continues to call the send in function to complete the sending of the data up to th
22. Y IS Addr 5 6 amp Addr 4 5 amp Addr 3 4 amp Addr 2 3 amp Addr 1 2 amp Addr 0 1 amp nPSEN 9 amp nRD 7 amp nWR 8 amp nEA 11 TEE EELLLLLLLITELII L LIIZZZIIZI ALIZLILNUILLILUTUUIXLILL ILILLLLLLLLLLLLLLLLLLLLLLLLULLLLLLL LLLLL CE Z LL LZZL L3 54 EVB8051 User s Manual amp nROMCS 12 amp nRAMCS 13 amp nCS_IINCHIP 15 amp LCDCS 14 amp nCS_VM 16 amp nCS_CAM 19 amp nROMRD 17 amp nRAMRD 18 end test architecture arch_test of test is begin nROMRD lt nPSEN nRAMRD lt nRD nROMCS 0 0000 Ox7fff External ROM process Addr nPSEN begin if Addr gt 000000 and Addr lt 100000 and nPSEN 0 then nROMCS lt 0 else nROMCS lt end if end process nRAMCS 0 0000 0x 7fff process Addr nPSEN begin if Addr gt 000000 and Addr lt 100000 and nPSEN 1 then nRAMCS lt 0 else nRAMCS lt 1 end if end process LCDCS 0 9000 0x93ff process Addr nRD nWR begin if Addr gt 100100 and Addr lt 100101 and nRD 0 or nWR 0 then LCDCS 1 else LCDCS lt 0 end if EVB8051User s Manual 55 end process CAM 0x9400 0x9800 process Addr begin if Addr gt 100101 and Addr lt 100110 then nCS CAM lt 0 else nCS lt 1 end if end process
23. ce Codes Software Firmware DirectMode T Create TCP Socket Try to connect to the Server Close socket d Yes Dere N ges uccessfully pog eer connected 22 20 27 52 MM eee E Mu x Close socket RES Yes ESA Closed by peer ER F Yes Pa uem 42 T 07 _ Already closed p Y Error occurred mae End i pid lt 5 Yes Calculate receiv d gt Is socket connected No No data size 8 the size gt 077 y es Service Loopback Receive data from W3100A Transmit data via W3100A PK m SP WE EVB8051 User s Manual 3 2 3 Loopback amp UDP 3 2 3 1 Source Codes Software Firmware DirectMode LB_UDP 3 2 3 2 Flow Diagram Initialization 8051 LCD W3100A Software Reset Network Configuation Apply default netowrk configuration in EEPROM or Update network configuration Y Create UDP Socket gt Error occurred alculate received Service Loopback Receive data from W3100A Transmit data via W3100A
24. d after writing values to the ISR of W3100A Interrupt Status Register All interrupts can be masked by writing values to the IMR of W3100A Interrupt Mask Register For more details refer to the W3100A Datasheet Network Interfaces amp Network status Indicator LEDs Symbol Pin No Description O JP2 3 Transmit Output Differential pair shared 70 EVB8051 User s Manual by 100 Base TX 10 Base Modes JP2 5 When configured 100 Base TX TPRX JP2 9 Receive Input Differential pair shared by TPRX 100 Base TX and 10 Base Modes Collision LED Active low when collisions L COL O JP2 6 occur Link 100 ACT LED Active low when L_100ACT O JP2 8 linked 100 Base TX and blinking when transmitting or receiving data Link 10 ACT LED Active low when L 10ACT O e linked 10 Base T and blinking when m transmitting or receiving data L LINK O ge Link LED Active low when linked Reset Symbol Type Pin No Description RESET I 1 6 Reset Active high Initializes or Reinitializes the W3100A Asserting this pin will force a reset process to occur which will result in all internal registers reinitializing to their default and all strapping options are reinitialized For complete reset function this pin must be asserted low for at least lOus Refer to W310
25. d as shown lt Fig 11 gt First the EVB8051 is connected to the PC using the crossed UTP Cable for data transmission and the Serial Cable for monitoring and for program downloading Ej j Serial Cable E UTP Cable EVB8051 Fig 11 System Configuration between EVB8051 and PC 1 21 2 Network Configuration For convenience of development the EVB8051 contains the following default network information gt address 192 168 0 2 gt MAC address 00 08 DC 00 00 00 gt Gateway address 192 168 0 1 gt Subnet Mask 255 255 255 0 The above information contained in the EVB8051 can be modified at any time to suit the developer s purpose First for testing purposes set the PC network information as follows gt address 192 168 0 5 Gateway address 192 168 0 1 gt Subnet Mask 255 255 255 0 After the above setup confirm the operation of the EVB8051 on the PC using the Ping command C V ping 192 168 0 2 t If the connection has been set up properly the following message will be displayed on the cr EVB8051User s Manual 9 screen Pinging 192 168 0 2 with 32 bytes of data Reply from 192 168 0 2 bytes 32 time lt 10ms TTL 128 Reply from 192 168 0 2 bytes 32 time lt 10ms TTL 128 Reply from 192 168 0 2 bytes 32 time lt 10ms TTL 128 If the connection has not been set up properly the following message will be
26. displayed on the screen Pinging 192 168 0 2 with 32 bytes of data Request timed out In this case please refer to Troubleshooting Guide 2 3 1 1 2 1 3 Changing network configuration of EVB8051 When EVB8051 boots up you can change the network configuration of EVB8051 by serial After you configure your PC as shown in lt Fig 11 gt Run MiniTerm Program on your PC Set serial configuration with following values on PC Speed 57600 Parity None Data bit 8 Stop bit 1 Flow control None And reset EVB8051 You can see the boot up message as shown in lt Fig 12 gt ISS Os 10 EVB8051 User s Manual Mini Term x File E Configure C Transfer Help H BRY N O T E OOE ES E TOEA ee OE OE AN PEE E UDP Ping Pong Test Apps One Peer Created Date 20021028 Created By WIZnet Inc W3100A Driver V2 2 Flatform 8051 EVB V3 0 ee ee press C Key To Update Network Configuration Connected 57600 8 None 1 None Capture OFF rx rx lt Fig 12 boot up message of EVB8051 gt Mini Term File Configure Transfer Help H y Press C Key To Update Network Configuration Net Config Information ADDRESS 00 08 DC 00 00 00 SUBNET MASK 255 255 255 000 G W IP ADDRESS 192 168 000 001 LOCAL IP ADDRESS 192 168 000 0
27. e size of the data to be sent when the application is called Unlike TCP transmission it designates the destination address and the port API Function EVB8051User s Manual 35 Fu 1ction Name u_int sendto_in SOCKET s const u_char buf u_int len Ar juments s Channel number buf Pointer indicating the data to send len Size of the data to send Re value Sent data size scription UDP data sending function An internal function that is the same as the send_in function of the TCP Internal Function Fun tion Name u_int recvfrom SOCKET s u_char buf u_int len u_char addr u_int port Arg iments 5 Channel number buf Pointer where the data to be received is copied len Size of the data to be received addr Peer IP address for receiving port Peer port number for sending Ret rn value Received data size Des ription UDP data receiving function Function for receiving UDP and IP layer RAW mode data and handling the data header API Function Fun tion Name char close SOCKET s Arg iments s Channel number Reti rn value 1 Des ription Channel closing function Function for closing the connection of the designated channel gory API Function waw www wwwarw sys su ED 36 EVB8051 User s Manual Name u_int select SOCKET s u_char func iments s Channel number func SEL CONTROL 0x00
28. e Source COMES a VER Foo e 40 3 2 1 Loopback amp TCP Server sse 40 3 2 1 1 Source Codes SoftwarelFirmwarelDirectModol 40 LB TCP SERVER ettet etate eines 40 3 12 Flow Diagram oec ee tete n EHE 41 3 2 2 Loopback amp TCP Client 42 3 2 2 1 Source Codes SoftwarelFirmwarelDirectMode 42 EVB8051 User s Manual iii NLB TCP CLIENT 42 3 2 222 Flow Diagram eee tiec etre GR REIR 42 3 2 3 UDP evade ee 43 224 eure A ene aed fe EH Lt eus 44 325 WEB retten e 46 8 26 DHCP nre CEU opes uten 46 3 2 6 1 Source Codes Software Firmware DirectMode DHCP 47 32 62 Flow Diagram 4s eden iie eet dere fe iei 47 3 3 Application Development Procedure 49 3 3 1 Program Developing Procedure based on KEIL compiler 49 3 3 2 Program Downloading and Running Procedure based on Flip by ATMEL 50 3 3 3 Memory Map sete reete tete e n eerie 53 4 Hardware Designers Guide 54 AAS BVBSOST SCHORIAUG cene er I ENG RI ARA tA 54 42 sse uus rai iu Us pq IE SENSE 54 450 Parts LIED o KO AW e usss 57 Appendix A Quick Testing Procedure
29. et physical layer RTL8201BL C 3 Block Diagram Block Diagram NM7000A EVB8051User s Manual 67 C 4 Module dimension JP1 1 JP1 2 JP2 1 n E v T Sie 1 q NM7010 33 Z e eo 17 R5 R6 Ri eom H edo Symbol Dimension in mm A 22 4 B 25 0 C 25 0 D 2 0 68 EVB8051 User s Manual C 5 Pin description Input O Output I O Bi directional Input and output P Power Power amp Ground Symbol Descriptio VCC P JP1 1 Power 3 3 V power supply for JP2 24 NM7000A GND JEL 8 Ground JP1 13 JP1 24 JP2 1 JP2 T JP2 13 JP2 14 JP2 23 MCU Interfaces Symbol Type Pin No Descriptio 1 14 0 1 1 7 Address 15 bit wide address bus JP1 10 JP1 9 JP1 12 JP1 11 JPl 14 JP1 23 EVB8051User s Manual 69 D7 DO JP2 21 Data 8 bit wide data bus JP2 22 JP2 19 JP2 20 JP2 2 JP2 18 JP2 15 1 2 16 CS I Module Select Active low CS of W3100A RD I JPL 74 Read Enable Active low RD of W3100A WR I IPLTS Write Enable Active low WR of W3100A INT O JPL 2 Interrupt Active low Indicates that the W3100A requires MCU attention after reception or transmission The interrupt is cleare
30. iption Initialization of the channel Initializes the designated channel and waits for completion of W3100A handling Name API Function char connect SOCKET u_char addr u_int port Ar juments s Channel number addr Destination IP address port Destination port number Re urn value 1 if connection is established or 1 if connection fails De scription Sets the connection to the designated peer Establishes a connection with a peer on the designated channel and waits until the connection is established TCP client mode Ca egory API Function EVB8051User s Manual 31 char listen SOCKET s u_char addr u_int port juments s Channel number addr Peer IP address at the time of connection establishment port Peer Port number at the time of connection establishment urn value 1 if connection is established or 1 if connection fails scription Waits for connection with a peer Blocking Mode The designated channel waits for connection by a peer TCP Server mode iction Name API Function char NBlisten SOCKET s juments s Channel number urn value 1 scription Waits for connection with a peer Non blocking Mode The designated channel waits for connection by a peer TCP Server mode iction Name API Function void initseqnum SOCKET s juments s Channe
31. l number urn value None scription Generates random values for the initial SEQ to be used for establishing a TCP connection This function may be added to the code for generating random numbers for assigning a random number to initial SEQ used in TCP In an actual internet environment the initial SEQ must be a random number A fixed number is used for EVB DK API Function u int send SOCKET s u_char buf u int len EVB8051 User s Manual juments Channel number buf Pointer indicating the data to be sent len Size of the data to be sent Re urn value Sent data size De scription Function for sending TCP data Composed of the send and send_in functions The send function is an application I F function It continues to call the send_in function to complete the sending of the data up to the size of the data to be sent when the application is called The function receives the return value the size of the data sent calculates the size of the data to be sent and calls the send_in function again if there is any data left to be sent API Function EVB8051User s Manual 33 u int send_in SOCKET s u_char buf u int len juments s Channel number buf Pointer indicating the data to be sent len Size of the data to be sent urn value Sent data size scription Internal function for sending
32. n Called upon connection closure and may be inserted in user code if needed by the programmer SET EVB8051User s Manual 25 CC 26 EVB8051 User s Manual 1ction Name void RX SOCKET s juments s Channel number urn value None scription Received data interrupt handling function Called upon receiving data and may be inserted in user code if needed by the programmer Name Internal Function void init W3100A void juments None urn value None scription W3100A initialization function Function for S W resetting of the W3100A Sets the initial SEQ to be used for TCP communication iction Name API Function void sysinit u_char sbufsize u_char rbufsize juments Sbufsize tx memory size urn value rbufsize rx memory size scription W3100A initialization function Sets the source MAC source IP gateway and subnet mask to be used by the W3100A to the designated values May be called when setting the concerned register to modify network information and reflect it on the W3100A Name API Function void setsubmask u_char addr juments addr Pointer having the value for setting up the subnet mask urn value None scription Subnet mask setup function EVB8051User s Manual 27 Cz egory API Function
33. ncerned interrupt egory API Function EVB8051User s Manual 29 iction void setbroadcast SOCKET juments s Channel number urn value None scription Broadcast data transfer enable setup function Enables disables broadcasting data transfer in UDP or IP RAW mode API Function Fu 1ction Name void setTOS SOCKET s u_char tos Ar juments s Channel number tos Value to be set for the TOS field of the IP header Re urn value None De scription Handles protocol setup function in IP RAW mode Cz API Function action Name char socket SOCKET s u_char protocol u_int port u_char flag juments s Channel number protocol Protocol designated for the channel SOCK STREAM Ox01 gt TCP SOCK_DGRAM 0x02 gt UDP RAW 0x03 gt IP Layer RAW SOCK MACL RAW 0x04 gt MAC Layer RAW port Source port designated for the channel flag Options designated for the channel SOCKOPT BROADCAST 0x80 gt 1 refers to broadcast data transfer in UDP mode SOCKOPT NDTIMEOUT 0x40 gt 1 refers to use of only the register that designates the timeout value SOCKOPT NDACK 0x20 gt 1 refers to the delayed ACK not to be used SOCKOPT_SWS 0x10 gt 1 refers to the silly window syndrome to be used Re turn value Channel number if succeeded or 1 if failed 30 EVB8051 User s Manual De scr
34. nction Testing 2 2 1 Loopback Test The Loopback is the operational mode for measuring the transmission performance of the iinChip W3100A the 8051 It is used for measuring data transfer speed when the EVB8051 board receives data from the PC and sends it back to the PC And they are the sample code of TCP server mode and client mode 2 21 1 Configuration Since the EVB8051 board is equipped with default Loopback execution code TCP Server in the internal flash memory its operation can be verified immediately after a network has been set up First install the Axinstall exe program located in the Software PC LoopbackTest folder on the CD on the PC Once the AxinstallVX X EXE is installed the Ax1 exe program is created and is required by the PC for Loopback testing To run the Loopback program loaded on the EVB8051 slide the JP3 Slide Switch on the board to the right 2 21 2 Loopback TCP Server Test Run the ping command from the PC to the EVB8051 to check network operation By default the IP of the 8051 is set to 192 168 0 2 C gt ping 192 168 0 2 t On the PC run the AX1 exe program for connection setup The screen will look like Fig 15 gt 9 EVB8051User s Manual 15 NUM AXI Loopback Test lt Fig 15 Running of AX1 exe Program gt From the TCP menu of the AXI program select Connect to display the dialog box as shown in lt Fig
35. nmyiziB ny sz gt 8051 Evaluation Board for W3100A pem in OK ei ep Fig 26 Home page for Web Page test of the EVB8051 EVB8051User s Manual 21 2 2 2 3 Functions of the Home page 1 LCD Character Display Entering characters in the LCD Text Box on the demo page will display the characters on the LCD of the EVB8051 2 LED Remote Control It controls the LEDs on the board through the web In actual applications it can be used for controlling other devices than the LED in remote places through the web Selecting LED 1 and LED 2 in lt Fig 26 gt will turn the LEDs D1 D2 on the EVB8051 ON OFF 2 2 3 SMTP Test 2 2 3 1 Outline The EVB8051 provides the source code to send E Mail SMTP through the web and is available for developing applications that require SMTP functions 2 2 3 2 Testing Procedure The test method for the SMTP is the same as for the Web Server test Download the web server program Software Firmware DirectMode SMTP_WEB SMTPWEB HEX from the Software CD to the EVB8051 for testing For more information on program downloading refer to Section 3 3 2 Run the ping command to the EVB8051 to check network operation By default the IP address of the 8051 is set to 192 168 0 2 If the Ping command works properly run the web browser on the PC and enter the IP address of the EVB8051 192 168 0 2 in the URL window to attempt to access the web
36. ower slide the switch on to the right and turn on the power back to run the program that was downloaded in step 6 1 EVB8051User s Manual 51 Atmel Flip 1 6 0 PS 2 64 Tis n wem Fig 31 FLIP by ATMEL gt Note Recent version of FLIP is highly recommended mu 52 EVB8051 User s Manual 3 3 3 FFFFh oo W3100A Rx Buf E000h W3100A Tx Buf C000h A000h Voice Module DK 9800h 64K Byte Webcam DK Internal Flash 9400h Leb Application Program 9000h 8200h W3100A Control Reg 8000h SRAM 32K Byte 0000h 0000h lt Fig 32 Memory of EVB8051 gt SSS Oooo EVB8051User s Manual 53 4 Hardware Designer s Guide 4 1 EVB8051 Schematic Please refer to schematics in Software CD Schematic 4 2 PAL Please refer to detailed information in Software CD Schematic PAL library ieee use ieee std logic 1164 all entity test is port Addr instd logic vector 5 downto 0 nPSEN in std_logic nRD in std_logic nWR in std_logic nEA in std logic nROMCS out std_logic nRAMCS out std_logic nCS_IINCHIP out std_logic LCDCS out std_logic nCS_VM out std_logic nCS_CAM out std_logic nROMRD out std_logic nRAMRD out std_logic 5 ATTRIBUTE pin numbers of test ENTIT
37. rminal Ready This is the opposite to DSR This tells the Modem that the UART is ready to link RTS Request To Send This line informs the Modem that the UART is ready to exchange data RI Ring Indicator Goes active when modem detects a ringing signal from the PSTN EVB8051User s Manual 59 Appendix Specification of NM7010A NM7010A is a module that consists of W3100A Ethernet PHY and Mac Jack It s used as module like a component no effort is required to interface W3100A PHY chip Transformer and RJ45 It s the simplest and easiest solution to provide Internet connectivity C 1 Advantages Easy design win by reusing drop in network module Users don t need to know details of network circuits Auto detects 10 100 Mbps Ethernet speed C 2 Components TCP IP W3100A Ethernet physical layer RTL8201BL Connector RJ45 with transformer Block Diagram Block Diagram NM7010A MCU 3 Ethernet Interface W3100A Interface 60 EVB8051 User s Manual C 4 Module dimension TTT a WIZNET NM7010A REV1 1 Symbol Dimens mm A 48 0 4 0 25 0 20 4 16 4 1 0 2 0 2 0 16 0 J 13 4 EVB8051User s Manual 61 C 5 Pin description Input O Output I O Bi directional Inpu
38. s 48 3204 seconds I2Chip Send 0 1602 Mbps 1007370 bytes 47 9877 seconds I2Chip Recv 0 1590 Mbps 1007370 bytes 48 3422 seconds IZChip Send 0 1602 Mbps 1007370 bytes 47 9680 seconds I2Chip Recv 0 1590 Mbps 1007370 bytes 48 3222 seconds IZChip Send 0 1602 Mbps 1007370 bytes 47 9608 seconds 2 Recv 0 1590 Mbps 1007370 bytes 48 3222 seconds 1 Loopback Test Fig 19 Loopback Test in Succession EVB8051User s Manual 17 Ifthe program does not run properly try downloading the loopback program from the Software CD Software Firmware DirectMode LB_TCP_SERVER TCPS HEX into the EVB8051 again For more information on program downloading refer to Section 3 3 2 2 2 1 3 Loopback TCP Client Test You can test Loopback TCP Client like Loopback Server On the PC Run the AX1 exe program for connection setup From the TCP menu of the AX1 program select Listen to display the dialog box as shown in lt Fig 20 gt Enter the Port 3000 number and push the SET button lt Fig 20 Input of the Listen port gt Next try downloading the loopback client program from the Software CD Software Firmware DirectMode LB_TCP_CLIENT TCPC HEX into the EVB8051 For more information on program downloading refer to Section 3 3 2 After reset EVB8051 you can see the image as shown in lt Fig 21 gt Mini Term E I x File Configure C Transfer T Help H BRY _r_t_toto
39. s String RS 128 PL 68 Pw78 CO OH XD 0000H lt Fig 28 uVision 51 gt Making a New Project 1 Make anew project and add startup a51 and necessary sources Startup a51 file does not need to be modified 2 Modify or develop the program 3 Compile it EVB8051User s Manual 49 Project EWWORKW8051w TES T PRAJ Source Files TEST C bad NEIN Remove Cancel Help Move Down Open Open All Translator 51 Assembler Command Always Build V Include in Link Lib Object Bernier Fatal Error Warning ank number error level error level error level lt Fig 29 Making a new project gt 3 3 2 Program Downloading and Running Procedure based on Flip by ATMEL 1 Connect 8051EVB and the COM port of the PC with the serial cable 2 Slide the switch on the to the left and turn on the power 3 Flip the ISP program of ATMEL and select T89C51RD2 as the device Device gt Select gt T89C51RD2 4 Select Setting gt Communication gt RS232 and click the Connect button Port COM1 Baud 38400 Special Sync Connect Disconnect Sync Cancel lt Fig 30 Setting RS232 gt 5 Execute File gt Load HEX to load the file to be downloaded 6 Press the Run button to reprogram the internal flash memory of the 8051 in accordance with the Operation Flow 50 EVB8051 User s Manual nn 7 Turn off the p
40. server of the EVB8051 If the EVB8051 is running in SMTP mode the starting screen of the web page will look like lt Fig 27 gt Enter SMTP Server IP Account Sender Mail Address Recipient Mail Address Title Contents And push Send button When completed you can see the initial screen Note For this function test SMTP server is reachable from EVB8051 and EVB8051 should be connected Internet INNE u 22 EVB8051 User s Manual E SMTP Sample by using i2Chip W3100 Microsoft Internet Explorer D x BSE FARIA ERD e52 gt 4 Qa Gaze gs27 P Sm Ag mewy O lt SMTP SAMPLE gt SMTP panas 211 32 11 9 Account test Sender Mail test wiznet co kr Address Recipient Mail laschoGhotmail com Address Title Test mail HT E This is a test message Thank you Contents Send cera lt Fig 27 Starting Screen for the Demo SMTP Page of the EVB8051 gt 23 Troubleshooting Guide 2 31 Ping When you cannot reach EVB8051 by Ping command Step 1 Did you connect correctly between test PC and EVB8051 with UTP cable Step 2 Did you change your test PC s network environment IP address Gateway Subnet If no you should change it first as follows IP address 192 168 0 5 Gateway address 192 168 0 1 Subnet Mask 255 255 255 0 Step 3 Whether NM7010A s Link LED D4 is on If off
41. t and output P Power Power amp Ground Symbol Pin No Descriptio VCC P JP1 1 Power 3 3 power supply for JP2 24 NM7000A GND P JP 8 Ground JP1 18 JP1 24 JP2 1 JP2 T JP2 13 JP2 14 JP2 23 MCU Interfaces Symbol Type Pin No Descriptio 1 14 8 JP1 7 Address Device Address Used as JP1 10 Address 14 8 pin when set in Bus JP1 9 access mode JP1 12 Used as Device Address 6 0 JP1 11 when set in IC interface mode JP1 14 JPL 15 62 EVB8051 User s Manual A7 AO I 1 16 Address Used as Address 7 0 JP1 23 when set in Bus access mode Not used when set in interface mode Leave them NC ground them when they are not used D7 DO JP2 21 Data Used as Data 7 0 pin JP2 22 JPOC CH O JP2 20 JP2 17 JP2 18 JP2 15 JP2 16 ICs I 2095 Module Select Active low Drives CS of the W3100A RD I JP1 4 Read Enable Active low Drives RD of the W3100A WR I JPL 3 Write Enable Active low Drives WR of the W3100A INT O JP1 2 Interrupt Active low Indicates that the W3100A requires MCU attention after reception or transmission The interrupt is cleared by writing to the ISR of W3100A nterrupt Status Register All interrupts are maskable by writing IMG of W3100ACnterrupt Mask Register This signal is active low I I JP2 25 SCL clock used by I
42. te reset function this pin must be asserted low for at least 10ms MODE1 0 I JP1 25 Mode Select This pin selects MCU JP1 26 interface and operating mode Since each pin is positioned as pull down internally clocked mode the default mode is selected when the pins is not connected M1MO Mode Clocked 1 External clocked 1 O Non clocked 1 1 FCinterface Refer to the W3100A datasheet for more information of setting modes EXT_CLK I JP1 28 External clock supplementary clock used for external clocked mode In external clocked mode W3100A I EVB8051User s Manual 65 use this clock to interface with MCU Refer to the W3100A datasheet for more information JP1 27 Not Connect JP2 3 JP1 27Pin is used for factory test JP2 5 This pin must not be used by z JP2 9 users JP2 27 JP2 28 66 EVB8051 User s Manual Appendix D Specification of NM7000A NM7000A is a module that consists of W3100A and Ethernet PHY It s used as a module like a component no effort is required to interface W3100A and PHY chip So users can design quickly and easily and save the cost and time to market C 1 Advantages Easy design by reusing drop in network module No need to know details of network circuits Auto detecting 10 100 Mbps Ethernet interface C 2 Components TCP IP W3100A Ethern
43. tep 1 Connect the EVB8051 and the COM port of the PC with the serial cable Step 2 Slide the switch on the JP3 to the left and tum on the power Step3 Run Flip and select T89C51RD2 as the device in Device Select menu Step 4 Select Setting Communication R S232 menu and click the Connect button Step 5 Select File Load HEX to load httpd hex to be downloaded Step 6 Press the Run button to reprogram the internal flash memory of the 8051 in accordance with the Operation Flow Step 7 Turn off the power of 8051 and slide the switch on JP3 to the right and tum on the power back to run the program that was downloaded in step 6 Step 8 Run web browser on the PC and enter URL http 192 168 0 2 58 EVB8051 User s Manual Appendix Specification of Serial Cables Serial 9 pin Serial 9 pin Female Female CD 2 Used Default 2 RD SD Ot o cr Ln Not Used DTR 4 se 12 DSR 6 2 ND EN RTS 7 i CTS i 9 RI 9 a TD Transmit Data Serial Data Output TXD RD Receive Data Serial Data Input RXD CTS Clear to Send This line indicates that the Modem is ready to exchange data DCD Data Carrier Detect When the modem detects a Carrier from the modem at the other end of the phone line this Line becomes active DSR Data Set Ready This tells the UART that the modem is ready to establish a link DTR Data Te
44. totototofofofofotofofofoffofofototofofofotofofotototot LoopBack Program TCP Client mode Created Date 20021028 Created By WIZnet Inc W3100A Driver V2 2 Flatform 8051 EVB V3 0 ee t t fot f t ttt ttotta a 2 ADDRESS 00 08 DC 00 00 00 SUBNET MASK s 258 255 255 000 iG W IP ADDRESS 192 168 000 001 LOCAL IP ADDRESS 192 168 000 002 isocket 00 Local Port 0x1B59 Enter Host IP Address Dotted Decimal Format _ Connected 57600 8 None Capture OFF rx rx lt Fig 21 Starting Screen of TCP Client gt 18 EVB8051 User s Manual MMM Input IP Address of your PC ex 192 168 0 5 then you can see a box with the Connected message appears as shown in Fig 177 The next flow for test is same with Loopback TCP Server 2 2 1 4 Loopback UDP Test Loopback UDP is the sample code of UDP Download the UDP loopback program from the Software CD Software Firmware DirectMode LB_ UDP UDP HEX into the EVB8051 For more information on program downloading refer to Section 3 3 2 After reset EVB8051 you can see the image as shown in lt Fig 22 gt Mini Term xl File Configure Transfer T Help H P t LX ee ee sini UDP Ping Pong Test Apps Peer Created Date 20021028 Created By WIZnet Inc W3100A Driver V2 2 Flatform 8051 V3 0
45. via RS232 Sender Mail Address Recipient Mail Address Title Mail Contents Y Send Mail A 46 Send default web page Y pd D er N es n i lo lt SendMail lt j u 4 gt Y 4 Fe ET Se _ connected E im ate received a size size amp thesi size gt 07 Bc Close socket No Wes n ng x P i gt Yes The size gt The size 110964 by peor MAX Bur s SIZE gt MAX BUF SIZE No E ox E i GR Y Already closed LIUC feme _ Request message ee P gt Yes Wee Re create Web server socket Analyze CGI parameter Y Set Mail Server IP address Account Send error web page EVB8051 User s Manual SE 3 2 6 DHCP 3 2 6 1 Source Codes Software Firmware DirectMode DHCP 3 2 6 2 Flow Diagram 9 EVB8051User s Manual 47 EC Initialization 8051 LCD W3100A Software Reset DHCP Process Set MAC address unique value 8 IP address 0 0 0 0 to W3100A Y Create Broadcast UDP socket for DHCP process Y Generate DHCP Discover No Message amp Broadcasting p adiu the message gt 10 9

Download Pdf Manuals

image

Related Search

Related Contents

CEME Pro  AudioSonic SK-1523  Belkin F4D162-2 User's Manual  1.0. Protocol File Name 2.0. Configuring the Operator  en téléchargement un catalogue Lervad  1-919-832-4124 Toll-free in USA  Volltext - oops/ - Oldenburger Online-Publikations    Les Temps d`Activités Périscolaires  Untitled  

Copyright © All rights reserved.
Failed to retrieve file