background image

 

 

 

 

 

 

 

 

 

 
© Copyright 2011 WIZnet Co., Inc. All rights reserved.                                                  Ver. 1.1               

 

13

 

 

W7200-EVB User

’s

 Guide 

SpiSendData(0); 

//dummy data 

data_buf[idx] = SpiRecvData(idx); 

//READ data 

CSon(); 

// CS=1, SPI end 

ISR_ENABLE();

// Interrupt Service Routine disable 

 

Code 2 Pseudo code for write with SPI interface 

#define 

data_write_command 0x80 

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(); 

// Interrupt Service Routine disable 

CSoff(); 

// CS=0, SPI start 

SpiSendData(((addr+idx) & 0xFF00) >> 8); 

//Address byte 1 

SpiSendData((addr+idx) & 0x00FF); 

//Address byte 2 

// data write c 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 

 

Содержание W7200-EVB

Страница 1: ...2011 WIZnet Co Inc All rights reserved Ver 1 1 1 W7200 EVB User s Guide W7200 EVB User s Guide Version 1 1 2011 WIZnet Co Inc All Rights Reserved For more information visit our website at http www wi...

Страница 2: ...face IC Driver 10 7 W7200 SPI 12 8 Reference Firmware 14 8 1 W7200 Socket API 14 8 2 Firmware Structure 14 8 3 Firmware Functions 15 8 4 Firmware Build and Upload 17 8 4 1 Build IAR Embedded Workbench...

Страница 3: ...e 3 Download Flash loader Demonstrator 10 Figure 4 Currently Supported VCP Drivers 16DEC2011 11 Figure 5 W7200 SPI Interface 12 Figure 6 TCP Server Client 14 Figure 7 Compile on IAR Embedded Workbench...

Страница 4: ...cols such as TCP UDP IPv4 ICMP ARP IGMP PPPoE and etc The USB to UART interface IC in W7200 EVB can be used for UART communication And the extension pin header total of 40 pins allows the user for eas...

Страница 5: ...Item Description Remark MCU W7200 STM32F103CB W5200 USB to Serial Converter On board USB to UART interface IC USB bus power FT232RQ Ethernet On board RJ 45 which is integrated transformer LED User LED...

Страница 6: ...User s Guide 3 W7200 EVB Block Diagram The block diagram is shown below Cortex M3 W7200 USB to UART interface IC PROG Switch RESET Switch USER LED 1 2 UART GPIO RJ 45 Mini USB B type Power Programming...

Страница 7: ...Table 2 Hardware Description Symbols Description Symbols Description W5200 Hardwired TCP IP Core STM32F103C8 Cortex M3 MCU RESET S W Reset Switch User LED1 User LED2 User LED 2Ea PROG S W Enable Progr...

Страница 8: ...pin header Table 3 Expanded pin header J1 Alternative Functions Shared by J2 Alternative Functions Shared by PA0 WKUP USART2_CTS ADC12_IN0 TIM_CH1_ETR PB0 ADC12_IN8 TIM3_CH3 LED3 PA1 USART2_RTS ADC12...

Страница 9: ...PB10 I2C2_SCL USART3_TX PA13 JTMS SWDIO PB11 I2C2_SDA USART3_RX PA14 JTCK SWCLK PB12 SPI2_NSS I2C2_SMBAI USART3_CK TIM1_BKIN PA15 JTDI PB13 SPI2_SCK USART3_CTS TIM1_CH1N MDC PB14 SPI2_MISO USART3_RTS...

Страница 10: ...ut STM32F103xx Flash Loader demonstrator Download UM0462 Flash loader demonstrator http www st com internet mcu product 216817 jsp Click Design Support SW DEMOS Bottom end of page Figure 3 Download Fl...

Страница 11: ...Copyright 2011 WIZnet Co Inc All rights reserved Ver 1 1 11 W7200 EVB User s Guide Figure 4 Currently Supported VCP Drivers 16DEC2011...

Страница 12: ...ce 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...

Страница 13: ...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 Interrupt S...

Страница 14: ...0 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 6 TCP Server Client 8 1 W7200 Sock...

Страница 15: ...firmware functions 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 SP...

Страница 16: ...ub Note MAC address should be defined even if DHCP mode Table 7 Functions in Loopback c Function Description Example Code Location loopback c loopback_tcps TCP Loopback server mode ch socket number 0...

Страница 17: ...ts reserved Ver 1 1 17 W7200 EVB User s Guide 8 4 Firmware Build and Upload 8 4 1 Build IAR Embedded Workbench IDE To build and link you project choose Make form the Project menu or press F7 Figure 7...

Страница 18: ...s reserved Ver 1 1 18 W7200 EVB User s Guide 8 4 2 Upload Flash Loader Demonstrator Upload 1 Select the Communication port and set setting Note PROG S W should be selected PROG to connect to W7200 EVB...

Страница 19: ...Co Inc All rights reserved Ver 1 1 19 W7200 EVB User s Guide 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 Ex...

Страница 20: ...l rights reserved Ver 1 1 20 W7200 EVB User s Guide Upload 5 Select 0x08000000 in memory address list Upload 6 Select Next to upload the binart image file Note After finishing Download PROG S W should...

Страница 21: ...nd Prompt W7200 EVB Windows OS Figure 8 Flow Chart of Demonstration 9 2 Ping TEST A ping test determines whether your test PC can communicate with the W7200 EVB over the network 9 2 1 Network configur...

Страница 22: ...nternet Protocol Properties 9 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 W7200 EVB IP address in Command Prompt win...

Страница 23: ...Copyright 2011 WIZnet Co Inc All rights reserved Ver 1 1 23 W7200 EVB User s Guide Run 1 Input W7200 EVB IP and Port Run 2 Check Connected message...

Страница 24: ...Copyright 2011 WIZnet Co Inc All rights reserved Ver 1 1 24 W7200 EVB User s Guide Run 3 Set Data format size and base value Run 4 Check the status message in dialog window...

Страница 25: ...Znet Co Inc All rights reserved Ver 1 1 25 W7200 EVB User s Guide 10 Physical Specification a b g f e d d c Figure 11 W7200 EVB Board Dimension Symbols Dimensions mm a 28 00 b 25 40 c 52 00 d 1 30 e 1...

Страница 26: ...Copyright 2011 WIZnet Co Inc All rights reserved Ver 1 1 26 W7200 EVB User s Guide 11 Schematic W7200 EVB schematic can be downloading at WIZnet Homepage www wiznet co kr...

Страница 27: ...nformation Version Date Descriptions Ver 1 0 Dec 2011 Release Ver 1 1 Dec 2011 Modify the figures Copyright Notice Copyright 2011 WIZnet Inc All Rights Reserved For more information visit our website...

Отзывы: