![](http://datasheet.mmic.net.cn/330000/MB90F562_datasheet_16437954/MB90F562_392.png)
368
CHAPTER 13 UART
MB90560 series
13.4
UART Registers
13.4.4 Serial Input Data Register (SIDR0/1) and Serial Output Data
Register (SOR0/1)
The serial input data register (SIDR0/1) is a serial data reception register. The serial
output data register (SODR0/1) is a serial data transmission register. Both SIDR0/1 and
SODR0/1 registers are located in the same address.
I
Serial Input Data Register (SIDR0/1)
Figure 13.4-5 shows the bit configuration of serial input data register 1.
Figure 13.4-5 Serial input data register (SIDR0/1)
SIDR0/1 is a register that contains receive data. After the serial data signal transmitted from the
SIN0/1 pin to the shift register, the data is stored there. When the data length is 7 bits, the
uppermost bit (D7) contains invalid data. When receive data is stored in this register, the receive
data full flag bit (SSR0/1: RDRF) is set to “1”. If a reception interrupt request is enabled at this
point, a reception interrupt request is generated.
Read SIDR0/1 when the RDRF bit of the status register (SSR0/1) is “1”. The RDRF bit is cleared
automatically to “0” when SIDR01/1 is read.
Data in SIDR0/1 is invalid when a reception error occurs (SSR0/1: PE, ORE, or FRE = 1).
I
Serial Output Data Register (SODR0/1)
Figure 13.4-6 shows the bit configuration of the serial output data register.
Figure 13.4-6 Output data register (SODR0/1)
When data to be transmitted is written to this register in transmission enable state, it is
transferred to the transmission shift register, then converted to serial data, and transmitted to the
serial data output terminal (SOT0/1 pin). When the data length is 7 bits, the uppermost bit (D7)
contains invalid data.
R
R
R
R
R
R
R
R
D3
D0
D1
D2
D7
D4
D5
D6
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
XXXXXXXX
B
ch0:000022
H
ch1:000026
H
R
X
Address
Initial value
: Read only
: Indefinite
D3
D0
D1
D2
D7
D4
D5
D6
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
XXXXXXXX
B
ch0:000022
H
ch1:000026
H
R
X
Address
Initial value
: Write only
: Indefinite
W W W W W W W W