Advertisement

Quick Links

W5200E01-M3 User's
Guide
Version 1.0
www.wiznet.co.kr
©Copyright 2011 WIZnet Co., Inc. All rights reserved.

Advertisement

Table of Contents
loading

Summary of Contents for Wiznet W5200E01-M3

  • Page 1 W5200E01-M3 User’s Guide Version 1.0 www.wiznet.co.kr ©Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 2: Table Of Contents

    10.2.1 Network configuration for TEST PC ............ 24 10.2.2 Ping Test at Command Prompt ............24 10.3 App. TEST – Loopback TEST .............. 25 Physical Specification ................27 Schematic ....................28 © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 3 Figure 7 TCP SERVER /CLIENT........................14 Figure 8 Compile on IAR Embedded Workbench IDE ..............19 Figure 9 Flow Chat of Demonstration ....................23 Figure 10 W5200E01-M3 Board Dimension ..................27 © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 4: Introduction

    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.
  • Page 5: Specification

    Program Enable Switch 1Ea Expansion Port MCU port expansion in 2.54mm Pitch Pin-Header Hole 28mm * 52mm Size W5200E01-M3 Block Diagram The Block diagram is shown below. Figure 1 W5200E01-M3 Block Diagram © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 6: Hardware Layout

    Hardware Layout The layout of the W5200E01-M3 is shown below. Figure 2 W5200E01-M3 Layout (a) SILK TOP (b) SILK BOTTOM Table 2 Hardware Description Symbols Description Symbols Description W5200 Hardwired TCP/IP Core STM32F103C8 Cortex-M3 MCU RESET S/W Reset Switch User LED1 /...
  • Page 7: Expansion Port Interface

    UART1_TX/TIM1_CH2 RXD1 PB11 I2C2_SDA/USAART3_RX PA10 UART1_RX/TIM1_CH3 PB12 SPI2_NSS/I2C2_SMBAI PA11 UART1_CTS/CANRX/ PB13 SPI2_SCK/USART3_CTS PA12 UART1_RTS/CANTX PB14 SPI2_MISO/USART3_RTS PA13 PB15 SPI2_MISO/TIM1_CH3N PA14 PC13 TAMPER-RTC PA15 PC14 OSC32_IN VIN_5V External VIN (5V) PC15 OSC32_OUT © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 8: Development Environment

    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.
  • Page 9: Figure 4 Currently Supported Vcp Drivers (3Mar2010)

    Download Driver www.fidichip.com 2. Click “Drivers->VCP Drivers” 3. Download up to your operation system. Figure 4 Currently Supported VCP Drivers (3MAR2010) © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 10: W5200 Spi

    W5200 SPI The SPI Interface of ST23F103 with W5200 is shown below. Figure 5 W5200 SPI Interface © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 11 SpiSendData((data_read_command | ((data_len & 0x7F00) >> 8))); // data length bottom 8bits SpiSendData((data_len & 0x00FF)); SpiSendData(0); //dummy data data_buf[idx] = SpiRecvData(idx); //READ data CSon(); // CS=1, SPI end ISR_ENABLE();// Interrupt Service Routine disable © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 12 // data write command + data length upper 7bits SpiSendData((data_write_command | ((data_len & 0x7F00) >> 8))); // data length bottom 8bits SpiSendData((data_len & 0x00FF)); SpiSendData(data_buf[idx]); CSon(); // CS=1, SPI end IINCHIP_ISR_ENABLE(); // Interrupt Service Routine disable © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 13: W5200 Memory Map

    Interrupt Low Level Timer (INTLEVEL[0-1]) 0x0032 Reserved 0x0034 Socket Interrupt (IR2) 0x0035 PHY Status (PSTATUS) 0x0036 Interrupt Mask (IMR2) n is socket number ( 0, 1, 2, 3, 4, 5, 6, 7 ) © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 14: Reference Firmware

    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 © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 15: W5200 Socket Api

    TX buffer s = 0; //set SOCKET 0 * data_buf[max_size_tx_buf] = (uint8 *)0x7000; set position of data buffer len = 1460; //set length is 1460 Byte send(s, (uint8 *)data_buf, len); © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 16 (FIN packet) to a peer and wait for a disconnect-reply (FIN/ACK packet) close() Unlike DISCONNECT, CLOSE directly s = 0; // set SOCKET 0 close(s); changes the SOCKET to SOCK_CLOSED © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 17: Firmware Structure

    StdPeriph_Driver stm32f10x_bkp.c BKP firmware functions stm32f10x_flash.c FLASH firmware functions stm32f10x_gpio.c GPIO firmware functions stm32f10x_rcc.c RCC firmware functions stm32f10x_spi.c SPI firmware functions stm32f10x_tim.c TIM firmware functions stm32f10xusart.c USART firmware functions © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 18: Firmware Functions

    -ChConfig.destip : Destination IP -ChConfig.port : Destination Port loopback_tcpc(uint8 ch, CHConfig_TypeDef* ChConfig) loopback_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.
  • Page 19: Firmware Build And Upload

    Firmware Build and Upload Build – IAR Embedded Workbench IDE 9.4.1 To build and link you project choose “Make” form the “Project” menu, or press F7. Figure 8 Compile on IAR Embedded Workbench IDE © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 20: Upload - Flash Loader Demonstrator

    Upload – Flash Loader Demonstrator 9.4.2 Upload 1 Select the Communication port and set setting Note - PROG S/W should be selected ‘PROG’ to connect to W5200E01-M3 with PC. Upload 2 Check target readable © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 21 Upload 3 Select device in the target Upload 4 Choose Binary image file in work project Note - Binary image file’s location: …\Work\App\Debug\Exe in project directory © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 22 Upload 5 Select ”@0x08000000” in memory address list Upload 6 Select “Next” to upload the binary image file Note - After finishing ‘Download’, PROG S/W should be selected ‘RUN’ to run User APP. © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 23: Application Demonstration

    Application Demonstration Flow of Demonstration 10.1 Figure 9 Flow Chat of Demonstration © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 24: Ping Test

    Ping TEST 10.2 A ping test determines whether your test PC can communicate with the W5200E01-M3 over the network. Network configuration for TEST PC 10.2.1 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."...
  • Page 25: App. Test - Loopback Test

    App. TEST – Loopback TEST 10.3 AX1 : Loopback test program Download URL : http://www.wiznet.co.kr/UpLoad_Files/ReferenceFiles/AX1.zip AX1.zip : AXInstallV3.1.exe, AX1 Manual V3.1.pdf  Run 1 Input W5200E01-M3 IP and Port Run 2 Check “Connected” message © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 26 Run 3 Set Data format; size and base Value Run 4 Check the status message in dialog window © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 27: Physical Specification

    Physical Specification Figure 12 W5200E01-M3 Board Dimension Symbols Dimensions (mm) 28.00 25.40 52.00 1.30 1.87 2.54 1.87 © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 28: Schematic

    Schematic W5200E01-M3 Schematic can be downloading at WIZnet Homepage, www.wiznet.co.kr. © Copyright 2011 WIZnet Co., Inc. All rights reserved.
  • Page 29 Description Ver. 1.0 APR 14, 2011 Release Copyright Notice Copyright 2011 WIZnet, Inc. All Rights Reserved. Technical Support: support@wiznet.co.kr Sales & 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.
  • Page 30 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: WIZnet W5200E01-M3...

Table of Contents