Renesas M16C/6NK Hardware Manual page 215

16-bit single-chip microcomputer m16c family / m16c/60 series
Table of Contents

Advertisement

Under development
This document is under development and its contents are subject to change.
M16C/6N Group (M16C/6NK, M16C/6NM)
SI/Oi Control Register (i = 3 to 6)
b7 b6 b5 b4 b3 b2 b1 b0
NOTES:
1. Make sure this register is written to by the next instruction after setting the PRC2 bit in the PRCR register to "1"
(write enabled).
2. Set the SMi3 bit to "1" (SOUTi output, CLKi function) and the corresponding port direction bit to "0" (input mode).
3. Set the SMi3 bit to "1" (SOUTi output, CLKi function).
4. When the SM32, SM52 or SM62 bit = 1, the corresponding pin is placed in the high-impedance state regardless of
which functions of those pins are being used.
SI/O4 is effective only when the SM43 bit = 1 (SOUT4 output, CLK4 function).
5. When using SI/O4, set the SM43 bit to "1" (SOUT4 output, CLK4 function) and the corresponding port direction bit
for SOUT4 pin to "0" (input mode).
6. The S5C and S6C registers are only in the 128-pin version. When using the S5C and S6C registers, set these registers
after setting the PU37 bit in the PUR3 register to "1" (Pins P11 to P14 are usable).
7. When changing the SMi1 to SMi0 bits, set the SiBRG register.
SI/Oi Bit Rate Generator (i = 3 to 6)
b7
NOTES:
1. Write to this register while serial I/O is neither transmitting nor receiving.
2. Use the MOV instruction to write to this register.
3. The S5BRG and S6BRG registers are only in the 128-pin version.
4. Write to this register after setting the SMi1 to SMi0 bits in the SiC register.
SI/Oi Transmit/Receive Register (i = 3 to 6)
b7
NOTES:
1. Write to this register while serial I/O is neither transmitting nor receiving.
2. To receive data, set the corresponding port direction bit for SINi to "0" (input mode).
3. The S5TRR and S6TRR registers are only in the 128-pin version.
Figure 15.37 S3C to S6C Registers, S3BRG to S6BRG Registers, and S3TRR to S6TRR Registers
Rev.2.00
Nov 28, 2005
REJ09B0124-0200
(1)
Symbol
S3C
S4C
(6)
S5C
(6)
S6C
Bit
Bit Name
Symbol
SMi0
Internal Synchronous
Clock Select Bit
SMi1
SOUTi Output Disable
SMi2
(4)
Bit
S I/Oi Port Select Bit
SMi3
SMi4
CLK Polarity Select Bit
Transfer Direction Select
SMi5
Bit
Synchronous Clock
SMi6
Select Bit
SOUTi Initial Value Set Bit
SMi7
(1) (2) (4)
Symbol
S3BRG
b0
S4BRG
S5BRG
S6BRG
Assuming that set value = n, SiBRG divides the count
source by n + 1
Symbol
S3TRR
b0
S4TRR
S5TRR
S6TRR
Transmission/reception starts by writing transmit data to this register.
After transmission/reception finishes, reception data can be read by reading this register.
page 197 of 378
Address
After Reset
01E2h
01000000b
01E6h
01000000b
01EAh
01000000b
01D8h
01000000b
Description
b1 b0
0 0 : Selecting f1SIO or f2SIO
0 1 : Selecting f8SIO
(7)
1 0 : Selecting f32SIO
1 1 : Do not set a value
0 : SOUTi output
1 : SOUTi output disabled (high-impedance)
0 : Input/output port
(5)
1 : SOUTi output, CLKi function
0 : Transmit data is output at falling edge of
transfer clock and receive data is input
at rising edge
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
(2)
0 : External clock
(3)
1 : Internal clock
Effective when the SMi3 bit = 0
0 : "L" output
1 : "H" output
Address
After Reset
01E3h
Indeterminate
01E7h
Indeterminate
(3)
01EBh
Indeterminate
(3)
01D9h
Indeterminate
Description
(1) (2)
Address
After Reset
01E0h
Indeterminate
01E4h
Indeterminate
(3)
01E8h
Indeterminate
(3)
01D6h
Indeterminate
Description
15. Serial Interface
RW
RW
RW
RW
RW
RW
RW
RW
RW
Setting Range
RW
WO
00h to FFh
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/6nm

Table of Contents