Renesas M16C Series User Manual page 109

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

Advertisement

M30245 Group
www.DataSheet4U.com
Figure 2.5.12. Set-up procedure of reception in serial interface special function master mode, with clock delay (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
0 0 0 1
0
UiMR [Address 03A8
Must be fixed to "001" (Note)
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"
Note: Set the RxDi pin's port direction register to "0" when receiving.
Setting UARTi transmit/receive control register (i=0 to 3)
b7
b0
UARTi transmit/receive control register 0
1
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
1 : CTS/RTS function disabled
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 UARTi special mode register 3 (i=0 to 3)
b7
b0
UARTi special mode register 3
0 1 1
UiSMR3 [Address 03A5
SS port function enable bit
1 : SS function enable
Clock phase set bit
1 : With clock delay
Serial input port set bit
0 : Select TxDi and RxDi
(Master mode)
Continued to the next page
page 100 of 354
, 368
, 0338
, 328
]
16
16
16
16
, 36C
, 033C
, 32C
]
16
16
16
16
: P7
) is N-channel open drain output.
2
0
, 365
, 0335
, 325
]
16
16
16
16
2. Serial Interface Special Function

Advertisement

Table of Contents
loading

Table of Contents