
52
EPSON
S1C6N3B0 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIARCUITS AND OPERATION (Serial Interface)
When read out this bit, it indicates the status of serial interface clock.
After "1" is written in SCTRG, this value is latched till serial interface clock stops (8 clock counts). So
during this period, reading this bit SCRUN causes "1". Other time it is "0".
EISIO: Interrupt mask register (0E9H D0)
This is the interrupt mask register of the serial interface.
When "1" is written: Enabled
When "0" is written: Masked
Reading: Valid
With interrupt mask register (EISIO), masking of the serial interface interrupt can be selected.
At initial reset, this register is set to "0" (mask).
ISIO: Interrupt factor flag (0ECH D0)
This is the interrupt factor flag of the serial interface.
When "1" is read: Interrupt has occurred
When "0" is read: Interrupt has not occurred
Writing: Invalid
From the status of this flag, the software can decide whether the serial interface interrupt has been
occurred or not. Note, however, that even if the interrupt is masked, this flag will be set to "1" after the 8
bits data input/output.
This flag is reset by reading with software.
Reading of interrupt factor flag is available at EI, but be careful in the following cases.
If the interrupt mask register value corresponding to the interrupt factor flag to be read is set to "1", an
interrupt request will be generated by the interrupt factor flag set timing, or an interrupt request will not
be generated.
At initial reset, this flag is set to "0".
4.9.6 Programming notes
(1) Perform data writing/reading to data registers SD0–SD7 only while the serial interface is standby
status (i.e., the synchronous clock is neither being input or output).
(2) As a trigger condition, it is required that data writing or reading on data registers SD0–SD7 be
performed prior to writing "1" to SCTRG. (The internal circuit of the serial interface is initiated
through data writing/reading on data registers SD0–SD7.) Supply trigger only once every time the
serial interface is placed in the RUN state. Moreover, when the synchronous clock SCLK is external
clock, start to input the external clock after the trigger.
(3) Reading of interrupt factor flag is available at EI, but be careful in the following cases.
If the interrupt mask register value corresponding to the interrupt factor flag to be read is set to "1", an
interrupt request will be generated by the interrupt factor flag set timing, or an interrupt request will
not be generated.