Renesas M16C Series User Manual page 65

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

Advertisement

M30245 Group
(2) Transfer rate
The divide-by-16 frequency, resulting from division in the bit rate generator (BRG), becomes the trans-
fer rate. The count source for the transfer rate register can be selected from f
from the CLK pin. Clocks f
respectively.
Table 2.4.2. Example of baud rate setting
Baud rate
(bps)
www.DataSheet4U.com
600
1200
2400
4800
9600
14400
19200
28800
31250
(3) An error detection
In UART mode, detected errors are shown in Table 2.4.3.
Table 2.4.3. Error detection
Type of error
Overrun error
F r a m i n g e r r o r
P a r i t y e r r o r
E r r o r - s u m f l a g
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
, f
, f
are derived by dividing the CPU's main clock by 1, 8, and 32
1
8
32
System clock : 16MHz
BRG's
count source
BRG's set value : n
f
8
207 (CF
16
f
103 (67
8
16
f
51 (33
8
16
f
207 (CF
1
16
f
103 (67
1
16
f
68 (44
1
16
f
51 (33
1
16
f
34 (22
1
16
f
33 (21
1
16
Description
• This error occurs when the
serial interface starts receiving
the next data item before
reading the contents of the
UARTi receive buffer register
and receives the bit preceding
the final stop bit of the next
data item.
• The contents of the UARTi
receive buffer register are
undefined.
• The UARTi receive interrupt
request bit does not go to "1".
• This error occurs when the
stop bit falls short of the set
number of stop bits.
• With parity enabled, this error
occurs when the total number
of 1's in character bits and the
parity bit is different from the
specified number.
• This flag turns on when any
error (overrun, framing, or
parity) is detected.
page 56 of 354
Actual time (bps)
BRG's set value : n
)
601
)
1202
)
2404
)
4808
)
9615
)
14493
)
19231
)
28571
)
31250
When the flag turns on
T h e e r r o r i s d e t e c t e d
w h e n d a t a i s
t r a n s f e r r e d f r o m t h e
U A R T i r e c e i v e r e g i s t e r
t o t h e U A R T i r e c e i v e
b u f f e r r e g i s t e r .
2. UART
, f
, f
, and the input
1
8
32
System clock : 7.3728MHz
Actual time (bps)
95 (5F
)
600
16
47 (2F
)
1200
16
23 (17
)
2400
16
95 (5F
)
4800
16
47 (2F
)
9600
16
31 (1F
)
14400
16
23 (17
)
19200
16
15 (F
)
28800
16
How to clear the flag
• S e t t h e s e r i a l I / O m o d e s e l e c t
b i t s t o " 0 0 0
" .
2
• S e t t h e r e c e i v e e n a b l e b i t t o
" 0 " .
• Set the serial I/O mode select
bits to "000
".
2
• Set the receive enable bit to
"0".
• Read the lower-order byte of
the UARTi receive buffer
register.
• W h e n a l l e r r o r ( o v e r r u n ,
f r a m i n g , a n d p a r i t y ) a r e
r e m o v e d , t h e f l a g i s c l e a r e d .

Advertisement

Table of Contents
loading

Table of Contents