English
Language : 

M16C28 Datasheet, PDF (233/423 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES
M16C/28 Group (M16C/28, M16C/28B)
14. Serial I/O
SI/Oi control Register (i=3,4) (1)
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
S3C
S4C
Address
036216
036616
After Reset
010000002
010000002
Bit
Symbol
Bit Name
Description
RW
SMi0
SMi1
SMi2
SMi3
SMi4
SMi5
Internal synchronous clock
select bit (5)
SOUTi output disable bit (4)
S I/Oi port select bit
CLK polarity selct bit
Transfer direction select bit
b1 b0
0 0 : Selecting f1 or f2
RW
0 1 : Selecting f8
1 0 : Selecting f32
1 1 : Do not set
RW
0 : SOUTi output
1 : SOUTi output disable(high impedance)
RW
0 : Input/output port
1 : SOUTi output, CLKi function
RW
0 : Transmit data is output at falling edge of
transfer clock and receive data is input at
rising edge
RW
1 : Transmit data is output at rising edge of
transfer clock and receive data is input at
falling edge
0 : LSB first
1 : MSB first
RW
SMi6 Synchronous clock select bit 0 : External clock (2)
1 : Internal clock (3)
RW
SMi7 SOUTi initial value set bit
Effective when the SMi3 is set to "0"
0 : “L” output
RW
1 : “H” output
NOTES:
1. Set the S4C register by the next instruction after setting the PRC2 bit in the PRCR register to
“1”(write enable).
2. Set the SMi3 bit to “1” and the corresponding port direction bit to “0”(input mode).
3. Set the SMi3 bit to “1” (SOUTi output, CLKi function).
4. When the SMi2 bit is set to "1", the corresponding pin goes to high-impedance regardless of the function in
use.
5. When the SMi1 and SMi0 bit settings are changed, set the SiBRG register.
SI/Oi Bit Rate Generator (i=3,4) (1, 2, 3)
b7
b0
Symbol
Address
After Reset
S3BRG
036316
Indeterminate
S4BRG
036716
Indeterminate
Description
Setting Range RW
Assuming that set value = n, BRGi divides the count source
by n + 1
0016 to FF16
WO
NOTES:
1. Write to this register while serial I/O is neither transmitting or receiving.
2. Use MOV instruction to write to this regisgter.
3. Set the SiBRG register after setting the SMi1 and SMi0 bits in the SiC register.
SI/Oi Transmit/receive Register (i=3,4) (1,2)
b7
b0
Symbol
Address
After Reset
S3TRR
036016
Indeterminate
S4TRR
036416
Indeterminate
Description
RW
Transmission/reception starts by writing transmit data to this register. After
transmission/reception finishes, reception data can be read by reading this register.
RW
NOTES:
1. Write to this register while serial I/O is neither transmitting or receiving.
2. To receive data, set the corresponding port direction bit for SINi ti “0”(input mode).
Figure 14.36 S3C and S4C Registers, S3BRG and S4BRG Registers, and S3TRR and S4TRR Registers
Rev. 2.00 Jan. 31, 2007 page 213 of 385
REJ09B0047-0200