19 SPI
S1C17704 TECHNICAL MANUAL
EPSON
19-11
0x4320: SPI Status Register (SPI_ST)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
SPI Status
Register
(SPI_ST)
0x4320
(16 bits)
D15–3
–
reserved
–
–
–
0 when being read.
D2
SPBSY
Transfer busy flag (master)
1 Busy
0 Idle
0
R
ss signal low flag (slave)
1 ss = L
0 ss = H
D1
SPRBF
Receive data buffer full flag
1 Full
0 Not full
0
R
D0
SPTBE
Transmit data buffer empty flag
1 Empty
0 Not empty
1
R
D[15:3] Reserved
D2
SPBSY: Transfer Busy Flag (Master Mode)/ss Signal Low Flag (Slave Mode)
Master mode
Indicates the SPI transmit/receive operation status.
1
(R):
Busy
0 (R):
Idle (default)
SPBSY is set to 1 when the SPI starts data transmission/reception in master mode and stays 1 while
data transmission/reception is in progress. SPBSY is reset to 0 upon completion of the transmit/receive
operation.
Slave mode
Indicates the slave select (#SPISS) signal status.
1 (R):
Low level (this SPI is selected)
0 (R):
High level (this SPI is deselected) (default)
SPBSY is set to 1 when the master device activates the #SPISS signal to select this SPI module (slave
device), and is reset to 0 when the master device negates the #SPISS signal to deselect this SPI module.
D1
SPRBF: Receive Data Buffer Full Flag
Indicates the receive data buffer status.
1
(R):
Full
0 (R):
Not full (default)
SPRBF is set to 1 when the data received in the shift register is loaded to the receive data buffer (receive
operation completed), indicating that the received data can be read out. This bit is reset to 0 when the
data is read out from the SPI_RXD register (0x4324).
D0
SPTBE: Transmit Data Buffer Empty Flag
Indicates the transmit data buffer status.
1 (R):
Empty (default)
0 (R):
Not empty
SPTBE is reset to 0 when transmit data is written to the SPI_TXD register (transmit data buffer,
0x4322) and is set to 1 when the written data is transferred to the shift register (transmit operation
started).
Transmit data should be written to the SPI_TXD register when this bit = 1.
Содержание S1C17704
Страница 1: ...TECHNICAL MANUAL S1C17704 CMOS 16 BIT SINGLE CHIP MICROCOMPUTER ...
Страница 22: ...1 OVERVIEW 1 10 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 42: ...3 MEMORY MAP BUS CONTROL 3 12 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 82: ...6 INTERRUPT CONTROLLER ITC 6 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 108: ...8 CLOCK GENERATOR CLG 8 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 112: ...9 PRESCALER PSC 9 4 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 138: ...10 I O PORTS P 10 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 156: ...11 16 BIT TIMERS T16 11 18 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 208: ...14 8 BIT OSC1 TIMER T8OSC1 14 16 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 234: ...16 STOPWATCH TIMER SWT 16 14 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 242: ...17 WATCHDOG TIMER WDT 17 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 264: ...18 UART 18 22 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 300: ...20 I2C 20 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 320: ...21 REMOTE CONTROLLER REMC 21 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 360: ...24 ON CHIP DEBUGGER DBG 24 6 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 362: ...25 BASIC EXTERNAL WIRING DIAGRAM 25 2 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...