m37905 Renesas Electronics Corporation., m37905 Datasheet - Page 308

no-image

m37905

Manufacturer Part Number
m37905
Description
Mitsubishi 16-bit Single-chip Microcomputer 7700 Family / 7900 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
m37905F8CSP
Manufacturer:
MIT
Quantity:
20 000
Table 11.4.6 Conditions for setting each error flag to “1” and method to clear it to “0”
Note: The next data is written into the UARTi receive buffer register.
Overrun error flag
Framing error flag
Parity error flag
Error sum flag
11.4.7 Processing on detecting error
In the UART mode, 3 types of errors can be detected. Each error can be detected when the data in the
UARTi receive register is transferred to the UARTi receive buffer register, and the corresponding error flag
is set to “1.” When any error occurs, the error sum flag is set to “1.” Accordingly, presence of errors can
be judged by using the error sum flag.
Table 11.4.6 lists the conditions for setting each error flag to “1” and method to clear it to “0.”
Additionally, when the receive error interrupt is selected (UARTi receive interrupt mode select bit = “1”),
the UARTi receive interrupt request bit is set to “1” only when each error has occurred. When the receive
interrupt is selected (UARTi receive interrupt mode select bit = “0”), the UARTi receive interrupt request
bit is set to “1” when reception has been completed or when a framing or parity error has occurred. (Even
when an overrun error has occurred, this bit does not change).
register, and then perform reception again. When it is necessary to perform retransmission owing to an
error which has occurred on the receiver side during transmission, be sure to set the UARTi transmit buffer
register again, and then perform the retransmission.
again are described below.
When an error occurs during reception, be sure to initialize the error flag and the UARTi receive buffer
The method to initialize the UARTi receive buffer register and that to set the UARTi transmit buffer register
(1) Method to initialize UARTi receive buffer register
(2) Method to set UARTi transmit buffer register again
Error flag
transmit buffer register.
Clear the receive enable bit to “0” (reception disabled).
Set the receive enable bit to “1” again (reception enabled).
Clear the serial I/O mode select bits to “000
Set the serial I/O mode select bits again.
Set the transmit enable bit to “1” (transmission enabled), and set the transmit data to the UARTi
When the next data is prepared in the
UARTi receive register with the receive
complete flag = “1” (i.e. data is present
in the UARTi receive buffer register). In
other words, when the next data is
prepared before the contents of the UARTi
receive buffer register are read out (Note).
When the number of detected stop bits
does not match the set number of stop
bits.
When the sum of “1”s in the sum of the
parity bit and character bits does not match
the set number of “1”s.
When any error listed above has occurred.
Conditions for setting
7905 Group User’s Manual Rev.1.0
11.4 Clock asynchronous serial I/O (UART) mode
2
” (serial I/O invalid).
• Clear the receive enable bit to “0.”
• Clear the receive enable bit to “0.”
• Read out the low-order byte of the UARTi
• Clear the receive enable bit to “0.”
• Read out the low-order byte of the UARTi
• Clear the all error flags, which are
overrun, framing and parity error flags.
receive buffer register.
receive buffer register.
Method to clear
SERIAL I/O
11-53

Related parts for m37905