
S1S60000 Technical Manual
32
EPSON
Rev.1.5
[ Example 3 ]
When reading 3 bytes long data at index 0 of 10bit Slave address 234 device from Master at IP
address 192.168.1.1.
URI:
http://192.168.1.1:8080/I2C?F43400SRF5LN03
Response: <DIV NAME=“DEVICE-VALUE”>000001</DIV>
(3)
EEPROM
When accessing EEPROM, designate “EEPROM” as the target, offset as the destination and value output to the
offset as the data. EEPROM input/output is performed on a word basis (16 bits is counted as 1 word).
Table 5.7
EEPROM Access Format and Return Value
Designation of offset
Designation of output data
Input/output
Digit
Specifiable value
Digit
Specifiable value
Return value
Input
2
“00” to “3F”
-
None
“0000” to “FFFF”
Output
2
“11” to “3F”(*1)
4
“0000” to “FFFF”
“OK”, “ERROR”
*1 : Rewrite from network is always prohibited in the area from “00” to “10”.
And, write to the area prohibited by the user is also disabled when EPMSK register is so set by the user.
[ Example 1 ]
When entering data from EEPROM offset 0Dh at IP address 192.168.1.1.
URI:
http://192.168.1.1:8080/EEPROM/0D
Response: <DIV NAME=“DEVICE-VALUE”>0001</DIV>
[ Example 2 ]
When outputting data 6401h to EEPROM offset 0Dh at IP address 192.168.1.1.
URI:
http://192.168.1.1:8080/EEPROM/0D?6401
Response: <DIV NAME=“DEVICE-VALUE”>OK</DIV>
5.1.2
Control from Host Interface
When accessing user operable S1S60000 hardware from the host interface, select “SYSTEM” for the terminal
point as you specify the command.
The internal registers of the S1S60000 and User Flash ROM area are also
accessible from the host interface in addition to the hardware accessible from the network.
A system can be
built by reading the configurations from the User Flash ROM and setting them on the internal registers.
For
details, refer to “SIS60000 Series Host Interface Manual”.
5.1.3
Control from External I2C Master
When controlling the hardware from an external I2C master, you can access to internal registers by operating
S1S60000 as I2C slave device.
For the detail, refer to Chapter 5.4.2.
5.1.4
Control from Serial Interface
Hardware can be controlled by the serial interface only when the GPIO [15:8] is set to be used as a serial
interface by the GPALT register, and the GPIO10 pin is HIGH.
In this case, the communication data format
used is the following ASCII codes.
No distinction between upper and lower cases is required.
Designation format:
Target[
<space>Destination][?Data]<Return>
Return value format:
Return value<CR><LF>
Target
Specify one of the following (access target), or character string “$VER”.
GPIO, I2C or EEPROM
Data
Data indicating the operation to be executed for the destination.
It
differs depending on the destination.
Multiple data are specified by
using delimiter “&”.
<Return>
Either of CR, CR
+LF or LF
The S1S60000 returns a return value in response to a control request.
When hardware control fails, it returns an
“ERROR” string.