English
Language : 

M30218 Datasheet, PDF (99/179 Pages) Mitsubishi Electric Semiconductor – M30218 Group
Clock asynchronous serial I/O (UART) mode
Mitsubishi microcomputers
M30218 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
UARTi transmit/receive mode register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
UiMR (i=0,1)
Address
When reset
03A016, 03A816
0016
Bit symbol
Bit name
SMD0
SMD1
SMD2
CKDIR
STPS
Serial I/O mode select bit
Internal/external clock
select bit
Stop bit length select bit
PRY
Odd/even parity select bit
PRYE
SLEP
Parity enable bit
Sleep select bit
Function
b2 b1 b0
1 0 0 : Transfer data 7 bits long
1 0 1 : Transfer data 8 bits long
1 1 0 : Transfer data 9 bits long
0 : Internal clock
1 : External clock
0 : One stop bit
1 : Two stop bits
Valid when bit 6 = “1”
0 : Odd parity
1 : Even parity
0 : Parity disabled
1 : Parity enabled
0 : Sleep mode deselected
1 : Sleep mode selected
RW
Figure GA-11. UARTi transmit/receive mode register in UART mode
Table GA-4 lists the functions of the input/output pins during UART mode. Note that for a period from
when the UARTi operation mode is selected to when transfer starts, the TxDi pin outputs a “H”. (If the N-
channel open-drain is selected, this pin is in floating state.)
Table GA-4. Input/output pin functions in UART mode (i=0,1)
Pin name
TxDi
(P44, P74)
RxDi
(P45, P75)
CLKi
(P46, P76)
Function
Serial data output
Method of selection
(Outputs dummy data when performing reception only)
Serial data input
Programmable I/O port
Transfer clock input
Port P45, P75 direction register (bits 5 at address 03EA16 and 03EF16)= “0”
(Can be used as an input port when performing transmission only)
Internal/external clock select bit (bit 3 at address 03A016, 03A816) = “0”
Internal/external clock select bit (bit 3 at address 03A016, 03A816) = “1”
CTSi/RTSi
(P47, P77)
CTS input
CTS/RTS disable bit (bit 4 at address 03A416, 03AC16) =“0”
CTS/RTS function select bit (bit 2 at address 03A416, 03AC16) = “0”
Port P47, P77 direction register (bits 7 at address 03EA16 and 03EF16) = “0”
RTS output
Programmable I/O port
CTS/RTS disable bit (bit 4 at address 03A416, 03AC16) = “0”
CTS/RTS function select bit (bit 2 at address 03A416, 03AC16) = “1”
CTS/RTS disable bit (bit 4 at address 03A416, 03AC16) = “1”
98