Mac Address Setting; Writing A Command; Writing Option Parameters; Setting A Mac Address - Epson S1S60000 Application Notes

Table of Contents

Advertisement

4. MAC ADDRESS SETTING

4. MAC ADDRESS SETTING
To make network communication, a 48-bit MAC address must be set. Set a MAC address in the internal register
of S1S60000. This chapter describes how to write a command and option parameters through setting a MAC
address.

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.
BIT
15
14
DATA
The sequence number is given by the host CPU. The host CPU can give any number. When the command is
written, the status corresponding to the command is returned. The status corresponding to the command with the
sequence number 1 is returned with the sequence number 1. The sequence number shows you to which
command the returned status corresponds.
For information on numbers corresponding to command types, refer to the "S1S60000 Series Host Interface
Manual - 2.1.1.3 Command number".

4.2 Writing option parameters

After reading the status corresponding to the command, confirm that bit3 of the 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 EEPROM is alternatively available, set it from
the host CPU here. Set 00_00_48_14_01_23 (Note) for MAC address. Set the MAC address at the offset
addresses 01h to 03h of the internal register of S1S60000. Set it at three offset addresses; perform the setting
operation three times.
Note: Set the MAC address acquired on a customer basis. In the case of the S5U1S60K00H0300 board mounted
S1S60000, the MAC address set on the EEPROM can be used.
The host CPU sets "0x0000" at the beginning of the MAC address at the offset address 01h of the internal
register. The internal register to set the MAC address will be the communication end point 0 (SYSTEM
communication end point). For information on the communication end point type, refer to the "S1S60000 Series
Host Interface Manual - 2.1.1.2 Communication end point number".
Write the "send" command (0x0201: sequence number 02, communication end point number 0=SYSTEM,
command number 1=send) to the command port. For information on the "send" command, refer to the
"S1S60000 Series Host Interface Manual - 3.2 send command".
8
Table 4.1 Command form
13
12
11
10
Sequence number
9
8
7
6
Communication end
point number
EPSON
S1S60000 Application Note No.2 (Rev.1.1)
5
4
3
2
Command number
1
0

Advertisement

Table of Contents
loading

Table of Contents