English
Language : 

TMP86FS49BFG Datasheet, PDF (156/294 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
12. Asynchronous Serial interface (UART1 )
12.2 Control
TMP86FS49BFG
12.2 Control
UART1 is controlled by the UART1 Control Registers (UART1CR1, UART1CR2). The operating status can be
monitored using the UART status register (UART1SR).
UART1 Control Register1
UART1CR1
7
6
5
4
3
(0F95H)
TXE RXE STBT EVEN PE
2
1
0
BRG
(Initial value: 0000 0000)
TXE
Transfer operation
RXE Receive operation
STBT Transmit stop bit length
EVEN Even-numbered parity
PE
Parity addition
BRG Transmit clock select
0: Disable
1: Enable
0: Disable
1: Enable
0: 1 bit
1: 2 bits
0: Odd-numbered parity
1: Even-numbered parity
0: No parity
1: Parity
000: fc/13 [Hz]
001: fc/26
010: fc/52
011: fc/104
100: fc/208
101: fc/416
110: TC3 ( Input INTTC3)
111: fc/96
Write
only
Note 1: When operations are disabled by setting TXE and RXE bit to “0”, the setting becomes valid when data transmit or receive
complete. When the transmit data is stored in the transmit data buffer, the data are not transmitted. Even if data transmit is
enabled, until new data are written to the transmit data buffer, the current data are not transmitted.
Note 2: The transmit clock and the parity are common to transmit and receive.
Note 3: UART1CR1<RXE> and UART1CR1<TXE> should be set to “0” before UART1CR1<BRG> is changed.
UART1 Control Register2
UART1CR2
7
6
5
4
3
2
1
0
(0F96H)
RXDNC
STOPBR (Initial value: **** *000)
Selection of RXD input noise
RXDNC
rejection time
STOPBR Receive stop bit length
00: No noise rejection (Hysteresis input)
01: Rejects pulses shorter than 31/fc [s] as noise
10: Rejects pulses shorter than 63/fc [s] as noise
11: Rejects pulses shorter than 127/fc [s] as noise
0: 1 bit
1: 2 bits
Write
only
Note: When UART1CR2<RXDNC> = “01”, pulses longer than 96/fc [s] are always regarded as signals; when
UART1CR2<RXDNC> = “10”, longer than 192/fc [s]; and when UART1CR2<RXDNC> = “11”, longer than 384/fc [s].
Page 140