![NEC 78K0S/K 1+ Series Application Note Download Page 22](http://html.mh-extra.com/html/nec/78k0s-k-1-series/78k0s-k-1-series_application-note_249252022.webp)
CHAPTER 4 SETTING METHODS
(3) Setting of the oscillation stabilization time after releasing the STOP mode (when crystal or ceramic
oscillation is used for the system clock source)
The OSTS register is used to set the oscillation stabilization time after releasing the STOP mode. The OSTS
setting is valid only when crystal or ceramic oscillation is used for the system clock source.
In this sample program, the high-speed internal oscillation clock is used, so the OSTS register is not set.
Figure 4-5. Format of Oscillation Stabilization Time Selection Register (OSTS)
OSTS
MOV OSTS, #00000001B
OSTS = 0b00000001;
Note
When the high-speed internal oscillation clock or an external clock input is selected as the system clock,
the OSTS setting is not required.
Caution Bits 7 to 2 must be set to 0.
[Example 1]
Setting the oscillation stabilization time to 409.6
μ
s when a crystal or ceramic oscillation clock is
used (f
X
= 10 MHz)
OSTS
The OSTS register setting value is “000000
01
(bits 7 to 2 must be set to 0)”.
•
Assembly language
•
C language
0 0 0 0 0 0
OSTS1 OSTS0
Specification of the oscillation stabilization time after releasing
the STOP mode
Note
0 0
2
10
/fx
0 1
2
12
/fx
1 0
2
15
/fx
1 1
2
17
/fx
0 1
0 0 0 0 0 0
0 1
2
12
/fx (409.6
μ
s)
Application Note U18752EJ2V0AN
22