MS51
Nov. 28, 2019
Page
186
of 491
Rev 1.00
MS51
32K
SE
RIES
TE
CHNICAL RE
F
EREN
CE MA
N
UAL
SCnCR0
– SC Control Register 0
Register
SFR Address
Reset Value
SC0CR0
F1H, Page 2
0000_0000 b
SC1CR0
F3H, Page 2
0000_0000 b
SC2CR0
F5H, Page 2
0000_0000 b
7
6
5
4
3
2
1
0
NSB
T
RXBGTEN
CONSEL
AUTOCEN
TXOFF
RXOFF
SCEN
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Bit
Name
Description
7
NSB
Stop Bit Length
This field indicates the length of stop bit.
0 = The stop bit length is 2 ETU.
1= The stop bit length is 1 ETU.
Note:
The default stop bit length is 2. SC and UART adopt NSB to program the stop bit length.
6
T
T Mode
0 = T0 (ISO 7816-3 T = 0 mode).
1 = T1 (ISO 7816-3 T = 1 mode).
The T mode controls the BGT (Block Guard Time). Block guard time means the minimum bit
length between the leading edges of two consecutive characters between different transfer
directions. This field indicates the counter for the bit length of block guard time. According to ISO
7816-3, in T = 0 mode, the software must clear T bit to 0 for real block guard time = 16.5. In T = 1
mode, the software must set T bit to 1 for real block guard time = 22.5.
Note:
In T = 0 mode, the receiver will generate the parity flag on PEF(SC0TSR[4]), if parity error is
detected and also drive the parity error signal to transceiver. In T = 1 mode, the receiver will
generate the parity flag on PEF(SC0TSR[4]), if parity error detected, but doesn’t drive the parity
error signal to transceiver.
Note:
The description please see section 6.10.5 Error Signal and Character Repetition
5
RXBGTEN
Receiver Block Guard Time Function Enable Bit
0 = Receiver block guard time function Disabled.
1 = Receiver block guard time function Enabled.
4
CONSEL
Convention Selection
0 = Direct convention.
1 = Inverse convention.
Note 1:
This bit is auto clear to “0”, if AUTOCEN(SCnCR0[3]) is writing “1”
Note 2:
If AUTOCEN(SCnCR0[3]) is enabled, hardware will decide the convention and change
the CONSEL (
SCnCR0[4]) bits automatically after SCEN (SCnCR0[0]) =”1”.