![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 585](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609585.webp)
BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
585 / 1149
Rev.1.02
19.3.8
Serial status register mn (SSRmn).
The SSRmn register indicates the communication status of channel n and the condition in which an error
occurred. Errors represented are frame errors, parity errors, and overflow errors. Read the SSRmn registers via
a 16-bit memory manipulation instruction.
It can read the lower 8 bits of the SSRmn register with SSRmnL and read the SSRmn register through the
8-bit memory operation instruction.
After generating a reset signal, the value of the SSRmn register changes to "0000H".
Figure 19-11
serial status register mn (SSRmn) (1/2).
After reset: 0000H
R
Symbol 15
14
13
12
11
10
9 8 7 6 5 4 3 2 1 0
SSRmn
TSFmn
A flag that indicates the communication status of channel n
0
Communication stopped state or communication standby state
1
Communication health status
[Clear Condition].
•
When the
STmn
register is placed at
STmn
position
"1"
(communication stopped state) or the
SSm
register is
placed at SSm position
"1" (Communication Standby) time
• When the communication ends
[Set Condition].
• When communication begins
BFFmn
The
status representation flag of the channel n buffer register
0
The SDRmn register does not hold valid data.
1
The SDRmn register holds valid data.
[Clear Condition].
• When the transmit data from the SDRmn register to the shift register is completed during the send process
• When the received data is read from the SDRmn register during the receive process
• When the STmn register is placed at STmn position "1" (communication stopped state) or the SSm register is
placed at SSm position "1" (Communication Allowed Status) when
[Set Condition].
• When writing and transmitting data to the SDRmn register in the state where the TXEmn bit of the SCRmn
register is "1" (the transmit mode, transmit and receive mode in each communication mode).
• When saving the receive data to the SDRmn register in the state where the RXEmn bit of the SCRmn register
is "1" (receive mode, transmit and receive mode in each communication mode).
•When a receive error occurs
Note 1
Limited to
SSR01,
SSR03,
SSR11,
SSR21
registers.
Note m: Unit number (m=0~2) n: Channel number (n=0~3).
0
0
0
0
0
0
0
0
0
TSF
mn
BFF
mn
0
0
FEF
mn
note1
PEF
mn
OVF
mn