R01UH0822EJ0100 Rev.1.00
Page 144 of 1041
Jul 31, 2019
RX13T Group
9. Clock Generation Circuit
9.2.12
Main Clock Oscillator Wait Control Register (MOSCWTCR)
Note:
Set the PRCR.PRC1 bit to 1 (write enabled) before rewriting this register.
MSTS[4:0] Bits (Main Clock Oscillator Wait Time)
Set these bits to select the oscillation stabilization wait time of the main clock oscillator.
Set the main clock oscillation stabilization time to longer than or equal to the stabilization time recommended by the
oscillator manufacturer. When the main clock is externally input, set these bits to 00000b because the oscillation
stabilization time is not required.
The wait time set by the MSTS[4:0] bits is counted using the LOCO clock. The LOCO automatically oscillates when
necessary, regardless of the value of the LOCOCR.LCSTP bit.
After the set wait time has elapsed, supply of the main clock is started to the MCU internally and the
OSCOVFSR.MOOVF flag becomes 1. If the set wait time is short, supply of the main clock is started before oscillation
of the clock becomes stable.
Only rewrite the MOSCWTCR register when the MOSCCR.MOSTP bit is 1 and the OSCOVFSR.MOOVF flag is 0. Do
not rewrite this register under any other conditions.
Address(es): 0008 00A2h
b7
b6
b5
b4
b3
b2
b1
b0
—
—
—
MSTS[4:0]
Value after reset:
0
0
0
0
0
1
0
0
Bit
Symbol
Bit Name
Description
R/W
b4 to b0
Main Clock Oscillator Wait Time
b4 b0
0 0 0 0 0: Wait time = 2 cycles (0.5 μs)
0 0 0 0 1: Wait time = 1024 cycles (256 μs)
0 0 0 1 0: Wait time = 2048 cycles (512 μs)
0 0 0 1 1: Wait time = 4096 cycles (1.024 ms)
0 0 1 0 0: Wait time = 8192 cycles (2.048 ms)
0 0 1 0 1: Wait time = 16384 cycles (4.096 ms)
0 0 1 1 0: Wait time = 32768 cycles (8.192 ms)
0 0 1 1 1: Wait time = 65536 cycles (16.384 ms)
Settings other than above are prohibited.
Wait time when LOCO = 4.0 MHz (0.25 μs, TYP.)
R/W
b7 to b5
—
Reserved
These bits are read as 0. The write value should be 0.
R/W