Home
W5200E01-M3 User`s Guide
Contents
1. END Copyright 2011 WIZnet Co Inc All rights reserved 23 SPINS SSN EN LO400CGM Wiznet 10 2 Ping TEST A ping test determines whether your test PC can communicate with the W5200E01 M3 over the network 10 21 Network configuration for TEST PC Access the Start menu and click Control Panel Click Network Connections Right click the name of your network in the list of available networks Select Properties Ee M de Navigate to the General tab Scroll down through the list of connection types and locate the Internet Protocol TCP IP entry 5 Right click the entry and select Properties 6 Co figurate IP address subnet mask and Default gateway as follow figure Figure 10 Internet Protocol Properties Internet Protocol TCP IP Properties General You can get P settings assigned automatically if your network supports thie capabdity Otherwise you need to ask your network administrator for the appropiate IP settings O Obtain an IP address automatically Use the following IP address IF address 132 168 11 3 Subnet mask 295 455 255 U Default gateway 132 158 11 10 2 2 Ping Test at Command Prompt 1 Access the Start in the menu click Run 2 Enter cmd in the Open field 3 Type ping 192 168 11 4 W5200E01 M3 IP address in Command Prompt window Figure 11 Ping Test at Command Prompt ca C WINDOWS system32 cmd exe Microsoft Windows XP Versio
2. 10 Application Demonstration 10 1 Flow of Demonstration IDE Flash Loader Demonstrator Command Prompt Figure 9 Flow Chat of Demonstration START main c Set W5200 TX RX Buffer TX MEM SIZE SOCKET 0 8KB SOCKET 1 2KB SOCKET2 7 1KB RX MEM SIZE SOCKET 0 8KB SOCKET 1 2KB SOCKET2 7 1KB uint8 txsiz BMAX SOCK NUM 8 2 1 1 1 1 1 1 uint8 rxsize MAX_SOCK_NUM 8 2 1 1 1 1 1 1 main c Configure Network Information uint8 MAC 6 0x00 0x08 OxDC 0x01 0x02 0x03 MAC Address uint8 IP 4 192 168 11 4 IP Address uint8 GateWay 4 192 168 11 1 Gateway Address uint8 SubNet 4 255 255 255 0 SubnetMask Address main c Set App ex a Load Y socket Socket Number port Source Port Loopback tcps TCP Server Loopback App loopback tcps socket port Build Upload PROG RUN v W5200E01 M3 TEJ z 1 Select PROG at SW2 to pogan EE N 2 Select RUN at SW2 to run App PROG RUN 3 PUSH RESET S W R Windows OS Ping TEST Configuration Network Information of TEST PC Control panel gt gt Network and Internet Connections gt gt Network Connections gt gt Right Click Local Area Connection and Click Properties gt gt Click Internet Protocol gt gt Push Properties App TEST
3. WIZnet W5200E01 M3 User s Guide Version 1 0 W IZnet www wiznet co kr Wiznet Table of Contents O Ur A w N H 10 11 12 MOUELO aa ot ie A ED 4 SPEC CA OU AE nor EE O ROA AE a N ON A OOO 5 W5200E01 M3 Block DAG Aa a ae o aa Ea Gap HG EG De ea a ee en 5 Hardware Layout vani ea a o aces aa pup n E a al EN RL ra dd an ZEE ea aa 6 EXDSRSIOD POTEBEBIT M OB GAD A E ME A PE LM NE 7 Development environment a ae sr sienna aa ee A 8 6 1 DE se wio a a OM E oe A NI Ge 8 6 2 Install Flash loader Demonstrator 8 6 3 USB Lo UART interface IC DEIVeF union reve AOR FF DE ee GE ee Di vetu d an 8 LUE a 10 VS 206 Meier ME Bio esta hu bed A a a GE DE a A OE EE OG on 13 Reference Firmware ii EE ee ee kaka 14 9 1 W200 0CREGAPI NE ER N 15 9 2 FPMO CO UCU AE eee EE AN 17 9 3 FIRE AUDIO sn EE ER EER SR OE EO RE A ap RO EE DE GE 18 9 4 Firmware Build and Upload 19 9 4 1 Build IAR Embedded Workbench IDE ee ee ee ee ee Re RE RR ER EE ee 19 9 4 2 Upload Flash Loader Demonstrator 20 Application Demonstration ac Ee SNR GEE De de BE OE ER EG PM DE N A 23 10 1 Flow of DemonstratiONn cece RE EE Hn nnn 23 10 2 PING TEST eene ee P 24 10 2 1 Network configuration for TEST PG ii see soe ie popu season Rt Be 24 10 2 2 Ping Test at Command Prompt iss oes vk Se Ee Ee REY eg
4. st com internet mcu product 216817 jsp Click Design Support gt SW DEMOS Bottom end of page Figure 3 Download Flash loader demonstrator SW DEMOS Description Version Size a STM32F101xx and STM32F103xx Flash loader demonstrator Contains the Demo GUI Command line 2 2 0 7867KB and header source files 6 3 USB to UART interface IC Driver When the mini USB is connect to USB equipped Windows computer the Device Manager will properly installed USB to Serial driver If USB to Serial adaptor not works as expected you can download the USB to Serial driver at www ftdichip com Note Refer to Installation Guides at www fuducguo com more detailed information about USB to Serial converter Download Installation Guides 1 www fidichip com 2 Click Support gt Documents gt Installation Guides 3 Download up to your operation system Copyright 2011 WIZnet Co Inc All rights reserved 8 WIZnet Download Driver www fidichip com Click Drivers gt VCP Drivers Download up to your operation system 1 2 3 Operating System Windows Windaws Linux Mac OS X Windows CE 4 2 E pa Windows CE 6 0 Copyright 2011 WIZnet Co Inc All rights reserved 9 Figure 4 Currently Supported VCP Drivers 3MAR2010 Release Date 2011 02 28 2010 08 11 2003 05 14 2011 02 28 2010 02 11 2010 02 11 x86 32 bit 2 08 12 2 06 02 2 2 16 1 1 0 6 1 1
5. Header Hole Note 1 Some of the expanded pin headers are shared by on board peripherals 2 Refer to STM32F103C8 s datasheet for more detailed information about alternative functions of pin header Table 3 Expanded pin header USART2 RX ADC12 IN3 m mumemix pmo a pe susxmenms eue ms uxses ws samson ws me vase _ bw snwowecnam pem mr ga sem bm AJ joo F ep F e F e F me isnon on eme asns o varnim ea on pn nez sowon mo unom res oasa bm unero NN ENE WIE TE GEN aa vensen ru emsoss wa les sumen ma p e pee ms rea mmm mes steam rm foward Copyright 2011 WIZnet Co Inc All rights reserved 7 SPINS SSN EN LO400CGM Wiznet 6 Development environment 6 1 IDE The IAR Embedded Workbench for ARM IDE is currently supported Other IDE tools for ARM IDE will be supported as like Keil The W5200E01 M3 software package is released the version of IAR Embedded Workbench for ARM 5 41 Refer to IAR s own documentation on how to use it The W5200E01 M3 software package contains various examples for using W5200 SPINS SSN EN TOI00C SM 6 2 Install Flash loader Demonstrator Flash Loader demonstrator is used to program for W5200E01 M3 Note Refer to UM0462 User manual at www st com for more detailed information about STM32F103xx Flash Loader demonstrator Download UM0462 Flash loader demonstrator http www
6. Unlike DISCONNECT CLOSE directly changes the SOCKET to SOCK CLOSED Copyright 2011 WIZnet Co Inc All rights reserved to 16 Check received data s lt 0 set SOCKET 0 Men indicates the received data size in the RX buffer It must be smaller than the maximum size of the RX buffer if len 2getSn RX RSR s 0 Received data len is a length included the DATA packet data buf max size tx buf uinte 0x7000 set position of data buffer len lt recv s uint8 data buf len s lt 0 set SOCKET 0 disconnect s s lt 0 set SOCKET 0 close s SPINS SSN IN T0300C8M WIZnet 9 2 Firmware Structure Table 6 Project Hierarchy W5200E0I M main function loopback c loopback h TCP UDP Loopback Apps implementation system_stm32f10x c Cortex M3 Device Peripheral Access Layer System Copyright 2011 WIZnet Co Inc All rights reserved 17 SPINS SSN EN TOI00C SM WIZnet 9 3 Firmware Functions Table 7 Functions in main c Reset W5200 W5200 Reset Function Table 8 Key Variables for Network Configuration MACI6 0x00 0x08 OxDC 0x01 0x02 0x03 Sub SubNet 4 SubNet 4 255 255 255 0 e Note MAC address should be defined even if DHCP mode Table 9 Functions in Loopback c loopback tcps TCP Loopback server mode ch socket number 0 7 port source port loopback tcps uint8 ch uint16 port
7. Write Pointer Socket Interrupt IR2 sn TX WRO 1 PHY Status PSTATUS Ox4n26 Socketn RX Received Size Interrupt Mask IMR2 sn RA RSRO 1 0x4n28 Socketn RX Read Pointer Sn RX RIJO 1 Ox4n2A Socketn RX Write Pointer Sn RX WRO 1 0x4n2C Socket Interrupt Mask Sn_IMR 0x4n2D Fragment Offset in IP header Sn FRAGO 1 Oxan2F Reserved 0x4n30 Inc All rights reserved ket ber 0 1 2 3 5 6 7 n IS socket number 1 2 3 4 5 6 ll LLL LL LL LLL Fh SPINS SSN EN LO400CGM WiZnet 9 Reference Firmware e The TCP Transmission Control Protocol RFC 793 of IETF TCP Server Client Loopback The TCP protocol of W5200 supports both server mode and client mode user can select one and use for its application The difference between server mode and client mode are shown below Figure 7 TCP SERVER CLIENT cu SERVER CLIENT CLIENT OPEN OPEN CONNECT LIMEN Con EE uest SEBEL LES gt Data Communications Data Communications i i ai vest Or Or ascent Request Jisconnec Request CLOSED CLOSED TCP SERVER TCP CLIENT SPINS SSN EN LO400CGM WIZnet W5200 Socket API 9 1 Table 5 W5200 Socket API To create the SOCKET n the n 1th SOCKET use the socket function to set the SOCKET number protocol port number and flag The LISTEN step is only used during SERVER mode After creating the SOCKETn change the SOCKET to LISTEN status so that CLIENT can connect The CONNECT
8. bar ma 24 10 3 App TEST Loopback TEST oes y ona duc rentre e Ge EG ie Ee ide iota e dra 25 PME ES DOC EO RO EN AR EE EE ERE 27 SCENIE EE 28 Copyright 2011 WIZnet Co Inc All rights reserved 2 SPINS SSN EN LO400CGM WIZnet Table of Figures Figure 1 W5200E01 M3 Block Diagramme 5 Figure 2 VN ZOO BO EI A oU c EE EE Re GE 6 Figure 3 Download Flash loader demonstrator ss 8 Figure 4 Currently Supported VCP Drivers 3MAR2010 sse eren 9 Fig re 5 W5200 SPI TO MI URINE Dui MEME 10 Figure 6 W5200 Memory Map citer OR A eek ee ee ee eie ee nee iek eek EdW 13 Figure 7 ICP SERVER CLIENT A ee ee ee ee GE eee 14 Figure 8 Compile on IAR Embedded Workbench IDE 19 Figure 9 Flow Chat of Demonstration sn 23 Figure 10 W5200E01 M3 Board Dimension sise 27 Copyright 2011 WIZnet Co Inc All rights reserved 3 SPINS SSN EN LO400CGM WIZnet 1 Introduction W5200E01 M3 is the evaluation board for testing iEthernet W5200 and prototyping development W5200E01 M3 is composed of a STM32F103C8 based on ARM Cortex M3 CPU core a W5200 which acts as Hardwired TCP IP embedded Ethernet controller and a FT232R which acts as USB to UART interface IC W5200 has been proven in various fields to work as a fully hardwired TCP IP implemented chip that processes various protocols such as TCP UDP IPv4 ICMP ARP IGMP PPPoE and etc
9. 0 6 Processor Architecture x64 64 bit 2 06 12 2 08 02 PPC ARM MIPSII MIPSIV SHA 2 2 16 1 1 0 6 1 1 0 6 1 1 0 6 1 1 0 6 1 1 0 6 1 1 0 6 1 1 0 6 1 1 0 6 SPINS SSN EN TOI00C SM WIZnet 1 W5200 SPI The SPI Interface of ST23F103 with W5200 is shown below SPI Master STM32F103C8 Cortex M3 SPI1 NSS SPI1 SCK SPI1 MOSI SPI1 MISO Figure 5 W5200 SPI Interface SPI Slave W5200 Hardwired TCP IPCore SCS SCLK MOSI MISO SPINS SSN EN TOI00C SM WIZnet A pseudo code for read write with SPI is shown below Check the W5200 documentation for SPI burst mode and how to use it Code 1 Pseudo code for Read with SPI interface define data read command 0x00 uint16 addr address 16bits int16 data len data length 15bits uint8 data buf array for data SpisendData send data from MCU to W5200 SpiRecvData Receive data from W5200 to MCU Pseudo Code for Read data of 8bit per packet ISR DISABLE Interrupt Service Routine disable CSoff CS 0 SPI start SpisendData SpiSendData addr idx amp OxFF00 2 8 Address byte 1 SpisSendData addr Hdx amp OxOOFF Address byte 2 data write command data length upper 7bits SpiSendData data read command data len amp 0x7F00 2 8 data length bottom 8bits SpiSendData data len amp OxOOFF SpiSendData 0 dummy data dat
10. 0x0020 0x0028 0x0029 0x0030 0x0032 0x0034 0x0035 0x0036 Copyright 2011 WIZnet Co Figure 6 W5200 Memory Map ds Common Registers AP 0x0036 g 0x0037 TX Memory Reserved OxO3FF OxBFFF 0x4000 7 0x47FF Socket Registers 0xC000 0x4800 DOM emo Reserved A Ox7FFF OxFFFF Table 4 W5200 Memory Register Start Address Register 0x4n00 Socketn Mode S0_MR Mode MR GEE LI Ox4n01 Socketn Command SO CR GAR O 1 Ox4n02 Socketn Interrupt SO IR une Mase Address 0x4n03 Socketn Status SO SR SUBR 0 1 0x4n04 Socketn Source Port Source Hardware Address 20 PORTD 1 SHAR 0 5 0x4n06 Socketn Destination Hardware Address Sn_DHAR 0 5 Gm nu iem Ox4nOC Socketn DestinationIP Address Sn DIPRO 3 Reserved Ox4n10 Socketn Destination Port Interrupt IR Sn DPORTO 1 SOCK EE APTE Mask NR 0x4n12 Socketn Maximum Segment Size Retry Time Sn_MSSR0 1 RTR 0 1 0x4n14 Socketn Protocolin IP Raw mode Retry Count RCR Sn PROTQ Reserved Ox4n15 Socketn IP TOS SO TOS Authentication Type in PPPoE Ox4n16 Socketn IP TTL SO TTL PATR 0 1 0x4n17 Reserved Authentication Algorithm in PPPOE 0x4n1E Receive Memory Size PPPALGO Sn RXMEM SIZI Reserved Ox4n1F Transmit Memory Size PPP LCP Reguest Timer PTIMER Sn TXMEM SIZI PPP LCP Maui b PMAGIC Ox4n20 Socketn TX Free Size agic number Sn TX FSRO 1 Interrupt Low Level Timer 0x4n22 Socketn TX Read Pointer INTLEVEL 0 1 Sn TX RIIO 1 Reserved Ox4n24 Socketn TX
11. Cortex M3 can be used to test W5200 s performance and the surrounding peripherals can be used to implement various Ethernet Applications The USB to UART interface IC in W5200E01 M3 can be used for UART communication And the extension pin header total of 40 pins allows the user for easy connection and testing W5200E01 M3 can provide simple example codes based on ANSI C to implement various internet application programs based on W5200 W5200 can be used as a small embedded deice in Power down mode to save power consumption Main features W5200 Hardwired TCP IPcore Cortex M3 RJ 45 which is integrated transformer USB to UART interface IC 40 pin expanded header 2 user LEDs 2 Serial TX RX LEDs 1 POWER Indicate LED Mode S W Reset S W Power source USB BUS power 500mA External VIN 5V Copyright 2011 WlIZnet Co Inc All rights reserved 4 SPINS SSN EN TOI00C SM WIZnet 2 Specification Table 1 List of Items Contained in the EVB oem oem nem TCP IP core W5200 Hardwired TCP IP core Cortex M3 MCU STM32F103C8 USB to Serial Converter On board USB to UART interface IC FT232RQ USB bus power Ethernet On board RJ 45 which is integrated transformer EP e Emm 0 Serial Status LED 2Ea GNE e NIC Program Enable Switch 1Ea Hadr CNN in 2 54mm Pitch Pin Header Hole 28mm 52mm Size E 3 W5200E01 M3 Block Diagram The Block diagram is shown below Figure 1 W5200E01 M3 Block Diag
12. a buf idx 2SpiRecvData idx READ data CSon CS l SPI end ISR ENABLE Interrupt Service Routine disable j Copyright 2011 WIZnet Co Inc All rights reserved 11 SPINS SSN EN TOI00C SM WIZnet define data write command 0x80 Code 2 Pseudo code for Write with SPI interface uint16 addr address 16bits int16 data len data length 15bits uint8 data buf array for data SpiSendData send data from MCU to W5200 SpiRecvData Receive data from W5200 to MCU Pseudo Code for Read data of 8bit per packet SpiSendData send data from MCU to W5200 ISR DISABLE X Interrupt Service Routine disable CSoff CS 0 SPI start Spi SendData addr Hdx amp OxFF00 gt gt 8 Address byte 1 SpisSendData addr Hdx amp OxOOFF Address byte 2 data write command data length upper 7bits SpiSendData data write command data len amp 0x7F00 gt gt 8 data length bottom 8bits SpiSendData data len 6 OXOOFF SpiSendData data buf idx CSon CS 1 SPI end IINCHIP ISR ENABLE Interrupt Service Routine disable Copyright 2011 WIZnet Co Inc All rights reserved 12 SPINS SSN EN LO400CGM WIZnet 8 W5200 Memory Map Refer to W5200 Datasheet for more detail information Start Address 0x0000 0x0001 0x0005 0x0009 0x000F 0x0013 0x0015 0x0016 0x0017 0x0019 0x001A 0x001C 0x001E
13. back Test Program J e Es FielF TCP UDP CPUTICK Ts U Tr UR Send Started 0x61 0xC4 100 Bytes Sent 100 Remained 0 Send Completed Receive Started Received 100 Total Received 100 Receive Completed Copyright 2011 WIZnet Co Inc All rights reserved 26 SPINS SSN EN LO400CGM WIZnet 11 Physical Specification Figure 12 W5200E01 M3 Board Dimension E pos E w2 RESET TD RZ3 mno Oie DAB CT Copyright 2011 WIZnet Co Inc All rights reserved 27 De am De am SPIND SSN I4 T0300C 8M W5200E01 M3 User s Guide PATI FE riFEri System Reset e T Schematic W5200E01 M3 Schematic can be downloading at WIZnet Homepage www wiznet co kr WiZnet 12 mr ibaa 15 LUT 133 1813 28 Copyright 2011 WIZnet Co Inc All rights reserved WIZnet Document History Information Ver 1 0 APR 14 2011 Release Copyright Notice Copyright 2011 WiZnet Inc All Rights Reserved Technical Support support wiznet co kr Sales amp Distribution sales wiznet co kr For more information visit our website at http www wiznet co kr Copyright 2011 WIZnet Co Inc All rights reserved 29 PIE SSN I4 T0300C 8M Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery amp Lifecycle Information WiIZnet W5200E01 M3
14. ed 19 SPINS SSN EN LO400CGM GVIZnet 9 4 2 Upload Flash Loader Demonstrator Upload 1 Select the Communication port and set setting amp TMicraelectranics Select the communication port and set settings then click next to open connection Common for all families e UART Port Name GGMIEW Parity Even Baud Rate 115200 Echo Disabled Dat Bits E Timeoutis 5 Back Mext Cancel Clase Note PROG S W should be selected PROG to connect to W5200E01 M3 with PC Upload 2 Check target readable STMicroelectronics 17 Target is readable Please click Next to proceed Remove protection Copyright 2011 WlZnet Co Inc All rights reserved 20 SPIND SSN I4 T0300C 8M WiZnet Flash Loader Demonstrato N 0 mc eU te Binar Upload 3 Select device in the target STMicroelectronics Please select your device in the target list Target a M32 Med density bdk FID Chi 0410 Version 22 Flash Ox G000000 Ox S000400 Ox ener Ox BODODE OO Ox 8001000 Ox 8001400 Ox 8001800 Ox enm Dr Ox Ore Dr Ox S002400 Ox BO aO Me anne nn Protected Ux 80003FF Ox BOOOTFF x BOOOBFF 0x BOOOFFF Ux 80013FF Ox GO T FF x BODIBEF 0x BODTFFF Ox 80023FF x GODZ FF x SODPBFF w BONPEEF 0x400 CTRO 0x400 1K 0x400 CTRO 0x400 IK 0x400 CTRO 0x400 CTRO 0x400 1K 0x400 1K 0x400 1K 0x400 CTRO Ox400 CHO Di ln P A UnPro
15. loopback tcpc TCP Loopback client mode ch socket number 0 7 ChConfig destip Destination IP ChConfig port Destination Port loopback tcpc uint8 ch CHConfig TypeDef ChConfig loopback udp UDP User Datagram ch socket number 0 7 Protocol port source port Loopback server mode loopback udp uint8 ch uint16 port Copyright 2011 WIZnet Co Inc All rights reserved 18 SPINS SSN EN TOI00C SM WIZnet 9 4 Firmware Build and Upload 9 4 1 Build IAR Embedded Workbench IDE To build and link you project choose Make form the Project menu or press F7 Figure 8 Compile on IAR Embedded Workbench IDE dag IAR Embedded Workbench IDE File Edit View Project Tools Window Help 5 EE mj Gi Add Files Add Group pback c w5200 c Debug Edit Configurations ion Mal 7 I i Files I MOM ET 527005 ka Non a Chaj Create New Project i Add Existing Project cor ey oid EWA Options Alt F7 a L3 USEF inte t i dhi Source Code Control di kt loo Configure t MA Compile Ctrl 4F7 C Configurat E md Rebuild all EE Sut Clean ff NVIC Confii SP patch build FB Hm st syi IQ Configura amp c util a Download and Debug Ctrl D set W5200 A Debug without Downloading LE C10utpu ART1 Initi Lg WE Download Z SPI Init Timer Confiquri Copyright 2011 WIZnet Co Inc All rights reserv
16. n 5 1 2600 lt C gt Copyright 1985 2881 Microsoft Corp C Documents and Settings wiznet ping 192 168 11 4 Pinging 192 168 11 4 with 32 bytes of data Reply from 192 168 11 4 bytes 32 time lt ims IIL 128 Reply from 192 168 11 4 bytes 32 time 5ms TIL 128 Reply from 192 168 11 4 bytes 32 time lt ims TTL 128 Reply from 192 168 11 4 bytes 32 time lms IL 128 Ping statistics for 192 168 11 4 Packets Sent 4 Received 4 Lost Hd loss Approximate round trip times in milli seconds Minimum Hms Maximum Sms Average ims C Documents and Settings wiznet gt Copyright 2011 WIZnet Co Inc All rights reserved 24 SPINS SSN EN TOI00C SM WiZnet 10 3 App TEST Loopback TEST AXL Loopback test program Download URL http www wiznet co kr UpLoad Files ReferenceFiles AX1 zip m AXl zip AXInstallV3 1 exe AX1 Manual V3 1 pdf Run 1 Input W5200E01 M3 IP and Port a0 ex J Ee TCP Peer IP amp Port Setting es Peer IP 192 168 11 4 Peer Port 5000 Cancel Run 2 Check Connected message A Connected Copyright 2011 WIZnet Co Inc All rights reserved 25 SPINS SSN EN TOI00C SM WIZnet 44 0 Test Progra Jte Es Run 3 Set Data format size and base Value TU plk OC TCP Send Data Peer IP Address Data Format Size 100 LIK Base Yalue 0 255 97 ancel Run 4 Check the status message in dialog window az iInChip Loop
17. ram RESET Expanded Pin header 6 006066666668 Switch GGQGGQGGGQGCGGCGG TCP IP Core Sp GPIO USER LED1 2 UART PROG USB to UART Switch interface IC Mini USB B type Power Programming Copyright 2011 WIZnet Co Inc All rights reserved 5 SPIND SSN I4 T0300C 8M WIZnet 4 Hardware Layout The layout of the W5200E01 M3 is shown below Figure 2 W5200E01 M3 Layout Ethernet Port J2 JI b 8 8 T i 8 k d D aul a r an Ma el 0 8 8 T m a 8 LILI JOE un STM32F103C8 SJTSROSTI 8 gafel SPINS SSN EN LO400CGM L z ome USE W5200 sie a SCO E n OL RSC OF gt POWER ueg LED RESET S dud S W AE ao ooo 03 i SerialSerial Mini USB USERUSER TXD RXD B type LEDI LED2 a SILK TOP FT232RO b SILK BOTTOM Table 2 Hardware Description W5200 Hardwired TCP IP Core STM32F103C8 Cortex M3 MCU RESET S W Reset Switch User LEDI User LED 2Ea User LED2 PROG S W Enable Programming Switch FT232RQ USB to UART Interface IC PROG Program Enable RUN User APP Enable Ethernet Port RJ 45 POWER LED POWER Indicate LED integrated transformer Serial TXD Serial RXD Mini USB B type USB Connector Serial status LED 2Ea ILF 2 20 Pin 2 54mm Pitch Expanded Headers Copyright 2011 WIZnet Co Inc All rights reserved 6 WIZnet 5 Expansion Port Interface The expansion port has 2 54mm Pitch Pin
18. stage is used during CLIENT mode to connect to the SERVER In the case of TCP protocol the connection between the peer is already complete before sending data Copyright 2011 WIZnet Co Inc All rights reserved 15 Method 1 server mode sets Protocol Number s lt 0 set SOCKET 0 From 0 to 7 OPEN SOCKET 0 socket s Sn MR TCP port mode while getSn SR s lt SOCK INIT Method 2 client mode sets Protocol Number s lt 0 set SOCKET 0 sets port number any port 1000 OPEN SOCKET 0 socket s Sn MR TCP any port mode while getSn SR s lt SOCK INIT s lt 0 set SOCKET 0 listen s s lt 0 set SOCKET 0 serverip 4 192 168 1 2 set server destination IP serverport 0x5000 set server destination port connect s serverip serverport Send data to connected peer ll max size tx buf must be smaller than the maximum size of the TX buffer s lt 0 set SOCKET 0 data buf max size tx buf uinte 0x7000 set position of data buffer len 21460 set length is 1460 Byte send s uint8 data buf len SPINS SSN EN TOI00C SM WIZnet RECEIVE is similar in usage method to SEND but it has a checking the Sn RX RSR n disconnect The disconnect n is not used to just directly close the SOCKET It is used to send a disconnect request FIN packet a peer and wait for a disconnect reply FIN ACK packet
19. tected OD Exe E er ER W5200EVB_App bin Bin Files bin z mJ HSS Jm ENABLE bi Edit option bytes Back Next Work App Debug Exe in image file s location Copyright 2011 WIZnet Co Inc All rights reserved 21 Cancel W IOGOGOGOGOGJG 100000000000 WHITE PROTECTION Close roject director SPIND SSN I4 T0300C 8M STMicroelectronics Erase All Selection e Download to device Download from file D Amfrmware zw Work App Debug E em SLOJE YE App bin E Erase necessary pages C Mo Erase iv Global Erase E SOOODOD Jump to the user program Optimize Remove same FFs Verity after download Apply option bytes ES Upload fram device Enable Disable Flash protection ENABLE WRITE PROTECTION JES t Edit option bytes Next Cancel Close STMicroelectronics Target SIMS Med density bdk Map file SIM Med density 64k 5 Tmap Operation DOWNLOAD File name D Wifirmware 2m work App Debugt Eset WEAINE VB amp pp b File size 14 01 KB 14348 bytes status 14 01 KB 14348 bytes of 14 01 KB 14346 bytes Time 00 00 04 Download operation finished successtully Back Cancel Close Note After finishing Download PROG S W should be selected RUN to run User APP Copyright 2011 WIZnet Co Inc All rights reserved 22 SPIND SSN I4 T0300C 8M Wiznet
Download Pdf Manuals
Related Search
Related Contents
Programme des Journées européennes du patrimoine Acumuladores de agua WAS 150, WAS 200, WAS 280 CARROS LINEARES ELéTRICOS MINI Sony PRS-350 User's Manual Sanitas SHC 40 300628Fc , Reactor Doseurs hydrauliques, électriques et Lightolier C6P38MH User's Manual CIRCULAR Nº 102 ASUNTO: CURSO TRABAJO Copyright © All rights reserved.
Failed to retrieve file