Section 4 Clock Pulse Generator (CPG)
Rev. 3.00 Sep. 27, 2007 Page 65 of 758
REJ09B0243-0300
4.5 Changing
Frequency
Selecting division ratios for the frequency divider can change the frequencies of the internal clock
(I
φ
), bus clock (B
φ
), peripheral clock (P
φ
), and MTU2 clock (MP
φ
). This is controlled by software
through the frequency control register (FRQCR). The following describes how to specify the
frequencies.
1. In the initial state, IFC2 to IFC0 = H'011 (
×
1/4), BFC2 to BFC0 = H'011 (
×
1/4), PFC2 to
PFC0 = H'011 (
×
1/4), and MPFC2 to MPFC0 = H'011 (
×
1/4).
2. Stop all modules except the CPU, on-chip ROM, and on-chip RAM.
3. Set the desired values in bits IFC2 to IFC0, BFC2 to BFC0, PFC2 to PFC0, and MPFC2 to
MPFC0 bits. Since the frequency multiplication ratio in the PLL circuit is fixed at
×
8, the
frequencies are determined only be selecting division ratios. When specifying the frequencies,
satisfy the following condition: internal clock (I
φ
)
≥
bus clock (B
φ
) = peripheral clock (P
φ
).
When using the MTU2 clock, specify the frequencies to satisfy the following condition:
internal clock (I
φ
)
≥
MTU2 clock (MP
φ
)
≥
peripheral clock (P
φ
).
4. After an instruction to rewrite FRQCR has been issued, the actual clock frequencies will
change after (1 to 24n) cyc + 11B
φ
+ 7P
φ
.
n: Division ratio specified by the BFC bit in FRQCR (1, 1/2, 1/4, or 1/8)
cyc: Clock obtained by dividing EXTAL by 8 with the PLL.
Note: (1 to 24n) depends on the internal state.
Summary of Contents for SH7124 R5F7124
Page 2: ...Rev 3 00 Sep 27 2007 Page ii of xx ...
Page 8: ...Rev 3 00 Sep 27 2007 Page viii of xx ...
Page 36: ...Section 1 Overview Rev 3 00 Sep 27 2007 Page 16 of 758 REJ09B0243 0300 ...
Page 68: ...Section 2 CPU Rev 3 00 Sep 27 2007 Page 48 of 758 REJ09B0243 0300 ...
Page 108: ...Section 5 Exception Handling Rev 3 00 Sep 27 2007 Page 88 of 758 REJ09B0243 0300 ...
Page 166: ...Section 7 User Break Controller UBC Rev 3 00 Sep 27 2007 Page 146 of 758 REJ09B0243 0300 ...
Page 724: ...Section 20 List of Registers Rev 3 00 Sep 27 2007 Page 704 of 758 REJ09B0243 0300 ...
Page 772: ...Rev 3 00 Sep 27 2007 Page 752 of 758 REJ09B0243 0300 ...
Page 778: ...Rev 3 00 Sep 27 2007 Page 758 of 758 REJ09B0243 0300 ...
Page 781: ......