background image

4.  MAC ADDRESS SETTING 

 
 

S1S60000 Application Note No.2 (Rev.1.1) 

EPSON 

11 

Written data row for each host CPU type are as follows. 
 

Table 4.6    Data row for each host CPU type 

Host CPU type 

Data row 

8-bit connection 
LittleEndian 

0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x02,0x00,0x00,0x00,0x00,0xff,0xff,0x14,0x48 

8-bit connection 
BigEndian 

0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x02,0x00,0x00,0x00,0x00,0xff,0xff,0x14,0x48 

16-bit connection 
LittleEndian 

0x0000,0x0000,0x0401,0x0200,0x0000,0x0000,0xffff,0x4814 

16-bit connection 
BigEndian 

0x0000,0x0000,0x0104,0x0002,0x0000,0x0000,0xffff,0x1448 

* 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” command (0x0401), read the “write” status (0x0401), and write the option 
parameters. The sequence number has been set to 4 in increment by 1. 
Write the following data row to the data port. The difference from the second setting is the offset addresses of 
internal register at BYTE 6 and 7 and the MAC address at BYTE 14 and 15 (the hatched areas of the table). 
 

Table 4.7    Send command option parameters 

BYTE Write 

data 

Contents 

Comment 

0x00 

0x00 

Transmission data

In the case of internal register, there is no 
data following the command options. 

0x00 

Flag 

0 when the SYSTEM communication end 
point is accessed. 

0x00 Fixed 

value 

 

0x01 Operation 

Write 

(Write 

to the internal register) 

0x04 

Object 

Internal register of S1S60000 

0x00 

0x03 

Offset 

Internal register/offset address 
0x0003 

0x00 

0x00 

10 

0x00 

11 

0x00 

Fixed value 

Fixed value 0 when the internal register is 
accessed 

12 

0xff 

13 

0xff 

Bit mask 

Specify 1 as the operation object bit. 

14 

0x23 

15 

0x01 

Bit pattern 

Write value (the subsequent MAC address 
0123) 

 
When the option parameters are stored in the memory, BYTE0 in Table 4.7 is set to the low-order address of the 
memory. 
Write data row for each host CPU type are as follows. 
 

Summary of Contents for S1S60000

Page 1: ...Rev 1 1 SEIKO EPSON CORPORATION S1S60000 Application Note No 2 Ping reply method ...

Page 2: ...eover no license to any intellectual property rights is granted by implication or otherwise and there is no representation or warranty that anything made in accordance with this material will be free from any patent or copyright infringement of a third party This material or portions thereof may contain technology or the subject relating to strategic products under the control of the Foreign Excha...

Page 3: ... F QFP Model number Model name S Intelligent Network Controller Product classification S1 Semiconductors 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: ...arameters 4 3 2 Reading the cable disconnection event 4 3 3 Reading cable connection recovery event 7 4 MAC ADDRESS SETTING 8 4 1 Writing a command 8 4 2 Writing option parameters 8 4 3 Setting a MAC Address 8 5 IP ADDRESS SETTING AND PING REPLY 15 5 1 Specifying an IP address to open the SYSTEM communication end point 15 5 2 Setting an IP address by the DHCP server to open the SYSTEM communicatio...

Page 5: ...hile explaining how to use the host interface To perform the procedure the host interface of S1S60000 will be allocated to the address of the host CPU to create the program of the host CPU Alternatively you can operate the address allocated to S1S60000 using the debugger of host CPU The procedure is as follows 1 Confirm that S1S60000 is booted Read the boot status 2 Confirm the status of S1S60000 ...

Page 6: ...f the flag port 2 2 Reading the status When the status is set in status port the HINT pin becomes active Also bit0 of the flag port is set to 1 Perform polling of the flag port when not performing interrupt control The HINT pin becomes active when bit0 or bit1 of the flag port is set therefore confirm that bit0 of the flag port is set to 1 and read the status The status form read from the status p...

Page 7: ...g 2 1 Boot status read flow Power on Status port Read 0x000b 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 the status output End Turn on the power of S1S60000 or input the reset signal N Y N Y ...

Page 8: ...ecomes active and bit1 of the flag port is set to 1 Please confirm that bit1 of the flag port is set to 1 without fail before reading the data row 3 2 Reading the cable disconnection event In the same manner as the procedure in 3 1 read the cable disconnection of the event status by actually disconnecting the LAN cable When you disconnect the LAN cable the event status is issued Read the status in...

Page 9: ... the memory BYTE0 in Table 3 1 is set to the low order address of the memory Read data row for each host CPU type are as follows Table 3 2 Data row for each host CPU type Host CPU type Data row 8 bit connection LittleEndian 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 8 bit connection BigEndian 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00...

Page 10: ...not using interrupt the host CPU performs polling of bit0 1 set of the S1S60000 flag port to wait the data output Reads the event status 0x000a End Flag port bit1 1 Data port Read 16byte Read HINT pin Active N Y N Y Y N HINT pin Active Flag port bit0 1 N Y N Y When not using interrupt the host CPU performs polling of bit1 1 set of the S1S60000 flag port to wait the status output ...

Page 11: ...e 4 0x00 Event type 0 Cable 5 0x01 Detail of event 1 Cable connection recovery 6 0x00 7 0x00 8 0x00 9 0x00 10 0x00 11 0x00 12 0x00 13 0x00 14 0x00 15 0x00 In the case of cable event 0 for all When the option parameters are stored in the memory BYTE0 in Table 3 3 is set to the low order address of the memory Read data row for each host CPU type are as follows Table 3 4 Data row for each host CPU ty...

Page 12: ... flag port is 0 and bit4 is 1 and then write option parameters When the option parameters are written the status corresponding to the parameters are returned read them in the same manner as the procedure in 2 2 Reading the status 4 3 Setting a MAC Address In the same manner as 4 1 and 4 2 actually write commands and option parameters here Although a method to store the MAC address by connecting an...

