Advertisement

Quick Links

S1S60000
Application Note
No.2 Ping reply method
SEIKO EPSON CORPORATION
Rev.1.1

Advertisement

Table of Contents
loading

Summary of Contents for Epson S1S60000

  • Page 1 S1S60000 Application Note No.2 Ping reply method SEIKO EPSON CORPORATION Rev.1.1...
  • Page 2 Seiko Epson. Seiko Epson reserves the right to make changes to this material without notice. Seiko Epson does not assume any liability of any kind arising out of any inaccuracies contained in this material or due to its application or use in any product or circuit and, further, there is no representation that this material is applicable to products requiring high level reliability, such as, medical products.
  • Page 3     Evaluation Board 60K00 Packing specifications Board Code Category (H: Hardware, S: Software) Corresponding Device Model Code (60K00: S1S60000)   Product Classification 2   (1S: Semiconductor IC for Communication)   Product Classification 1   (S5U: Development Tools for Semiconductor)  ...
  • Page 4: Table Of Contents

    CONTENTS 1. DESCRIPTION ..........................1 2. CONFIRMATION OF S1S60000 BOOT ................... 2 2.1 Confirming the host interface status..................2 2.2 Reading the status ........................2 2.3 Reading the boot status ......................2 3. CONFIRMATION OF S1S60000 STATUS..................4 3.1 Reading the status option parameters ..................4 3.2 Reading the cable disconnection event ...................
  • Page 5: Description

    1. DESCRIPTION To allow S1S60000 to reply to ping, a MAC address and IP address must be set. The MAC address can be set by writing it to the S1S60000 internal register. The IP address can be set by opening the SYSTEM communication end point.
  • Page 6: Confirmation Of S1S60000 Boot

    - 2.1.1.4 Status number”. 2.3 Reading the boot status In the same manner as the procedure in 2.2, read the “boot” status. Turn on the power of S1S60000 or input the reset signal and S1S60000 outputs the “boot” status (0x000b).
  • Page 7 2. CONFIRMATION OF S1S60000 BOOT Power on Turn on the power of S1S60000 or input the reset signal. HINT pin Active? Flag port bit0=1? When not using interrupt, the host CPU performs polling of bit0=1 (set) of the S1S60000 flag port to await Status port the status output.
  • Page 8: Confirmation Of S1S60000 Status

    3. CONFIRMATION OF S1S60000 STATUS S1S60000 may issue the event status to inform the host CPU of IC status. The host CPU reads the event status and option parameters to confirm which event has been informed. This chapter describes how to read the status option parameters through reading the event status and option parameters by generating a cable disconnection event and connection recovery event by disconnecting and connecting the Ethernet cable.
  • Page 9 3. CONFIRMATION OF S1S60000 STATUS Table 3.1 Cable disconnection event option parameters BYTE Read data Contents Comment 0x00 Fixed value 0x00 0x00 Flag Reserved (0) 0x00 Fixed value 0x00 Event type 0: Cable 0x00 Detail of event 0: Cable disconnection...
  • Page 10 3. CONFIRMATION OF S1S60000 STATUS Disconnect the LAN cable HINT pin Active? When not using interrupt, the host CPU performs Flag port polling of bit0=1 (set) of the bit0=1? S1S60000 flag port to wait the data output. Status port Read 0x000a Reads the “event”...
  • Page 11: Reading Cable Connection Recovery Event

    3. CONFIRMATION OF S1S60000 STATUS 3.3 Reading cable connection recovery event As the next step, connect the disconnected LAN cable to read the “event” status “cable connection recovery”. The read method is the same as “3.2 Reading the cable disconnection event”. In the case of “cable connection recovery”, the following byte column can be read.
  • Page 12: Mac Address Setting

    4.1 Writing a command When the host CPU writes a command in S1S60000, it confirms that bit2 of the flag port is “0” and writes it to the command port. The command form to be written to the command port is as follows.
  • Page 13 16-bit connection Big Endian 0x0201 S1S60000 returns the “write” status (0x0201: sequence number 02, communication end point number 0=SYSTEM, status number 1=write). Next, write the option parameters of the “send” command. Write the following data row at the data port.
  • Page 14 * Access sequence in the case of 8-bit connection: low-order port → high-order port S1S60000 returns the “ok” status (0x0203: sequence number 02, communication end point number 0=SYSTEM, status number 3=ok). Setting “0x0000” at 0bit to 15bit at the beginning of the MAC address is complete.
  • Page 15 BigEndian * Access sequence in the case of 8-bit connection: low-order port → high-order port S1S60000 returns the “ok” status (0x0303). Setting at the “0x4814” part of 16-bit to 31-bit of the MAC address is complete. At last, write the remaining “0x0123” of the MAC address at the offset address 03h of the internal register. In the same manner, write the “send”...
  • Page 16 16-bit connection 0x0000,0x0000,0x0104,0x0003,0x0000,0x0000,0xffff,0x2301 BigEndian * Access sequence in the case of 8-bit connection: low-order port → high-order port S1S60000 returns the “ok” status (0x0403). Setting at the 48bit of the MAC address is complete. EPSON S1S60000 Application Note No.2 (Rev.1.1)
  • Page 17 Flag port bit0=1? Status port write status 0x0201 Read 0x0201 Read sequence number communication point 0, and write status 1. Fig.4.1 MAC address setting flow S1S60000 Application Note No.2 (Rev.1.1) EPSON...
  • Page 18 * The above flow is an example of setting the MAC address (0 to 15 bits) in the internal register of the offset address 01h. Then, setting in the internal registers of the offset address 02h and 03 in the same manner is required. EPSON S1S60000 Application Note No.2 (Rev.1.1)
  • Page 19: Ip Address Setting And Ping Reply

    5. IP ADDRESS SETTING AND PING REPLY 5. IP ADDRESS SETTING AND PING REPLY To set an IP address in S1S60000, it is necessary to open the SYSTEM communication end point (communication end point 0). Opening the SYSTEM communication end point enables S1S60000 to reply to pings.
  • Page 20 Windows. Start the Windows command prompt and input the following command to the IP address of S1S60000. Note: The IP address of S1S60000 has been set at 192.168.0.2; set the IP address of PC to 192.168.0.xxx. ping<space>192.168.0.2<enter>...
  • Page 21: Setting An Ip Address By The Dhcp Server To Open The System Communication End Point

    This section describes how to open the SYSTEM communication end point by making setting so that the IP address of S1S60000 can be received from the DHCP server. Prepare a PC with the DHCP server function or broadband router with the DHCP function.
  • Page 22 * Access sequence in the case of 8-bit connection: low-order port → high-order port Now, the IP address of S1S60000 is enabled. To allow S1S60000 to reply to pings from the PC, it is necessary to obtain to what value the IP address has been set. To obtain the IP address, subnet mask, and default gateway set by the DHCP, follow the procedure on the next page.
  • Page 23: Confirming The Ip Address

    7=status) to the command port. The sequence number has been used to 5 when opening the SYSTEM communication end point, and therefore use the one larger number 6. S1S60000 returns the “read” status (0x0602: sequence number 06, communication end point number 0=SYSTEM, status number 2=read).
  • Page 24: Notes On Programming

    PC (ICMP ECHO request) and S1S60000 replies to pings (ICMP ECHO reply). 6. NOTES ON PROGRAMMING This application note is designed as the first step guide for S1S60000. When creating a program for the host CPU to be incorporated in an actual product, carry out processing according to the received status.
  • Page 25 12/F, Dawning Mansion, Keji South 12th Road, Northeast Hi-Tech Park, Shenzhen Phone: +86-755-2699-3828 FAX: +86-755-2699-3838 301 Edgewater Place, Suite 210 Wakefield, MA 01880, U.S.A. EPSON TAIWAN TECHNOLOGY & TRADING LTD. Phone: +1-800-922-7667 FAX: +1-781-246-5443 14F, No. 7, Song Ren Road, Taipei 110 Southeast Phone: +886-2-8786-6688 FAX: +886-2-8786-6677 3010 Royal Blvd.

Table of Contents