M30622MA-XXXFP RENESAS [Renesas Technology Corp], M30622MA-XXXFP Datasheet - Page 341

no-image

M30622MA-XXXFP

Manufacturer Part Number
M30622MA-XXXFP
Description
16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Clock-Synchronous Serial I/O
326
2.4 Clock-Synchronous Serial I/O
2.4.1 Overview
Clock-synchronous serial I/O carries out 8-bit data communications in synchronization with the clock. The
following is an overview of the clock-synchronous serial I/O.
(1) Transmission/reception format
(2) Transfer rate
(3) Error detection
(4) How to deal with an error
(5) Function selection
8-bit data
If the internal clock is selected as the transfer clock, the divide-by-2 frequency, resulting from the bit
rate generator division, becomes the transfer rate. The bit rate generator count source can be se-
lected from the following: f
clock by 1, 8, and 32 respectively.
Furthermore, if an external clock is selected as the transfer clock, the clock frequency input to the CLK
pin becomes the transfer rate.
Only overrun error can be detected. Overrun error is an error that occurs when the next data is made
ready before the reception buffer register is read.
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
To set the UARTi transmit buffer register again
For clock-synchronous serial I/O, the following functions can be selected:
(a) CTS/RTS function
1. Set the receive enable bit to “0” (disable reception).
2. Set the serial I/O mode select bit to “000
3. Set the serial I/O mode select bit.
4. 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.
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
In the CTS function, an external IC can start transmission/reception by inputting an “H” level to the
_______
CTS pin. The CTS pin input level is detected when transmission/reception starts. Therefore, if the
level is set to “L” during transmission/reception, it will stop from the next data.
The RTS function informs an external IC that RTS is reception-ready and has changed to “L”. RTS
goes to “H” at the falling edge of the transfer clock.
The clock-synchronous serial I/O has four types of CTS/RTS functions to choose from:
_______ _______
transmit buffer register.
_______
_______
_______
1
, f
8
, and f
32
. Clocks f
2
” (invalid serial I/O).
2
” (invalidate serial I/O).
_______
1
, f
8
, and f
_______ _______
32
are derived by dividing the CPU’s main
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Mitsubishi microcomputers
M16C / 62 Group
_______

Related parts for M30622MA-XXXFP