
ML62Q1000 Series User's Manual
Chapter 6
Clock Generation Circuit
FEUL62Q1000
6-25
6.3.5 Switching Low-speed clock
Figure 6-15 shows a flow chart of the low-speed clock switching process (low-speed RC oscillation circuit
à
low-speed
crystal oscillation circuit). Follow the flow chart below to check the state of the low-speed clock after releasing the
STOP/STOP-D mode. When switching the system clock to the high-speed clock, first switch the low-speed clock to the
low-speed crystal oscillation circuit. This circuit is unavailable on the ML62Q1300 group.
Figure 6-15 Flow Chart for switching the Low-speed clock
(RC oscillation clock to Crystal oscillation/External clock)
Read LOSCS
LOSCS=0x0
Write 0x1 to LOSCB
NOP instruction x2
LOSCS=0x1
End switching to low-speed crystal
oscillation clock
*1*2
Read LOSCB
LOSCB=0x0
LOSCB=0x1
LOSCM[1:0]=0x0
Read LOSCM[1:0]
Read LOSCB
LOSCB=0x0
LOSCB=0x1
Write "1" to ECBU bit of Interrupt
Enable register 23
*5
Process for abnormality
Write 0x0
to LOSCM[1:0]
Handle appropriately for the
application.
Wait for clock
backup interrupt
2s or more
Write 0x1
*1
to LOSCM[1:0]
*1: Read "0x1" with "0x3" and read "low-speed oscillation clock" with "low-speed external clock" when switching to the "low-speed
external clock".
*2: Do not control the power managements (write to SBYCON register) and the clock managements (write to LOSCM[1:0] of
FLMOD register and write to SELSCLK of FCON register) before the switching to the low-speed crystal oscillation clock.
*3: There are four interrupt sources. After switching to the low-speed crystal oscillation clock, handle them following to the flow of
the interrupt.
1)
When counting for the clock stabilization is completed after setting
LOSCM[1:0]
to "
0x1
".
2) When counting for the clock stabilization is completed after releasing STOP/STOP-D mode.
3) If an abnormal condition happened on the low-speed crystal circuit and the oscillation stopped for 8ms or longer.
4) If an abnormal condition happened on the low-speed crystal circuit and returned to normal oscillating in stable.
*4: Clear the setting once because it’s unknown whether the state is in backup clock or the state before setting the crystal oscillation
clock.
*5: Enable the interrupt after ending the reset release process because it’s unknown whether the state is in backup clock or the
state before setting the crystal oscillation clock.
Write 0x0
to LOSCM[1:0]
*4
Start (Reset release, Wake-up by
STOP/STOP-D)
Handle appropriately for
the application.
Yes
LOSCM[1:0]
≠
0x0
Write "1" to ECBU bit of Interrupt
Enable register 23
*5
LOSCM[1:0]==0x1
*1
No
Interrupt occur
*3
Working with low-speed crystal
oscillation clock
*1
Summary of Contents for ML62Q1000 Series
Page 17: ...Chapter 1 Overview...
Page 112: ...Chapter 2 CPU and Memory Space...
Page 154: ...Chapter 3 Reset Function...
Page 166: ...Chapter 4 Power Management...
Page 196: ...Chapter 5 Interrupts...
Page 248: ...Chapter 6 Clock generation Circuit...
Page 274: ...Chapter 7 Low Speed Time Base Counter...
Page 291: ...Chapter 8 16 Bit Timer...
Page 320: ...Chapter 9 Functional Timer FTM...
Page 382: ...Chapter 10 Watchdog Timer...
Page 402: ...Chapter 11 Serial Communication Unit...
Page 456: ...Chapter 12 I2 C Bus Unit...
Page 491: ...Chapter 13 I2 C Master...
Page 512: ...Chapter 14 DMA Controller...
Page 531: ...Chapter 15 Buzzer...
Page 550: ...Chapter 16 Simplified RTC...
Page 559: ...Chapter 17 GPIO...
Page 594: ...Chapter 18 External Interrupt Function...
Page 612: ...Chapter 19 CRC Generator...
Page 632: ...Chapter 20 Analog Comparator...
Page 644: ...Chapter 21 D A Converter...
Page 655: ...Chapter 22 Voltage Level Supervisor...
Page 676: ...Chapter 23 Successive Approximation Type A D Converter...
Page 709: ...Chapter 24 Regulator...
Page 714: ...Chapter 25 Flash Memory...
Page 743: ...Chapter 26 Code Option...
Page 750: ...Chapter 27 LCD Driver...
Page 788: ...Chapter 28 On Chip Debug Function...
Page 795: ...Chapter 29 Safety Function...
Page 813: ...Appendix A...
Page 881: ...Revision History...