20 GENERAL-PURPOSE SERIAL INTERFACE (FSIO)
S1C33L26 TECHNICAL MANUAL
Seiko Epson Corporation
20-3
4.1.2 Pin Configuration by Transfer Mode
Table 20.
Transfer mode
SIN
x
SOUT
x
SCLK
x
#SRDY
x
8-bit asynchronous mode
Data input
Data output
Clock input/P port
P port
7-bit asynchronous mode
Data input
Data output
Clock input/P port
P port
Clock-synchronized slave mode
Data input
Data output
Clock input
Ready output
Clock-synchronized master mode
Data input
Data output
Clock output
Ready input
All four pins are used in the clock-synchronized mode.
In the asynchronous mode, since no ready signal is used, the #SRDY
x
pin can be used as an I/O (P) port. In addi-
tion, when an external clock is not used, the SCLK
x
pin can also be used as an I/O port.
The I/O control and data registers for the I/O ports used in the serial interface can be used as general-purpose read/
write registers.
Standard Mode and Advanced Mode
20.4.2
The serial interface in the S1C33L26 is extended from that of the C33 STD models. This serial interface has two
operating modes, standard (STD) mode of which functions are compatible with the existing C33 STD models and
an advanced (ADV) mode allowing use of the extended functions. Table 20.4.2.1 shows differences between stan-
dard mode and advanced mode.
4.2.1 Differences between Standard Mode and Advanced Mode
Table 20.
Function
Standard mode
Advanced mode
#SRDY mask control
Disabled
Enabled
Number of received data in the buffer to
generate a receive-buffer full interrupt
One
One to four can be specified.
To configure the serial interface in advanced mode, set SIOADV/FSIO_ADV
x
register to 1. The control bits for the
extended functions are enabled to write after this setting. At initial reset, SIOADV is set to 0 and the serial interface
enters standard mode.
The following descriptions unless otherwise specified are common contents for both modes. The extended func-
tions in advanced mode are explained assuming that SIOADV has been set to 1.
Baud-Rate Timer (Baud Rate Setting)
20.5
The clock-synchronized master mode uses an internal clock for data transfer. Also in the asynchronous mode, the
internal clock can be selected as the operating clock. Each channel has an embedded baud-rate timer (12-bit pro-
grammable timer) to generate this clock. The counter initial value can be set via software, this makes it possible to
program a flexible transfer rate/sampling frequency.
It is not necessary to configure and run the baud-rate timer, when this serial interface is used in the clock-synchro-
nized slave mode or in the asynchronous mode using an external clock.
12-bit reload data register
(BRTRD)
12-bit down counter
(BRTCD)
BRTRUN
Clock generator
Buffer
Underflow
signal
Clock output
SIO_CLK
PCLK1/PCLK2
Data bus
5.1 Transfer Clock Generation by the Baud-Rate Timer
Figure 20.