Example Of Controlling Internal High-Speed Oscillation Clock - Renesas 78K0 Series User Manual

8-bit single-chip microcontrollers
Table of Contents

Advertisement

(b) To stop X1 oscillation (disabling external clock input) by setting MSTOP to 1
<1> Confirming the CPU clock status (PCC and MCM registers)
Confirm with CLS and MCS that the CPU is operating on a clock other than the high-speed system
clock.
When CLS = 0 and MCS = 1, the high-speed system clock is supplied to the CPU, so change the
CPU clock to a clock other than the high-speed system clock.
• 78K0/KB2-A
MCS
0
Internal high-speed oscillation clock
1
High-speed system clock
• 78K0/KC2-A
CLS
MCS
0
0
1
<2> Stopping the high-speed system clock (MOC register)
When MSTOP is set to 1, X1 oscillation is stopped (the input of the external clock is disabled).
Caution Be sure to confirm that MCS = 0 or CLS = 1 when setting MSTOP to 1. In addition, stop
peripheral hardware that is operating on the high-speed system clock.

5.6.2 Example of controlling internal high-speed oscillation clock

The following describes examples of clock setting procedures for the following cases.
(1) When restarting oscillation of the internal high-speed oscillation clock
(2) When using internal high-speed oscillation clock as CPU clock, and internal high-speed oscillation clock or
high-speed system clock as peripheral hardware clock
(3) When stopping the internal high-speed oscillation clock
CHAPTER 5 CLOCK GENERATOR
0
Internal high-speed oscillation clock
1
High-speed system clock
×
Subsystem clock
User's Manual U19780EJ2V0UD
CPU Clock Status
CPU Clock Status
151

Advertisement

Table of Contents
loading

This manual is also suitable for:

78k0/kb2-a78k0/kc2-a

Table of Contents