13 SYNCHRONOUS SERIAL INTERFACE (SPIA)
13-14
Seiko Epson Corporation
S1C17M20/M21/M22/M23/M24/M25
TECHNICAL MANUAL (Rev. 1.0)
Bits 15–8 Reserved
Bit 7
BSY
This bit indicates the SPIA operating status.
1 (R):
Transmit/receive busy (master mode), #SPISS
n
= Low level (slave mode)
0 (R):
Idle
Bits 6–4
Reserved
Bit 3
OEIF
Bit 2
TENDIF
Bit 1
RBFIF
Bit 0
TBEIF
These bits indicate the SPIA interrupt cause occurrence status.
1 (R):
Cause of interrupt occurred
0 (R):
No cause of interrupt occurred
1 (W):
Clear flag (OEIF, TENDIF)
0 (W):
Ineffective
The following shows the correspondence between the bit and interrupt:
SPI
n
INTF.OEIF bit:
Overrun error interrupt
SPI
n
INTF.TENDIF bit: End-of-transmission interrupt
SPI
n
INTF.RBFIF bit: Receive buffer full interrupt
SPI
n
INTF.TBEIF bit: Transmit buffer empty interrupt
SPIA Ch.
n
Interrupt Enable Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
SPInINTE
15–8 –
0x00
–
R
–
7–4 –
0x0
–
R
3
OEIE
0
H0
R/W
2
TENDIE
0
H0
R/W
1
RBFIE
0
H0
R/W
0
TBEIE
0
H0
R/W
Bits 15–4 Reserved
Bit 3
OEIE
Bit 2
TENDIE
Bit 1
RBFIE
Bit 0
TBEIE
These bits enable SPIA interrupts.
1 (R/W): Enable interrupts
0 (R/W): Disable interrupts
The following shows the correspondence between the bit and interrupt:
SPI
n
INTE.OEIE bit:
Overrun error interrupt
SPI
n
INTE.TENDIE bit: End-of-transmission interrupt
SPI
n
INTE.RBFIE bit: Receive buffer full interrupt
SPI
n
INTE.TBEIE bit: Transmit buffer empty interrupt