Serial Communication
Specifications in this manual are tentative and subject to change
Rev. E MITSUBISHI MICROCOMPUTERS
M30245 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
142
UART mode (compliant with the SIM interface)
The SIM interface is used for connecting the microcomputer with a memory card IC or a similar device.
Adding some extra settings in UART mode allows the user to effect this function. Table 1.48 shows the
specifications of UART mode compliant with SIM interface. Figure 1.102 shows typical transmit/receive
timing in UART mode compliant with SIM interface.
Table 1.48. Specifications of UART mode compliant with the SIM interface
Note 1: 'm' denotes the value 0016 to FF16 that is set to the UARTi bit rate generator
Note 2: fEXT is input from the CLKi pin.
Item Specification
Transfer data format
Transfer data 8-bit UA R T mo de (bit s 2 to 0 of addres s 03 A816, 036816, 033816, 032816 = "10 12")
One stop bit (bit 4 of addresses 03A816, 036816, 033816, 032816 = "0")
With the direct format:
-Set parity to "even" (bits 5 and 6 of addresses 03A816, 036816, 033816, 032816 = "1")
-Set data logic to "direct" (bit 6 of address 03AD16, 036D16, 033D16, 032D16 = "0")
-Set transfer format to LSB (bit 7 of address 03AC16, 036C16, 033 C16, 032C16 = "0")
With the inverse format:
-Set parit y to "o dd" (bit 5 and 6 of address 03A816, 036816, 0338 16, 032816 = "0" and "1" respec-
tively)
-Set data logic to "inverse" (bit 6 of address 03AD16, 036D16, 033D16, 032D16 = "1")
-Set transfer format to MSB (bit 7 of address 03AC16, 036C16, 033C16, 032C16 = "1")
Transfer clock
With the internal clock selected (bit 3 of address 03A816, 036816, 033816, 032816 = "0"): fi/
16(m+1) (Note 1): fi=f1, f8, f32
With an external clock selected (bit 3 of address 03A816, 036816, 033816, 032816 = "1"): fEXT/
16(m+1) (Notes 1,2)
Transmit/receive
control Disable the CTS and RTS function (bit 4 of address 03AC16, 036C16, 033C16, 032C16 = "1")
Other settings
Set transmission interrupt factor to ì transmission completedî (bit 4 of address 03AD16, 036D16,
033D16, 032D16 = "1")
Set N-channel open drain output to TxD pin in UART0, 1, 3 (bit 5 of address 03AC
16
,
036C16, 032C16 = "1")
Tran sm it st a r t
condition Transmit enable bit (bit 0 of address 03AD16, 036 D16, 033D16, 032D16 = "1")
Transmit buffer empty flag (bit 1 of address 03AD16, 036D16, 033D16, 032D16 = "0")
Receive st a r t conditi on Receive enable bit (bit 2 of address 03AD16, 036D16, 033D16, 032D16 = "1")
Detection of a start bit
Interrupt request
generation timing
When transmitting
-When data transmission from the UART0 to UART3 transfer register is completed (bit 4 of
address 03AD 16, 036D16, 033D16, 032D16 = "1")
When receiving
-When data transfer from the UART0 to UART3 receive register to the UART0 to UART3
receive buffer register is completed .
Error detection
Overrun error (See UART spec if ic atio ns )
Framing error (See UART specifications)
Parity error (See UART specif ic ati ons )
-On the reception side, an "L" level is output from the TxDi pin by use of the pa rity error signal
output fun ctions (bi t 7 o f ad dress 03AD16, 03 6D 16, 033 D16, 032D16 = "1") when a p arit y e rror i s
detected.
-On the transmission side, a parity error is detected by the level of input to the RxDi pin when a
transmit interrupt occurs
The error sum flag (See UART specifications)