Page 13: ... 4 3 send command option parameters BYTE Write data Contents Comment 0 0x00 1 0x00 Transmission data In the case of internal register there is no data following the command options 2 0x00 Flag 0 when the SYSTEM communication end point is accessed 3 0x00 Fixed value 4 0x01 Operation Write Write to the internal register 5 0x04 Object Internal register of S1S60000 6 0x00 7 0x01 Offset Internal regist...

Page 14: ...the beginning of the MAC address write the send command 0x0301 read the write status 0x0301 and write the option parameters The sequence number has been set to number 3 in increment by 1 Write the following data row to the data port The difference from the first setting is the offset addresses of internal register at BYTE 6 and 7 and the MAC address at BYTE 14 and 15 the hatched areas of the table...

Page 15: ...tatus 0x0401 and write the option parameters The sequence number has been set to 4 in increment by 1 Write the following data row to the data port The difference from the second setting is the offset addresses of internal register at BYTE 6 and 7 and the MAC address at BYTE 14 and 15 the hatched areas of the table Table 4 7 Send command option parameters BYTE Write data Contents Comment 0 0x00 1 0...

Page 16: ...8 bit connection BigEndian 0x00 0x00 0x00 0x00 0x01 0x04 0x00 0x03 0x00 0x00 0x00 0x00 0xff 0xff 0x23 0x01 16 bit connection LittleEndian 0x0000 0x0000 0x0401 0x0300 0x0000 0x0000 0xffff 0x0123 16 bit connection BigEndian 0x0000 0x0000 0x0104 0x0003 0x0000 0x0000 0xffff 0x2301 Access sequence in the case of 8 bit connection low order port high order port S1S60000 returns the ok status 0x0403 Setti...

Page 17: ...atus port Read 0x0201 Confirm whether the command write is enabled send command 0x0201 Write sequence number 02 communication end point 0 send command 1 HINT pin Active write status 0x0201 Read sequence number 02 communication end point 0 and write status 1 1 Wait the status Perform polling of the flag port bit0 1 and await the status when not using interrupt Y Y Y N N N ...

Page 18: ...ess 02h and 03 in the same manner is required Flag port bit3 0 bit4 1 Start command option parameter write control here Data port write command opt command opt 16byte Write 16 bytes of the command option parameters to the data port 1 N N Y Y Is data writing enabled Is the data port receiving circuit enabled HINT pin Active Flag port bit0 1 Status port Read 0x0203 Y Y N N Is the status present End ...

Page 19: ...ion describes how to open the SYSTEM communication end point at the IP address 192 168 0 2 subnet mask 255 255 255 0 and gateway 192 168 0 1 of S1S60000 Write the open command 0x0500 sequence number 05 communication end point number 0 SYSTEM command number 0 open to the command port The sequence number has been used to 4 for setting the MAC address use number 5 in increment by 1 S1S60000 returns t...

Page 20: ...ction BigEndian 0x0000 0x0700 0xc0a8 0x0002 0xffff 0xff00 0xc0a8 0x0001 Access sequence in the case of 8 bit connection low order port high order port S1S60000 returns the ok status 0x0503 The flow of the open command at the SYSTEM communication end point is the same as the send command described in MAC Address Setting S1S60000 has been enabled to reply to pings When the PC issues ping ICMP ECHO r...

Page 21: ...a Contents Comment 0 0x00 1 0x00 Fixed value 2 0x00 Flag Bit7 DATALINK layer is used 0 Bit6 local IP address is enabled 0 When the setting is made as above setting of IP address subnet mask and default gateway is tried using the DHCP 3 0x00 Fixed value 4 0x00 5 0x00 6 0x00 7 0x00 Local IP address 8 0x00 9 0x00 10 0x00 11 0x00 Subnet mask 12 0x00 13 0x00 14 0x00 15 0x00 Default gateway Set by the D...

Page 22: ...x00 9 0x00 10 0x00 11 0x00 12 0x00 13 0x00 14 0x00 15 0x00 In the case of IP address event 0 for all When the option parameters are stored in the memory BYTE0 in Table 5 4 is set to the low order address of the memory Read data row for each host CPU type are as follows Table 5 5 Data row for each host CPU type Host CPU type Data row 8 bit connection LittleEndian 0x00 0x00 0x00 0x00 0x01 0x04 0x00 ...

Page 23: ...rs is performed in the same process as reading the cable connection event described in 3 CONFIRMATION OF S1S60000 STATUS When the IP address 192 168 0 03 subnet mask 255 255 255 0 and default gateway 192 168 0 1 are set by the DHCP the following data row can be read Table 5 6 read status option parameters BYTE Read data Contents Comment 0 0x00 1 0x00 Fixed value 2 0x70 Flag Bit7 DATALINK layer is ...

Page 24: ...and to write data onto a device is write the send command read the write status write the option parameters and read the ok status S1S60000 however performs the command processing asynchronously and therefore a different status may be inserted in this procedure The status of the send command the host CPU expects is the write status However other statuses such as the arrival status can be read depe...

Page 25: ...005 446 447 Scotland Design Center Integration House The Alba Campus Livingston West Lothian EH54 7EG SCOTLAND Phone 44 1506 605040 FAX 44 1506 605041 ASIA EPSON CHINA CO LTD 23F Beijing Silver Tower 2 North RD DongSanHuan ChaoYang District Beijing CHINA Phone 86 10 6410 6655 FAX 86 10 6410 7320 SHANGHAI BRANCH 7F High Tech Bldg 900 Yishan Road Shanghai 200233 CHINA Phone 86 21 5423 5522 FAX 86 21...

Reviews: