11 SYNCHRONOUS SERIAL INTERFACE (SPI)
S1C17F13 TeChniCal Manual
Seiko epson Corporation
11-13
(Rev. 1.0)
Bits 15–4 Reserved
Bit 3
BSY
This bit indicates the SPI operating status.
1 (R):
Transmit/receive busy (master mode), #SPISS
n
= Low level (slave mode)
0 (R):
Idle
Bit 2
TenDiF
Bit 1
RBFiF
Bit 0
TBeiF
These bits indicate the SPI interrupt cause occurrence status.
1 (R):
Cause of interrupt occurred
0 (R):
No cause of interrupt occurred
1 (W):
Clear flag (TENDIF)
0 (W):
Ineffective
The following shows the correspondence between the bit and 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
SPi Ch.
n
interrupt enable Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
SPI
n
INTE
15–8 –
0x00
–
R
–
7–3 –
0x00
–
R
2
TENDIE
0
H0
R/W
1
RBFIE
0
H0
R/W
0
TBEIE
0
H0
R/W
Bits 15–3 Reserved
Bit 2
TenDie
Bit 1
RBFie
Bit 0
TBeie
These bits enable SPI interrupts.
1 (R/W): Enable interrupts
0 (R/W): Disable interrupts
The following shows the correspondence between the bit and 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