English
Language : 

GMS81C1404 Datasheet, PDF (54/93 Pages) Hynix Semiconductor – 8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81C1404/GMS81C1408
The SPI allows 8-bits of data to be synchronously transmit-
ted and received. To accomplish communication, typically
three pins are used:
- Serial Data In
- Serial Data Out
- Serial Clock
RC5/SIN
RC6/SOUT
RC4/SCK
Additonarlly a fourth pin may be used when in a master or
a slave mode of operation:
- Serial Transfer Ready RC3/SRDYIN/SRDYOUT
The serial data transfer operation mode is decided by set-
ting the SM1 and SM0 of SPI Mode Control Register, and
the transfer clock rate is decided by setting the SCK1 and
SCK0 of SPI Mode Control Register as shown in Figure
14-1 . And the polarity of transfer clock is selected by set-
ting the POL.
The bit SRDY is used for master / slave selection. If this
bit is set to “1” and SCK[1:0] is set to “11”, the controller
is performed to slave controller. As it were, the port RC3
is served for SRDYOUT.
SIOST
SCK
(POL=1)
SCK
(POL=0)
SOUT
SIN
SPIF
(SPI Int. Req)
D0
D1
D2
D3
D4 D5
D6
D7
D0
D1
D2
D3
D4
D5
D6
D7
Figure 14-2 SPI Timing Diagram (without SRDY control)
SRDY
SIOST
SCK
(POL=1)
SCK
(POL=0)
SOUT
SIN
SPIF
(SPI Int. Req)
D0
D1
D2
D3
D4 D5
D6
D7
D0
D1
D2
D3
D4
D5
D6
D7
Figure 14-3 SPI Timing Diagram (with SRDY control)
52
June. 2001 Ver 1.2