MC81F4x16
13. CLOCK GENERATOR
MOSC
SCLK
SCLK
MUX
Main
Oscillator Stop
Main-System
Oscillator
Circuit
fx
STOP inst.
SSCR
fxx
Stop release
System clock
INT
‘01011010’ stop mode
SSCR
‘00001111’ SLEEP mode
SOSC
SCLK
Sub
Oscillator Stop
Sub-System
Oscillator
Circuit
fxt
STOP inst.
SSCR
Watch Timer,
Timer 0/1/2/3,
Buzzer
‘01011010’ stop mode
Peripheral clock
Frequency Dividing Circuit
1/16 1/32 1/64 1/128 1/256 1/512 1/1024 1/2048 1/4096
1/1
1/2
1/4
1/8
Figure 13-1 Block Diagram of Clock Generator
As shown in Figure 13-1, the clock generator produces the basic clock pulses for the CPU and the
peripheral hardware.
It contains two oscillators which are main-system oscillator and a sub-oscillator. And for the system
and the peripheral clocks, one oscillator is selected by the SCLK bit of the OSCSEL register.
There are few clock sources for main-oscillator which are listed below.
-
-
-
Crystal / Ceramic Oscillator / (External Clock).
8, 4, 2, 1 MHz Internal RC Oscillator.
External RC Oscillator.
Note that, one of the clock sources is used for main-oscillator based on the ROM option (See „8 .
ROM OPTION‟ at page 51).
Only one clock source is available for sub-oscillator which is „Crystal / Ceramic Oscillator / (External
Clock )‟.
To the peripheral block, the clock among the not-divided original clocks and divided by 2, 4..., up to
4096 can be provided. Peripheral clock is enabled or disabled by STOP instruction.
When the system is fall in stop mode, only selected oscillator(by SCLK bit) is stopped. Unselected
oscillator is not affected by stop mode.
October 19, 2009 Ver.1.35
105