![](http://datasheet.mmic.net.cn/230000/7540_datasheet_15567442/7540_63.png)
HARDWARE
7540 Group User
’
s Manual
1-45
Fig. 46 External circuit of ceramic resonator
Fig. 47 External circuit of RC oscillation
X
I
N
C
O
U
T
C
IN
X
O
U
T
M
3
7
5
4
0
R
d
X
I
N
X
O
U
T
C
R
M
3
7
5
4
0
Fig. 48 External clock input circuit
X
IN
X
O
U
T
E
c
x
i
t
c
e
u
r
i
n
t
a
l
o
s
c
i
l
l
a
t
i
o
n
r
V
CC
V
SS
O
p
e
n
M37540
X
I
N
X
O
U
T
M
3
7
5
4
0
Open
Fig. 49 Processing of X
IN
and X
OUT
pins at ring oscillator op-
eration
Clock Generating Circuit
An oscillation circuit can be formed by connecting a resonator be-
tween X
IN
and X
OUT
, and an RC oscillation circuit can be formed
by connecting a resistor and a capacitor.
Use the circuit constants in accordance with the resonator
manufacturer's recommended values.
(1) Ring oscillator operation
When the MCU operates by the ring oscillator for the main clock,
connect X
IN
pin to V
SS
and leave X
OUT
pin open.
The clock frequency of the ring oscillator depends on the supply
voltage and the operation temperature range.
Be careful that variable frequencies when designing application
products.
(2) Ceramic resonator
When the ceramic resonator is used for the main clock, connect
the ceramic resonator and the external circuit to pins X
IN
and
X
OUT
at the shortest distance. A feedback resistor is built in be-
tween pins X
IN
and X
OUT
.
(3) RC oscillation
When the RC oscillation is used for the main clock, connect the
X
IN
pin and X
OUT
pin to the external circuit of resistor R and the
capacitor C at the shortest distance.
The frequency is affected by a capacitor, a resistor and a micro-
computer.
So, set the constants within the range of the frequency limits.
(4) External clock
When the external signal clock is used for the main clock, connect
the X
IN
pin to the clock source and leave X
OUT
pin open.
Select
“
ceramic resonance
”
by setting
“
0
”
to the Oscillation mode
selection bit of CPU mode register (address 003B
16
).
Externally connect a
damping resistor Rd de-
p e n d i n g
oscillation frequency.
(A feedback resistor is
built-in.)
Use the resonator
manufacturer
’
s recom-
mended value because
constants such as ca-
pacitance depend on the
resonator.
o n
t h e
Note:
Connect the external
circuit of resistor R
and the capacitor C at
the shortest distance.
The frequency is af-
fected by a capacitor,
a resistor and a micro-
computer.
So, set the constants
within the range of the
frequency limits.
Note:
The clock frequency of the
ring oscillator depends on
the supply voltage and the
operation temperature
range.
Be careful that variable fre-
quencies and obtain the
sufficient margin.
Note:
FUNCTIONAL DESCRIPTION