Renesas M16C FAMILY series Hardware Manual page 233

16-bit single-chip microcomputer
Hide thumbs Also See for M16C FAMILY series:
Table of Contents

Advertisement

M
1
6
C
2 /
8
G
o r
u
p
(
M
1
6
C
S I / O i c o n t r o l R e g i s t e r ( i = 3 , 4 )
b 7
b 6
b 5
b 4
b3
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" (S
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)
b 7
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.
S I / O i T r a n s m i t / r e c e i v e R e g i s t e r ( i = 3 , 4 )
b7
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 S
Figure 14.36 S3C and S4C Registers, S3BRG and S4BRG Registers, and S3TRR and S4TRR Registers
R
e
. v
2
0 .
0
J
a
. n
3
, 1
2
0
0
7
R
E
J
0
9
B
0
0
4
7
0 -
2
0
0
2 /
, 8
M
1
6
C
2 /
8
) B
( 1 )
b 2
b 1
b 0
S y m b o l
S 3 C
S 4 C
B i t
S y m b o l
SMi0
I n t e r n a l s y n c h r o n o u s c l o c k
s e l e c t b i t
SMi1
S M i 2
S
i o u t p u t d i s a b l e b i t
O U T
S M i 3
S I / O i p o r t s e l e c t b i t
S M i 4
C L K p o l a r i t y s e l c t b i t
SMi5
T r a n s f e r d i r e c t i o n s e l e c t b i t
SMi6
S y n c h r o n o u s c l o c k s e l e c t b i t
SMi7
S
i initial value set bit
OUT
i output, CLKi function).
OUT
(1, 2, 3)
b 0
Symbol
S3BRG
S4BRG
A s s u m i n g t h a t s e t v a l u e = n , B R G i d i v i d e s t h e c o u n t s o u r c e
b y n + 1
b0
Symbol
S3TRR
S4TRR
Transmission/reception starts by writing transmit data to this register. After
transmission/reception finishes, reception data can be read by reading this register.
page 213
f o
3
8
5
A d d r e s s
0 3 6 2
1 6
0 3 6 6
1 6
B i t N a m e
b 1 b 0
0 0 : S e l e c t i n g f
(5)
0 1 : S e l e c t i n g f
1 0 : S e l e c t i n g f
1 1 : D o n o t s e t
(4)
0 : S
i o u t p u t
O U T
1 : S
i o u t p u t d i s a b l e ( h i g h i m p e d a n c e )
O U T
0 : I n p u t / o u t p u t p o r t
1 : S
i o u t p u t , C L K i f u n c t i o n
O U T
0 : T r a n s m i t d a t a i s o u t p u t a t f a l l i n g e d g e o f
t r a n s f e r c l o c k a n d r e c e i v e d a t a i s i n p u t a t
r i s i n g e d g e
1 : T r a n s m i t d a t a i s o u t p u t a t r i s i n g e d g e o f
t r a n s f e r c l o c k a n d r e c e i v e d a t a i s i n p u t a t
f a l l i n g e d g e
0 : L S B f i r s t
1 : M S B f i r s t
0 : E x t e r n a l c l o c k
1 : I n t e r n a l c l o c k
Effective when the SMi3 is set to "0"
0 : "L" output
1 : "H" output
Address
0363
16
0367
16
D e s c r i p t i o n
( 1 , 2 )
Address
0360
16
0364
16
Description
i ti "0"(input mode).
IN
A f t e r R e s e t
0 1 0 0 0 0 0 0
2
0 1 0 0 0 0 0 0
2
Description
R W
o r f
R W
1
2
8
3 2
R W
R W
R W
R W
R W
( 2 )
R W
( 3 )
RW
After Reset
Indeterminate
Indeterminate
S e t t i n g R a n g e
00
to FF
16
16
After Reset
Indeterminate
Indeterminate
14. Serial I/O
R W
WO
R W
R W

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tiny seriesM16c series

Table of Contents