I/O Memory Of Serial Interface - Epson S1C6P366 Technical Manual

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Serial Interface)

4.10.5 I/O memory of serial interface

Table 4.10.5.1 shows the I/O addresses and the control bits for the serial interface.
Register
Address
D3
D2
PUL13
PUL12
PUL11
FF45H
R/W
0
ESOUT SCTRG
FF70H
R
SDP
SCPS
SCS1
FF71H
R/W
SD3
SD2
FF72H
R/W
SD7
SD6
FF73H
R/W
0
0
FFE3H
R
0
0
FFF3H
R
*1 Initial value at initial reset
*2 Not set in the circuit
*3 Constantly "0" when being read
ESIF: Serial interface enable register (P1 port function selection) (FF70H•D0)
Sets P10–P13 to the input/output port for the serial interface.
When "1" is written: Serial interface
When "0" is written: I/O port
Reading: Valid
When "1" is written to the ESIF register, P10, P11, P12 and P13 function as SIN, SOUT, SCLK, SRDY,
respectively.
In the slave mode, the P13 terminal functions as SRDY output terminal, while in the master mode, it
functions as the I/O port terminal.
At initial reset, this register is set to "0".
Note: After setting ESIF to "1", wait at least 10 µsec before starting actual data transfer since a hazard
may be generated from the P12 (SCLK) terminal when ESIF is set to "1".
78
Table 4.10.5.1 Control bits of serial interface
∗1
D1
D0
Name Init
PUL13
1
PUL10
PUL12
1
PUL11
1
PUL10
1
∗3
∗2
0
ESIF
ESOUT
0
SCTRG
0
R/W
ESIF
0
SDP
0
SCS0
SCPS
0
SCS1
0
SCS0
0
∗2
SD3
SD1
SD0
∗2
SD2
∗2
SD1
∗2
SD0
∗2
SD7
SD5
SD4
∗2
SD6
∗2
SD5
∗2
SD4
∗3
∗2
0
0
EISIF
∗3
∗2
0
∗3
∗2
0
R/W
EISIF
0
∗3
∗2
0
0
ISIF
∗3
∗2
0
∗3
∗2
0
R/W
ISIF
0
1
0
On
Off
P13 pull-up control register
functions as a general-purpose register when SIF (slave) is selected
On
Off
P12 pull-up control register (ESIF=0)
functions as a general-purpose register when SIF (master) is selected
SCLK (I) pull-up control register when SIF (slave) is selected
On
Off
P11 pull-up control register (ESIF=0)
functions as a general-purpose register when SIF is selected
On
Off
P10 pull-up control register (ESIF=0)
SIN pull-up control register when SIF is selected
Unused
Enable
Disable
SOUT enable/disable control
Trigger
Invalid
Serial I/F clock trigger (writing)
Run
Stop
Serial I/F clock status (reading)
SIF
I/O
Serial I/F enable (P1 port function selection)
MSB first LSB first Serial I/F data input/output permutation
Serial I/F clock phase selection
Serial I/F
clock mode selection
High
Low
MSB
High
Low
Serial I/F transmit/receive data (low-order 4 bits)
High
Low
High
Low
LSB
High
Low
MSB
High
Low
Serial I/F transmit/receive data (high-order 4 bits)
High
Low
High
Low
LSB
Unused
Unused
Unused
Enable
Mask
Interrupt mask register (Serial I/F)
(R)
(R)
Unused
Yes
No
Unused
(W)
(W)
Unused
Reset
Invalid
Interrupt factor flag (Serial I/F)
EPSON
Comment
[SCS1, 0]
0
Clock
Slave
[SCS1, 0]
2
Clock
OSC1/2
OSC1
S1C6P366 TECHNICAL MANUAL
1
PT
3

Advertisement

Table of Contents
loading

Table of Contents