English
Language : 

M16C62_N Datasheet, PDF (389/621 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY
SIM interface
Mitsubishi microcomputers
M16C / 62 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
2.5.6 Clock Signals in used for the SIM Interface
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.
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
1
f1 x Bit rate generator + 1
1
1
1
x
16
= f1
x
x flip-flop x
Timer Ai counter + 1
F/D
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
1
16 x
Bit rate generator + 1
1
11
1
x 16 =16 X 2 x 2 x 372/1
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
1
1
f1 x Timer Aj counter + 1 x flip-flop x Bit rate generator + 1
= f1 x
1
x flip-flop x
Bit rate generator + 1
1
F/D
1
x
16
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
1
x
Timer Aj counter + 1
1
2
1
x 0+1
x
1
16
11
1
=16 x
xx
3 + 1 2 1860/1
Timer Aj counter = 464
Table 2.5.9 shows an example of setting in the timer Aj counter.
374