Академический Документы
Профессиональный Документы
Культура Документы
TM
Plus
Version 1.1
2012 WIZnet Co., Inc. All Rights Reserved. For more information, visit our website at http://www.wiznet.co.kr
Ver. 1.1
The software TCPIP stack mode didnt use the hardwired TCPIP engine but the hardware TCPIP stack mode uses the hardwired TCPIP engine, so we dont need Microchip software TCPIP stack because the W5200 already has hardware TCPIP stack (worldwide patent). So user can save the memory and MCU resource using this mode. WIZnet supports driver files to use the Microchip Application Library as usual. *Note: hardware TCPIP stack v1.1 supports SSL only one socket now. So you cannot use more than 2 sockets for SSL simultaneously. Below table is example project environment. Environment Microchip Application Library Description Ver. 2012-02-15-windows-installer TCPIP\Demo App MPLAB tool Compiler Ethernet connectivity Ver. 8.83 C30 v3.3 W5200 Ethernet PICtail
TM
Plus
2
2.1
The locations (directory path) of W5200 driver files and other necessary files for HW TCPIP library are,
Microchip Solutions\
TCPIP\
Demo App\
Configs\
Cxx-xxx_W5200.mcp Cxx-xxx_W5200.mcw HardwareProfile.h TCPIPConfig.h Microchip\ Include\ TCPIP Stack\ W5200.h MAC.h TCP_W5200.h
Ver. 1.1
UDP_W5200.h TCPIP.h TCPIP Stack\ W5200.c TCP_W5200.c UDP_W5200.c IP.c ARP.c ICMP.c
Each files must be copied to exact directory before using the W5200 Ethernet PICtail(Plus) board. Especially the MAC.h , HardwareProfile.h and TCPIPConfig.h files may already placed specified directory so you should overwrite it. The TCP_W5200.c/h files substitute TCP.c/h and UDP_W5200.c/h files substitute UDP.c/h to use hardware TCPIP stack.
File Name HWP xxx_W5200_Cxx.h TCPIP W5200.h Cxx-xxx_W5200.mcp Cxx-xxx_W5200.mcw HardwareProfile.h TCPIPConfig.h W5200.h MAC.h TCP_W5200.h UDP_W5200.h TCPIP.h W5200.c TCP_W5200.c UDP_W5200.c IP.c, ARP.c, ICMP.c
Descriptions Defines I/O including SPI to use W5200 and your board Defines network settings and others for applications MPLAB project file for xxx board MPLAB workspace file xxx board Defines file link for HWP EX16_W5200_C30.h Defines file link for TCPIP W5200.h Defines registers and address for W5200 Defines memory map, size and others for W5200 Header file for TCP_W5200.c Header file for UDP_W5200.c Includes modified header file TCP_W5200.h and UDP_W5200.h W5200 driver file for hardware TCPIP stack Hardware TCP driver file Hardware UDP driver file Empty functions because the W5200 has IP, ARP and ICMP HW logic
2.2
After copying these files, open the project file using the MPLAB IDE and use the Microchip Application Libraries as usual.
Ver. 1.1
2.3
If you dont use attachded project file, you can make your own new project, the easiest way is modifying existing project. For example using Explorer 16 board, open the C30-EX16_ENC28.mcp project file and replace or add driver files (W5200.c/h, TCP_W5200.c/h, UDP_W5200.c/h, HWP EX16_W5200_C30.h, TCPIP W5200.h, MAC.h, HardwareProfile.h, TCPIPConfig.h) files above. Then define the Preprocessor Macros CFG_INCLUDE_EX16_W5200 in the build options.
Ver. 1.1
3. Delete HWP EX16_ENC28_C30.h to and add HWP EX16_W5200_C30.h, also delete TCPIP ENC28.h and add TCPIP W5200.h. Then replace MAC.h file.
4. Remove the Preprocessor Macros CFG_INCLUDE_EX16_ENC28 and add new Preprocessor Macros CFG_INCLUDE_EX16_W5200.
Ver. 1.1
Then set the library and including path. And configure other settings (memory model, optimization level and others) properly. MAC.h, HardwareProfile.h, TCPIPConfig.h files are must be replaced with modified file ( as in the step 2).
In the hardware TCPIP stack mode, we cannot use the TCPIP Configuration Wizard because it is only available for software TCPIP stack mode. So we should modify the TCPIP W5200.h file directly.
Ver. 1.1
3.1
User can select the application what they want to run with HW TCPIP stack. Open the TCPIP W5200.h and uncomment the definition. For example, if you want HTTP server and telnet server, just uncomment the definition line. #define STACK_USE_HTTP2_SERVER #define STACK_USE_TELNET_SERVER Note: The SSL protocol (Server or Client) can support only one socket with HW TCPIP stack version 1.1 now.
3.2
After step 1, we must make TCPSocketInitializer if we use TCP application. The structure of TCPSocketInitializer is as below, {Socket Purpose, Memory Medium, TX memory size, RX memory size } Under the HW TCPIP stack version, the Memory Medium and TX/RX memory size are already fixed because of the W5200. So the TCPSocketInitializer example for HTTP server is, {TCP_PURPOSE_HTTP_SERVER, TCP_ETH_RAM, W5200_TX_RAM_SIZE, W5200_RX_RAM_SIZE} And the TCPSocketInitializer example for telnet server is, {TCP_PURPOSE_TELNET, TCP_ETH_RAM, W5200_TX_RAM_SIZE, For more detail information, please refer to the TCPIP W5200.h file. The UDP application doesnt need above definition. Note: the W5200 has 8 HW sockets, so user cannot use more than 8 sockets simultaneously. I f you assign 5 sockets for TCP, other 3 sockets are automatically assigned for UDP. W5200_RX_RAM_SIZE}
Ver. 1.1
Copyright Notice
Copyright 2011 WIZnet, Inc. All Rights Reserved. Technical Support: support@wiznet.co.kr leepoult@wiznet.co.kr (Directly) Sales & Distribution: sales@wiznet.co.kr For more information, visit our website. http://www.wiznet.co.kr/microchip http://www.wiznettechnology.com/microchip
Ver. 1.1