Renesas M16C Series User Manual page 56

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

Advertisement

M30245 Group
www.DataSheet4U.com
Figure 2.3.6. Set-up procedure of transmission in clock-synchronous serial I/O mode (1)
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
Setting UARTi transmit/receive mode register (i=0 to 3)
b7
b0
UARTi transmit/receive mode register
UiMR [Address 03A8
0
0 0 0 1
Must be fixed to "001" (Serial I/O mode)
Internal/external clock select bit
0 : Internal clock
Invalid in clock synchronous I/O mode
Invalid in clock synchronous I/O mode
Invalid in clock synchronous I/O mode
T
D, R
D I/O polarity reverse bit
X
X
Usually set to "0"
Setting UARTi transmit/receive control register 0 (i=0 to 3)
b7
b0
UARTi transmit/receive control register 0
0
0
0 0
UiC0 [Address 03AC
BRG count source select bit
b1 b0
0 0 : f
is selected
1
0 1 : f
is selected
8
1 0 : f
is selected
32
1 1 : Inhibited
CTS/RTS function select bit
(Valid when bit 4 = "0")
0 : CTS function is selected (Note 1)
Transmit register empty flag
0 : Data present in transmit register
(during transmission)
1 : No data present in transmit register
(transmission completed)
CTS/RTS disable bit
0 : CTS/RTS function enabled
Data output select bit (Note 2)
0 : TxDi/SDAi and SCLi pin is CMOS output
1 : TxDi/SDAi and SCLi pin is N-channel open drain output
CLK polarity select bit
0 : Transmission data is output at falling edge
of transfer clock and reception data is input
at rising edge
Transfer format select bit
0 : LSB first
Note 1: Set the corresponding port direction register to "0".
Note 2: UART2 transfer pin (TxD
It cannot be set to CMOS output.
Setting UART transmit/receive control register 1 (i=0 to 3)
b7
b0
UARTi transmit/receive control register 1
0
0 0
UiC1 [Address 03AD
UARTi transmit interrupt cause select bit
0 : Transmit buffer empty (Tl = 1)
Data logic select bit
0 : No reverse
Set to "0" in clock synchronous serial I/O mode
Continued to the next page
page 47 of 354
, 368
, 0338
, 328
]
16
16
16
16
, 36C
, 033C
, 32C
]
16
16
16
16
: P7
and SCL
: P7
) is N-channel open drain output.
2
0
2
1
, 36D
, 033D
, 32D
]
16
16
16
16
2. Clock-Synchronous Serial I/O

Advertisement

Table of Contents
loading

Table of Contents