Megawin Technology Co., Ltd.
MG87FE/L52
CKCON2 Register (0xBF)
Name Bit7 Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
CKCON2 OSCDR EN6TR XCKS5 XCKS4 XCKS3 XCKS2 XCKS1 XCKS0
=0, the gain of crystal oscillator is enough for oscillation up to 48MHz.
=1, the gain of crystal oscillator is reduced. It will helpful in EMI reduction.
OSCDR
Regarding application not needing high frequency clock, it is recommended to do
so.
=0, MG87FE/L52 will run in 12T mode;
EN6TR
=1, MG87FE/L52 will run in 6T mode. It gets double performance than 12T.
The default value of this bit is load from Option Setting “EN6T”.
Set the crystal frequency value to define the time base of ISP/IAP programming.
Fill in the proper value according to XTAL1 as listed below.
XCKS5~0
XTAL1 @ 12T
1MHz
XTAL1 @ 6T
0.5MHz
1MHz
XCKS5~0 setting
000000B
000001B
000010B
000011B
………..
2MHz
3MHz
1.5MHz
2MHz
4MHz
………..
45MHz
46MHz
47MHz
48MHz
………..
22.5MHz
23MHz
101100B
101101B
101110B
101111B
23.5MHz
24MHz
The default value of XCKS=001010B for XTAL1=11MHz @ 12T.
13
Preliminary ver 1.3
Date: 2009-JAN-20