A96G140/A96G148/A96A148 User’s manual
8. Clock generator
83
Clock
Chang e
System
Clock Gen.
SCLK
(Core, System,
Per ipheral)
fx
BIT
WDT
BIT
overflow
XIN
XOUT
Main OSC
f
XIN
STOP Mode
XCLKE
STOP Mode
HSIRCE
1/64
1/2
1/4
1/8
M
U
X
LIRC OSC
(128kHz)
WDTCK
Stabilization Time
Gen eration
M
U
X
BIT clock
WDT clock
SXIN
SXO UT
Sub OS C
f
SUB
WT
2
SCLK[1:0]
1/16
1/32
3
IRCS[2:0]
fx/409 6
fx/102 4
fx/128
fx/16
M
U
X
3
BITCK[2:0]
HIRC O SC
(32MHz)
BIT overflow
f
LIRC
f
HIRC
/8
LSIRC/32
Figure 26. Clock Generator Block Diagram
8.2
Register map
Table 10. Clock Generator Register Map
Name
Address
Direction
Default
Description
SCCR
8AH
R/W
00H
System and Clock Control Register
OSCCR
C8H
R/W
28H
Oscillator Control Register
XTFLSR
1038H
R/W
00H
Main Crystal OSC Filter Selection Register
8.3
Register description
SCCR (System and Clock Control Register): 8AH
7
6
5
4
3
2
1
0
–
–
–
–
–
–
SCLK1
SCLK0
–
–
–
–
–
–
R/W
R/W
Initial value: 00H
SCLK [1:0]
System Clock Selection Bit
SCLK1 SCLK0 Description
0
0
Internal 32MHz RC OSC (f
HSIRC
) for system clock
0
1
External Main OSC (f
XIN
) for system clock
1
0
External Sub OSC (f
SUB
) for system clock
1
1
Internal 128kHz RC OSC (f
LSIRC)
for system clock