Technical information
2.3 Serial I/O
2-46
APPLICATION
3800 GROUP USER’S MANUAL
Fig. 2.3.32 Setting of related registers at a receiving side [Communication using UART]
b7 b0
b7 b0
b7 b0
SIOSTS
b7 b0
Receive buffer full flag
Receiving side
Serial I/O status register (Address : 1916)
BRG
7
Serial I/O control register (Address : 1A
16)
SIOCON
UARTCON
Check a completion of receiving 1-byte data with this flag.
“1” : at completing to receive
“0” : at reading out a content of the Receive buffer register
Overrun error flag
“1” : when data are ready to be transferred to the Receive
shift register in the state of storing data into the Receive
buffer register.
Parity error flag
“1” : when parity error occurs at enabled parity.
Framing error flag
“1” : when data can not be received at the timing of setting
a stop bit.
Summing error flag
“1” : when even one of the following errors occurs.
• Overrun error
• Parity error
• Framing error
BRG count source selection bit : f(X
IN)/4
Serial I/O synchronous clock selection bit : BRG/16
Transmit enable bit : Transmit disabled
Receive enable bit : Receive enabled
Serial I/O mode selection bit : Asynchronous serial I/O(UART)
Serial I/O enable bit : Serial I/O enabled
S
RDY output enable bit : Not use SRDY out
UART control register (Address : 1B16)
Character length selection bit : 8 bits
Parity enable bit : Parity checking disabled
Stop bit length selection bit : 2 stop bits
Baud rate generator (Address : 1C16)
f(XIN)
Transfer bit rate ✕ 16 ✕ m
– 1
Set
when bit 0 of the Serial I/O control register (Address : 1A
16) is set to “0,”
a value of m is 1.
when bit 0 of the Serial I/O control register (Address : 1A
16) is set to “1,”
a value of m is 4.
✻
✻
1010 001
001










