mg84fl54b Megawin Technology, mg84fl54b Datasheet - Page 80

no-image

mg84fl54b

Manufacturer Part Number
mg84fl54b
Description
Full-speed Usb Micro-controller
Manufacturer
Megawin Technology
Datasheet
22. System Clock
22.1. Programmable System Clock
The system clock (or CPU clock) of the device is programmable and source-selectable. The user can program
the system clock frequency by bits CKS2~CKS0 (CKCON.2 ~ CKCON.0) and select the clock source by bit
CK_SEL (CKCON2.0). The block diagram of system clock is shown below.
Block Diagram of System Clock
Note:In the Power down mode, the XTAL oscillating circuit will stop.
CKCON (Address=C7H, Clock Control Register)
XCKS4~XCKS0 (or XCKS[4:0]): Filled with a proper value according to OSCin, as listed below.
[XCKS4~XCKS0] = OSCin – 1, where OSCin=1~32 (MHz).
For examples,
(1) If OSCin=12MHz, then fill [XCKS4~XCKS0] with 11, i.e., 01011B.
(2) If OSCin=6MHz, then fill [XCKS4~XCKS0] with 5, i.e., 00101B.
CKS2~CKS0: System clock divider select bits, as follows.
CKS2 CKS1 CKS0
80
XCKS4
0
0
0
0
1
1
1
1
7
0
0
1
1
0
0
1
1
PLL_CV
XTAL1
XTAL2
XCKS3
0
1
0
1
0
1
0
1
6
Oscillating
Circuit
EN_PLL
XCKS2
Fosc (System Clock)
5
CLKin
CLKin /2
CLKin /4
CLKin /8
CLKin /16
CLKin /32
CLKin /64
CLKin /128
XCKS[4:0]
PLL
XCKS1
MG84FL54B Data Sheet
default
4
CK_SEL
48MHz
XCKS0
3
CKS[2:0]
To USB Logic
CKS2
2
CKS1
1
CKS0
0
MEGAWIN

Related parts for mg84fl54b