Datasheet

Section 5 Clock Pulse Generator
Rev. 3.00 Sep. 10, 2007 Page 82 of 528
REJ09B0216-0300
[1]
[2]
Exception handling
for clock switching
LSI operates on
external clock
Start
(LSI operates on external clock)
Write 0 to OSCSEL in CKCSR
LSI operates on
on-chip oscillator clock
Write 0 to OSCBAKE in CKCSR
Write 1 to CKSWIE in CKCSR
if necessary
Write 0 to PMRC0 in CKCSR
if necessary
LSI operates on
on-chip oscillator clock
When CKSWIE = 1
When 0 is written to the OSCSEL bit, this LSI
switches from the external clock to the on-chip
oscillator clock after a φ stop duration. The φ halt
duration here is the duration while the φ
RC
clock
rises seven times after the OSCSEL bit becomes
0.
Writing 0 to PMRC0 disables the external
oscillation input.
[1]
[2]
Figure 5.5 Flowchart of Clock Switching with Backup Function Disabled (2)
(From External Clock to On-Chip Oscillator Clock)