R8C/20 Group, R8C/21 Group 16. Clock Synchronous Serial Interface
Rev.2.00 Aug 27, 2008 Page 296 of 458
REJ09B0250-0200
16.2.4 Communication Modes and Pin Functions
Clock synchronous serial I/O with chip select switches functions of the I/O pin in each communication mode
according to the setting of the MSS bit in the SSCRH register and the RE and TE bits in the SSER register.
Table 16.4 shows the Association between Communication Modes and I/O Pins.
NOTES:
1. This pin can be used as programmable I/O port.
2. Do not set both the TE and RE bits to 1 in 4-wire bus (bidirectional) communication mode.
SSUMS and BIDE: Bits in SSMR2 register
MSS: Bit in SSCRH register
TE and RE: Bits in SSER register
Table 16.4 Association between Communication Modes and I/O Pins
Communication Mode
Bit Setting Pin State
SSUMS BIDE MSS TE RE SSI SSO SSCK
Clock Synchronous
Communication Mode
0 Disabled 0 0 1 Input
−
(1)
Input
10
−
(1)
Output Input
1 Input Output Input
101Input
−
(1)
Output
10
−
(1)
Output Output
1 Input Output Output
4-Wire Bus
Communication Mode
1 0 001
−
(1)
Input Input
1 0 Output
−
(1)
Input
1 Output Input Input
101Input
−
(1)
Output
10
−
(1)
Output Output
1 Input Output Output
4-Wire Bus
(Bidirectional)
Communication Mode
(2)
1 1 001
−
(1)
Input Input
10
−
(1)
Output Input
101
−
(1)
Input Output
10
−
(1)
Output Output