English
Language : 

M38002M4 Datasheet, PDF (96/173 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER
APPLICATION
2.3 Serial I/O
RESET
q X : This bit is not used in this application.
Set it to “0” or “1.” It’s value can be disregarded.
Initialization
SIOCON (Address : 1A16)
UARTCON (Address : 1B16)
BRG
(Address : 1C16)
P4D
(Address : 0916)
1010X0012
000010002
8 —1
XXXXXXX02
SIOSTS (Address : 1916 ), bit1?
1
Read out a reception data
from RB (Address : 1816)
0
q Check a completion of receiving.
(Receive buffer full flag)
q Receive the first 1 byte data
A Receive buffer full flag is set
to “0” by reading data.
SIOSTS (Address : 1916 ), bit6?
1 q Check an error falag.
0
SIOSTS (Address : 1916 ), bit1?
1
Read out a reception data
from RB (Address : 1816 )
0 q Check a completion of receiving.
(Receive buffer full flag)
q Receive the second byte data
A Receive buffer full flag is set
to “0” by reading data.
SIOSTS (Address : 1916 ), bit6?
0
1 q Check an error flag.
Processing for error
1
P4 (Address : 0816 ), bit0?
0
SIOCON (Address : 1A16 )
SIOCON (Address : 1A16 )
0000X0012
1010X0012
• Countermeasure for a bit slippage
Fig. 2.3.34 Control procedure at a receiving side [Communication using UART]
2-48
3800 GROUP USER’S MANUAL