SAM3N0C Atmel Corporation, SAM3N0C Datasheet - Page 342

no-image

SAM3N0C

Manufacturer Part Number
SAM3N0C
Description
Manufacturer
Atmel Corporation
Datasheets
24.3
Figure 24-1. General Clock Block Diagram
24.4
342
XOUT32
(Supply Controller)
Block Diagram
XIN32
XOUT
Master Clock Controller
EXTALSEL
XIN
SAM3N
RC Oscillator
Management
4/8/12 MHz
Embedded
32 kHz RC
Embedded
Resonator
Controller
3-20 MHz
Oscillator
32768 Hz
Oscillator
Status
Oscillator
Ceramic
Crystal
Crystal
Power
Fast
or
The Master Clock Controller provides selection and division of the Master Clock (MCK). MCK is
the clock provided to all the peripherals.
The Master Clock is selected from one of the clocks provided by the Clock Generator. Selecting
the Slow Clock provides a Slow Clock signal to the whole device. Selecting the Main Clock
saves power consumption of the PLL.
The Master Clock Controller is made up of a clock selector and a prescaler.
The Master Clock selection is made by writing the CSS field (Clock Source Selection) in
PMC_MCKR (Master Clock Register). The prescaler supports the division by a power of 2 of the
selected clock between 1 and 64, and the division by 3. The PRES field in PMC_MCKR pro-
grams the prescaler.
Each time PMC_MCKR is written to define a new Master Clock, the MCKRDY bit is cleared in
PMC_SR. It reads 0 until the Master Clock is established. Then, the MCKRDY bit is set and can
trigger an interrupt to the processor. This feature is useful when switching from a high-speed
clock to a lower one to inform the software when the change is actually done.
Clock Generator
Control
0
1
0
1
MOSCSEL
PLL and
Divider
SLCK
Main Clock
MAINCK
PLL Clock
PLLCK
Slow Clock
SLCK
MAINCK
PLLCK
Master Clock Controller
PLLCK
MAINCK
MCK
SLCK
/1,/2,/3,/4,...,/64
Prescaler
Programmable Clock Controller
/1,/2,/4,...,/64
Prescaler
Peripherals
Clock Controller
Sleep Mode
Processor
Controller
ON/OFF
Divider
Clock
/8
ON/OFF
11011A–ATARM–04-Oct-10
Free runnning clock
Processor clock
Master clock
MCK
HCLK
int
SysTick
FCLK
periph_clk[..]
pck[..]

Related parts for SAM3N0C