Technical information

2.3 Serial I/O
2-48
APPLICATION
3800 GROUP USER’S MANUAL
Fig. 2.3.34 Control procedure at a receiving side [Communication using UART]
RESET
(Address : 1A
16
)
(Address : 1B
16
)
(Address : 1C
16
)
(Address : 09
16
)
Check a completion of receiving.
(Receive buffer full flag)
SIOSTS (Address : 19
16 ), bit1?
1
0
Read out a reception data
from RB (Address :
1816)
SIOSTS (Address : 19
16 ), bit6?
0
1
Initialization
SIOCON
UARTCON
BRG
P4D
1010X001
2
000010002
8
1
XXXXXXX0
2
....
SIOSTS (Address : 1916 ), bit1?
1
0
Check an error falag.
SIOSTS (Address : 19
16 ), bit6?
0
1
P4 (Address : 08
16 ), bit0?
0
1
SIOCON (Address : 1A
16 )
SIOCON (Address : 1A
16 )
0000X001
2
1010X0012
Read out a reception data
from RB (Address : 18
16 )
Receive the first 1 byte data
A Receive buffer full flag is set
to “0” by reading data.
Check a completion of receiving.
(Receive buffer full flag)
Receive the second byte data
A Receive buffer full flag is set
to “0” by reading data.
Check an error flag.
Countermeasure for a bit slippage
X : This bit is not used in this application.
Set it to “0” or “1.” It’s value can be disregarded.
Processing for error