Sio Transmit Control Registers - Renesas M32R/ECU Series User Manual

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

12

12.2.2 SIO Transmit Control Registers

SIO0 Transmit Control Register (S0TCNT)
SIO1 Transmit Control Register (S1TCNT)
SIO2 Transmit Control Register (S2TCNT)
SIO3 Transmit Control Register (S3TCNT)
SIO4 Transmit Control Register (S4TCNT)
SIO5 Transmit Control Register (S5TCNT)
b0
1
2
CDIV
0
0
0
b
Bit Name
0, 1
No function assigned. Fix to "0".
2, 3
CDIV
BRG count source select bit
4
No function assigned. Fix to "0".
5
TSTAT
Transmit status bit
6
TBE
Transmit buffer empty bit
7
TEN
Transmit enable bit
(1) CDIV (baud rate generator count source select) bits (Bits 2–3)
These bits select the count source for the Baud Rate Generator (BRG).
Note: • If f(BCLK) is selected as the count source for the BRG, care must be taken when setting the
BRG so that the baud rate will not exceed the maximum transfer speed. For details, see the
section in which the BRG register is explained.
(2) TSTAT (Transmit Status) bit (Bit 5)
[Set condition]
This bit is set to "1" by a write to the transmit buffer register while transmission is enabled.
[Clear condition]
This bit is cleared to "0" when transmission is idle (no data in the transmit shift register) and no data
exists in the transmit buffer register. This bit is also cleared by clearing the transmit enable bit.
(3) TBE (Transmit Buffer Empty) bit (Bit 6)
[Set condition]
This bit is set to "1" when data is transferred from the transmit buffer register to the transmit shift register
and the transmit buffer register is thereby emptied. This bit is also set by clearing the transmit enable bit.
[Clear condition]
This bit is cleared to "0" by writing data to the lower byte of the transmit buffer register while transmission
is enabled (TEN = "1").
(4) TEN (Transmit Enable) bit (Bit 7)
Transmission is enabled by setting this bit to "1" and disabled by clearing this bit to "0". If this bit is cleared to
"0" while transmitting data, the transmit operation stops.
3
4
5
6
TSTAT
TBE
1
0
0
1
12.2 Serial I/O Related Registers
b7
TEN
0
Function
b2 b3
0 0: Select f(BCLK)
0 1: Select f(BCLK) divided by 8
1 0: Select f(BCLK) divided by 32
1 1: Select f(BCLK) divided by 256
0:Transmission stopped and no data in transmit buffer register
1:Transmitting now or data present in transmit buffer register
0:Data present in transmit buffer register
1: No data in transmit buffer register
0: Disable transmission
1: Enable transmission
12-14
Serial I/O
<Address: H'0080 0110>
<Address: H'0080 0120>
<Address: H'0080 0130>
<Address: H'0080 0140>
<Address: H'0080 0A10>
<Address: H'0080 0A20>
<After reset: H'12>
R
0
R
0
R
R
R
32180 Group User's Manual (Rev.1.0)
W
0
W
0
W

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents