
S1S60000 Technical Manual
Rev.1.5
EPSON
51
GPIO2 is used as CRS input pin in Half Duplex communication.
When the OSCCTL function is enabled, GPI07 functions as the control pin of the external oscillator.
In this
setup, this pin output HIGH level during the normal operation, but if the sleep mode is turned on and the
operating clock is switched to OSC1, its output is switched to LOW level.
By this arrangement, the external
oscillator is stopped reducing the overall power consumption as the result.
When exiting from the sleep mode
with the trigger, GPIO7 is set to HIGH and, after a predetermined oscillation stabilizing time (approximately
10ms), switching to OSC3 takes place to recover the normal mode.
GPIO [15:8] can be used as the start-stop synchronous serial pin from the setting of SERCONF of GENCR
register.
For the detail, refer to “2.3 Serial Interface”.
5.3.1
Interrupt Notice Function
When an INT0 interrupt occurs while the interrupt notice function is enabled, a packet is transmitted as
notification of the GPIO status to the DPORT port address specified by the IP address in the DADR0H, DADR0L
registers.
At the notice destination, after the CHECK confirms that the correct packet as been received,
transmit the ACK packet in the specified format.
For details about operation, please refer to “Technical
Information No.11”.
The packet configuration is described below.
(1) Configuration of Packets Transmitted from S1S60000 (Interrupt Notice Packets)
Ethernet Header
IP Header
UDP Header
UDP data
FCS
ID
TYPE
CHECK
TIME
GPDAT
GPALT
GPCFG
(2) ACK Packet Configuration
Ethernet Header
IP Header
UDP Header
UDP data
FCS
ID
TYPE
CHECK
(3) Packet Contents
Ethernet Header (14 Bytes): Standard Ethernet Header
IP Header (20 Bytes):
Standard IP Header
UDP Header (8 Bytes):
A standard UDP header consists of the port number of the transmission source,
port number of the transmission destination, UDP length, and checksum.
ID (4 Bytes):
Number of Interrupt occurrences.
Type (2 Bytes):
Interrupt notice packet = 0
×0000, ACK packet=0×0001
CHECK (2 Bytes):
UDP data checksum
Checksum is calculated in 16-bit units in the following order:
(1) Sets CHECK field (2 bytes) to “0”.
(2) Divides the UDP data into 16-bit segments and calculates one complement
sum.
(3) The result of the calculation becomes 1 complement and replaces the
CHECK.
TIME (4 Bytes):
TIME (4 Bytes): The amount of time elapsed (Unit: ms) from S1S60000 startup
to occurrence of the interrupt.
GPDAT (2 Bytes):
GPDAT register value (GPIO I/O value)
GPALT (2 Bytes):
GPALT register value
GPCFG (2 Bytes):
GPCFG register value (GPIO I/O setting)