Mitsubishi microcomputers
M16C / 62A Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
2-100
UART
In conforming to the SIM interface, the UART clock signal within the SIM card needs to conform to the
UART2 clock signal within the microprocessor. Two examples are given here as means of generating a
UART2 clock signal within the microprocessor.
* In the case of setting a value equal to or less than (1/256 X 1/16) in the division rate of UART2 clock
Choose f1 for the UART’s source clock signal and set an optional value in the bit rate generator.
* In the case of setting a value equal to or greater than (1/256 X 1/16) in the division rate of UART2 clock
Set the bit rate generator to "0", turn the source clock signal to timer output and set an optional value
in the timer. In order to maintain the synchronization, the serial I/O mode select bits must be reset to
“0002”, then the UART2 transmit/receive mode register is set back to the original setting at every
one byte transmission.
Let F be the clock signal within the SIM card and D be the bit rate adjustment factor, then the formula for
the UART clock signal becomes as follows. Figure 2.5.20 shows an example of connection.
In the case of setting a value equal to or less than (1/256 X 1/16) in the division rate of UART2 clock
UART2 clock signal within microprocessor = UART clock within SIM card
f1 xx
= f1
x
x flip-flop x
Let XIN = 16 MHz, timer Ai counter = 1, F = 372, and D = 1, then the value to be set in the bit rate
generator becomes
16 x
x
=16 x
x
Bit rate generator = 92
Table 2.5.8 shows an example of setting in the UART2 bit rate generator.
In the case of setting a value equal to or greater than (1/256 X 1/16) in the division rate of UART2 clock
UART2 clock signal within microprocessor = UART clock within SIM card
f1 xx
x
= f1 x
x
Let XIN= 16 MHz, timer Ai counter = 3, bit rate generator = 0, F = 1860, and D = 1, then the value to be
set in the timer Aj counter becomes
16 x
x
=16 x
x
Timer Aj counter = 464
Table 2.5.9 shows an example of setting in the timer Aj counter.
2.5.6 Clock Signals in used for the SIM Interface
Bit rate generator + 1
1
16
1
Timer Ai counter + 1
F/D
1
16
1
2
1
2
1
372/1
1
flip-flop
1
Timer Aj counter + 1
16
1
Bit rate generator + 1
1
flip-flop
F/D
1
Bit rate generator + 1
2
1
0 + 1
1
16
1
2
1
1860/1
1
Bit rate generator + 1
1
Timer Aj counter + 1
1
3 + 1