Document No. 002-05317 Rev. *C
1
AN205317
FR, MB91460, FR Clocks
The FR Family MCUs feature a sophisticated clock distribution scheme with the different clock sources such as RC
Clock, Main Clock, PLL Clock, Modulated PLL Clock, and Sub Clock. The core and the peripherals are connected to
different clock trees that can be connected to different clock sources and clock frequencies to allow for a fine-grained
control over the required operation speed and power consumption.
Contents
Introduction ............................................................... 1
Clock Tree ................................................................ 1
...................................................... 1
...................................................... 2
Main Clock ...................................................... 2
...................................................... 2
...................................................... 3
Clock Modulator ............................................... 3
Registers .................................................................. 5
Clock Source Control Register (CLKR) ............... 5
Clock Division Setting Register 0 (DIVR0) .......... 5
Clock Division Setting Register 0 (DIVR1) .......... 5
Clock Source Configuration Register (CSCFG) .. 6
Oscillation Control Register (OSCCR) ................ 7
PLL Control Registers (PLLDIVM) ...................... 7
PLL Control Registers (PLLDIVN) ....................... 7
PLL Control Registers (PLLDIVG) ...................... 8
PLL Control Registers (PLLMULG) ..................... 8
PLL Control Registers (PLLCTRL) ...................... 8
Clock Supervisor Control Register (CSVCR) ...... 9
Clock Modulator Control Register (CMCR) ....... 10
Clock Modulation Parameter Register (CMPR) 10
Using the start.asm ................................................ 11
Clock setup sequence ............................................ 13
Clock Setup Sequence (Example) .................... 14
Clock Modulator Configuration ............................... 17
Clocks Example ...................................................... 18
Starting Clock Modulator .................................. 18
Stopping Clock Modulator ................................. 18
Additional Information ............................................. 19
Document History ............................................................ 20
1
Introduction
The FR Family MCUs feature a sophisticated clock distribution scheme with the different clock sources such as RC
Clock, Main Clock, PLL Clock, Modulated PLL Clock, and Sub Clock. The core and the peripherals are connected to
different clock trees that can be connected to different clock sources and clock frequencies to allow for a fine-grained
control over the required operation speed and power consumption.
2
Clock Tree
The FR Family MCUs feature a sophisticated clock distribution that allows for fine-grained control over the used
clocks and frequencies. The details are given below.
2.1
Overview
The FR Family can be used with 2 different external clocks: the Main Clock and the Sub Clock and 1 internal (on-
chip) clock: the RC Clock. The external clocks may be connected to an oscillator, an oscillation circuit of a crystal and
capacitors, or an external clock supply. The internal RC Clock can be configured at 2 MHz or 100 kHz.
Internally, 4 different clocks are used: the core clock CLKB, the peripheral clock CLKP, External bus clock CLKT and
CAN clock CLKCAN. The CLKB provides the clock to the CPU. The CLKCAN provides the clock to the CAN
controllers. The CLKP provides the clock for all other peripherals.
Each of these four clocks features a separate prescaler. The following block diagram shows the clock distribution.