Renesas M30245 Series User Manual page 68

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

Advertisement

M30245 Group
(4) How to deal with an error
When receiving data, read an error flag and reception data simultaneously to determine which error
has occurred. If the data read is erroneous, initialize the error flag and the UARTi receive buffer
register, then receive the data again.
To initialize the UARTi receive buffer register
1. Set the receive enable bit to "0" (disable reception).
2. Set the receive enable bit to "1" again (enable reception).
To transmit data again due to an error on the reception side, set the UARTi transmit buffer register
again, then transmit the data again.
To set the UARTi transmit buffer register again
1. Set the serial I/O mode select bits to "000
2. Set the serial I/O mode select bits again.
3. Set the transmit enable bit to "1" (enable transmission), then set transmission data in the UARTi
transmit buffer register.
(5) Functions selection
In operating UART, the following functions can be used:
_______ _______
(a) CTS/RTS function
_______
CTS function is a function in which an external IC can start transmission/reception by means of
inputting an "L" level to the CTS pin. The CTS pin input level is detected when transmission/reception
starts, so if the level is gone to" H" while transmission/reception is in progress, transmission/recep-
tion stops at the next data.
_______
RTS function is a function to inform an external IC that RTS pin output level has changed to "L" when
reception is ready. RTS regoes to "H" at the first falling edge of the transfer clock.
When using clock-asynchronous serial I/O, choose one of three types of CTS/RTS functions.
_______ _______
• CTS/RTS functions disabled
_______
• CTS function only enabled
_______
• RTS function only enabled
(b) Data logic select function
This function is to reverse data when writing to transmit buffer register or reading from receive buffer
register.
(c) LSB/MSB first select function
This function is to choose whether to transmit/receive data from bit 0 or bit 7. This is valid when the
transfer data length is 8 bits long.
Choose either of the following:
• LSB first Data is transmitted/received from bit 0.
• MSB first Data is transmitted/received from bit 7.
(d) TxD, RxD I/O polarity reverse function
This function is to reverse a polarity of TxD port output level and a polarity of RxD port input level.
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
_______
_______
page 57 of 354
" (invalidate serial I/O).
2
_______
_______
_______ _______
CTS/RTS pin is a programmable I/O port.
_______ _______
CTS/RTS pin performs the CTS function.
_______ _______
CTS/RTS pin performs the RTS function.
2. UART
_______ _______
_______
_______

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c seriesM20c series

Table of Contents