Specifications
Table Of Contents
- Technical Hardware
- 1 OVERVIEW
- 2 POWER SUPPLY AND INITIAL RESET
- 3 CPU, ROM, RAM
- 4 PERIPHERAL CIRCUITS AND OPERATION
- 4.1 Memory Map
- 4.2 Resetting Watchdog Timer
- 4.3 Oscillation Circuit
- 4.4 Input Ports (K00–K03, K10)
- 4.5 Output Ports (R00–R03)
- 4.6 I/O Ports (P00–P03, P10–P13, P20–P23)
- 4.7 LCD Driver (COM0–COM3, SEG0–SEG31)
- 4.8 Clock Timer
- 4.9 Stopwatch Timer
- 4.10 Programmable Timer
- 4.11 Serial Interface (SIN, SOUT, SCLK, SRDY)
- 4.12 A/D Converter
- 4.13 General-purpose Operation Amplifier (AMP)
- 4.14 SVD (Supply Voltage Detection) Circuit
- 4.15 Interrupt and HALT/SLEEP
- 5 SUMMARY OF NOTES
- 6 DIAGRAM OF BASIC EXTERNAL CONNECTIONS
- 7 CHARACTERISTICS
- 8 PACKAGE
- 9 PAD LAYOUT
- Technical Software
- 1 INTRODUCTION
- 2 BLOCK DIAGRAM
- 3 PROGRAM MEMORY (ROM)
- 4 DATA MEMORY
- 5 INITIAL RESET
- 6 PERIPHERAL CIRCUITS
- 6.1 Watchdog Timer
- 6.2 OSC3
- 6.3 Input Ports (K00–K03 and K10)
- 6.4 Output Ports (R00–R03)
- 6.5 I/O Ports (P00–P03, P10–P13 and P20–P23)
- 6.6 LCD Driver
- 6.7 Clock Timer
- 6.8 Stopwatch Timer
- 6.9 Programmable Timer
- 6.10 Serial Interface Circuit
- 6.11 Amplifier
- 6.12 SVD (Supply Voltage Detection) Circuit
- 6.13 A/D Converter
- 6.14 Sleep
- 6.15 Interrupt
- 7 SUMMARY OF NOTES
- APPENDIX

S1C62740 TECHNICAL SOFTWARE EPSON II-51
CHAPTER 6: PERIPHERAL CIRCUITS (Serial Interface Circuit)
The input data will be fetched at the rising edge of SCLK.
When the input of the 8 bits data from SD0–SD7 is completed, the
interrupt factor flag ISIO is set to "1" and interrupt is generated.
Moreover, the interrupt can be masked by the interrupt mask
register EISIO. Note, however, that regardless of the setting of the
interrupt mask register, the interrupt factor flag is set to "1" after
input of the 8 bits data.
Also, the data input in the shift register can be read from data
registers SD0–SD7 by software.
Example program
for the serial
interface circuit
Following program shows the serial interface controlling procedure.
Label Mnemonic/operand Comment
;*
;* SERIAL INTERFACE (SIO)
;*
ZISIO EQU 0C1H ;SIO INTERRUPT FACTOR FLAG
ZEIAD EQU 0C8H ;A/D,SIO,PTM INTERRUPT MASK REGISTER
ZK0 EQU 0D0H ;K0 INPUT PORT
;(SLAVE MACHINE'S NSRDY IS CONNECT
; TO MASTER MACHINE'S K00 FOR CHECK
; SLAVE MACHINE READY OR NOT)
ZSIOC1 EQU 0DBH ;SIO CONTROL REGISTER 1
ZSIOC2 EQU 0DCH ;SIO CONTROL REGISTER 2
ZSDL EQU 0DDH ;SERIAL INTERFACE DATA LOW
ZSDH EQU 0DEH ;SERIAL INTERFACE DATA HIGH
ZPTC1 EQU 0E9H ;PROGRAMMABLE TIMER CONTROL REGISTER 1
ZPTC2 EQU 0EAH ;PROGRAMMABLE TIMER CONTROL REGISTER 2
ZRDL EQU 0EDH ;PROGRAMMABLE TIMER RELOAD LOW
ZRDH EQU 0EEH ;PROGRAMMABLE TIMER RELOAD HIGH
;
SENDL EQU 00H ;SENDING DATA BUFFER FOR SDL
SENDH EQU 01H ;SENDING DATA BUFFER FOR SDH
;
ORG 10CH
;
Fig. 6.10.1
Serial interface timing chart
SCTRG
SCLK
SIN
8-bit shift register
SOUT
ISIO
SRDY (slave mode)
SRDY (master mode)
SCRUN
(high)