English
Language : 

HMS87C1808B Datasheet, PDF (43/99 Pages) List of Unclassifed Manufacturers – 8-BIT SINGLE-CHIP MICROCONTROLLERS
HMS87C1X04B/08B/16B
9.3 RC and RCIO registers
RC is an 8-bit bidirectional I/O port (address C4H). Each pin can
be set individually as input and output through the RCIO register
(address C5H).
In addition, Port RC is multiplexed with Serial Peripheral Inter-
face (SPI).
The control register SIOM (address E0H) controls to select Serial
Peripheral Interface function.
After reset, the RCIO register value is “0”, port may be used as
general I/O ports. To select Serial Peripheral Interface function,
write “1” to the corresponding bit of SIOM.
RC Data Register
ADDRESS : C4H
RESET VALUE : Undefined
RC
RC7 RC6 RC5 RC4 RC3 RC2 RC1 RC0
INPUT / OUTPUT DATA
RC Direction Register
RCIO
ADDRESS : C5H
RESET VALUE : 0000_0000
DIRECTION SELECT
0 : INPUT PORT
1 : OUTPUT PORT
Figure 9-4 Registers of Port RC
PORT
RC6/
SOUT
RC5/
SIN
RC4/
SCK
RC3/
SRDY
Function
SRDY
RC6
X
SOUT
X
RC5
X
SIN
X
RC4
X
SCKO
X
SCKI
X
RC3
0
SRDYIN
1
SRDYOUT 1
SIOM
SM [1:0]
X:0
X:1
0:X
1:X
0:0
0:0
0:0
X:X
X:X
X:X
SCK [1:0]
X:X
X:X
X:X
X:X
X:X
00, 01, 10
1:1
X:X
00, 01, 10
1:1
Description
RC6 (Normal I/O Port)
SPI Serial Data Output
RC5 (Normal I/O Port)
SPI Serial Data Input
RC4 (Normal I/O Port)
SPI Synchronous Clock Output
SPI Synchronous Clock Input
RC3 (Normal I/O Port)
SPI Ready Input (Master Mode)
SPI Ready Output (Slave Mode)
Table 9-1 Serial Communication Functions in RC Port
SEP. 2004 Ver 1.03
39