English
Language : 

MG74PG1A08 Datasheet, PDF (25/127 Pages) Megawin Technology Co., Ltd – Interrupt controller
CKCON2: Clock Control Register 2
SFR Attribute = Normal Read and Protected Write
SFR Address = 0xBB
RESET =xxx1-0000
7
6
5
4
3
2
--
--
--
IHRCOE MCKS1 MCKS0
W
W
W
R/W
R/W
R/W
1
OSCS1
R/W
0
OSCS0
R/W
Bit 7~5: Reserved. Software must write “0” on these bits when CKCON2 is written.
Bit 4: IHRCOE, Internal High frequency RC Oscillator Enable. The default value is set for MCU clock source.
0: Disable internal high frequency RC oscillator.
1: Enable internal high frequency RC oscillator. If this bit is set by CPU software, it needs 32us to have stable output
after IHRCOE enabled.
Bit 3~2: MCKS[1:0], MCK Source Selection.
MCKS[1:0]
MCK Source Selection
00
OSCin
01
24MHz (ENCKM must be enabled)
10
32MHz (ENCKM must be enabled)
11
48MHz (ENCKM must be enabled)
Bit 1~0: OSCS[1:0], OSCin source selection. The default selection of OSCin is IHRCO.
OSCS[1:0]
OSCin source Selection
00
IHRCO
01
Reserved
10
ILRCO
11
ECKI, External Clock Input (P1.7) as OSCin.
DCON0: Device Control 0
SFR Attribute = Normal Read and Protected Write
SFR Address = 0xBC
RESET = 0000-0110
7
6
5
4
3
2
WCKS
USBR ENUSB ENCKM CKMIS1 CKMIS0
R/W
R/W
R/W
R/W
R/W
R/W
Bit 7: WCKS, WDT Clock selection.
0: Select ILRCO for WDT clock source.
1: Select SYSCLK/12 for WDT clock source.
Bit 6: USBR, Software trigger USB block reset
0: Software end the reset of USB block.
1: Software start the reset of USB block.
Bit 5: ENUSB, Enable USB clock and whole USB function.
0: Disable USB clock and USB function.
1: Enable USB clock and USB function.
Bit 4: ENCKM, Enable clock multiplier (X8)
0: Disable the X8 clock multiplier.
1: Enable the X8 clock multiplier.
Bit 3~2: CKMIS1 ~ CKMIS0, Clock Multiplier Input Selection.
CKMIS[1:0]
Clock Multiplier Input Selection
00
6MHz input
01
12MHz input (default)
10
24MHz input
11
Reserved.
1
RSTIO
R/W
0
SWRST
R/W
MEGAWIN
MG74PG1A08 Data Sheet
25