Oscillation Mode Selection Register Format; Main System Clock When Writing To Osms - NEC PD78052 User Manual

Pd78054 series; pd78054y series 8-bit single-chip microcontrollers
Table of Contents

Advertisement

(2) Oscillation mode selection register (OSMS)
This register specifies whether the clock output from the main system clock oscillator without passing through
the scaler is used as the main system clock, or the clock output via the scaler is used as the main system
clock.
OSMS is set with 8-bit memory manipulation instruction.
RESET input sets OSMS to 00H.
Figure 7-4. Oscillation Mode Selection Register Format
Symbol
7
6
5
OSMS
0
0
0
Cautions 1. The main system clock cycle is longer by up to 2/fx only when writing data to OSMS (including
when writing the same data that was written previously) as shown in Figure 7-5. This causes
a temporary error in the count clock cycle of timers in the peripheral hardware that operates
with the main system clock.
In addition, when the oscillation mode is changed, the clocks provided for the peripheral
hardware as well as those for the CPU are switched. Therefore, it is recommended that only
one-time writing to OSMS be performed between the reset release and the peripheral
hardware operation.
f
XX
Operating at f
2. Setting 1 to MCS should be performed after V
Remarks f
: Main system clock frequency (fx or fx/2)
xx
f
: Main system clock oscillation frequency
x
164
CHAPTER 7 CLOCK GENERATOR
4
3
2
1
0
0
0
0
Figure 7-5. Main System Clock when Writing to OSMS
Write to OSMS
(MCS
0)
= f
/2 (MCS = 0)
XX
X
After
0
Address
Reset
MCS
FFF2H
00H
Main System Clock Scaler Control
MCS
0
Scaler used
1
Scaler not used
Max. 2/f
X
Operating at f
2.7 V.
DD
R/W
W
= f
/2 (MCS = 0)
XX
X

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents