19 SPI
19-14
EPSON
S1C17704 TECHNICAL MANUAL
0x4326: SPI Control Register (SPI_CTL)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
SPI Control
Register
(SPI_CTL)
0x4326
(16 bits)
D15–6
–
reserved
–
–
–
0 when being read.
D5
SPRIE
Receive data buffer full int. enable 1 Enable
0 Disable
0
R/W
D4
SPTIE
Transmit data buffer empty int. enable 1 Enable
0 Disable
0
R/W
D3
CPHA
Clock phase select
1 Data out
0 Data in
0
R/W These bits must be
set before setting
SPEN to 1.
D2
CPOL
Clock polarity select
1 Active L
0 Active H
0
R/W
D1
MSSL
Master/slave mode select
1 Master
0 Slave
0
R/W
D0
SPEN
SPI enable
1 Enable
0 Disable
0
R/W
D[15:6] Reserved
D5
SPRIE: Receive Data Buffer Full Interrupt Enable Bit
Enables/disables SPI interrupt caused by receive data buffer full.
1
(R/W):
Enable
0 (R/W): Disable (default)
When SPRIE is set to 1, SPI (receive data buffer full) interrupt requests to the ITC are enabled. A
receive data buffer full interrupt request occurs when the data received in the shift register is loaded to
the receive data buffer (receive operation completed).
When SPRIE is set to 0, SPI interrupts caused by receive data full are not generated.
D4
SPTIE: Transmit Data Buffer Empty Interrupt Enable Bit
Enables/disables SPI interrupt caused by transmit data buffer empty.
1
(R/W):
Enable
0 (R/W): Disable (default)
When SPTIE is set to 1, SPI (transmit data buffer empty) interrupt requests to the ITC are enabled. A
transmit data buffer empty interrupt request occurs when the data written to the transmit data buffer is
transferred to the shift register (transmit operation started).
When SPTIE is set to 0, SPI interrupts caused by transmit data buffer empty are not generated.
D3
CPHA: SPI Clock Phase Select Bit
Selects the phase of the SPI clock. (Default: 0)
This bit controls the data transfer timing in conjunction with the CPOL (D2) bit (see Figure 19.7.1).
D2
CPOL: SPI Clock Polarity Select Bit
Selects the polarity of the SPI clock.
1 (R/W): Active low
0 (R/W): Active high (default)
This bit controls the data transfer timing in conjunction with the CPHA (D3) bit (see Figure 19.7.1).
SPICLK (CPOL = 1, CPHA = 1)
SPICLK (CPOL = 1, CPHA = 0)
SPICLK (CPOL = 0, CPHA = 1)
SPICLK (CPOL = 0, CPHA = 0)
SDI/SDO
Fetching receive data
into shift register
D7 (MSB)
D0 (LSB)
Figure 19.7.1 Clock and Data Transfer Timing
Summary of Contents for S1C17704
Page 1: ...TECHNICAL MANUAL S1C17704 CMOS 16 BIT SINGLE CHIP MICROCOMPUTER ...
Page 22: ...1 OVERVIEW 1 10 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 42: ...3 MEMORY MAP BUS CONTROL 3 12 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 82: ...6 INTERRUPT CONTROLLER ITC 6 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 108: ...8 CLOCK GENERATOR CLG 8 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 112: ...9 PRESCALER PSC 9 4 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 138: ...10 I O PORTS P 10 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 156: ...11 16 BIT TIMERS T16 11 18 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 208: ...14 8 BIT OSC1 TIMER T8OSC1 14 16 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 234: ...16 STOPWATCH TIMER SWT 16 14 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 242: ...17 WATCHDOG TIMER WDT 17 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 264: ...18 UART 18 22 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 300: ...20 I2C 20 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 320: ...21 REMOTE CONTROLLER REMC 21 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 360: ...24 ON CHIP DEBUGGER DBG 24 6 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 362: ...25 BASIC EXTERNAL WIRING DIAGRAM 25 2 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...