
336
SAM9G45 [DATASHEET]
6438K–ATARM–12-Feb-13
System Input clock is UPLLCK, Prescaler is 2, PCK is 240 MHz
MDIV is ‘01’, MCK is 120 MHz
Only LP-DDR can be used at up to 120 MHz
26.3.1.3
No UDP HS, UHP FS and DDR2 Mode
Only PLLA is running at 384 MHz, UPLL power consumption is saved
USB Device High Speed and Host EHCI High Speed operations are NOT allowed
Full Speed OHCI input clock is PLLACK, USBDIV is 7 (division by 8)
System Input clock is PLLACK, PCK is 384 MHz
MDIV is ‘11’, MCK is 128 MHz
DDR2 can be used at up to 128 MHz
26.4
Master Clock Controller
The Master Clock Controller provides selection and division of the Master Clock (MCK). MCK is the clock provided
to all the peripherals and the memory controller.
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 PLLA.
The Master Clock Controller is made up of a clock selector and a prescaler. It also contains a Master Clock divider
which allows the processor clock to be faster than the Master Clock.
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. The
PRES field in PMC_MCKR programs the prescaler. The Master Clock divider can be programmed through the
MDIV field in PMC_MCKR.
Note:
It is forbidden to modify MDIV and CSS at the same access. Each field must be modified separately with a wait for
MCKRDY flag between the first field modification and the second field modification.
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.
Figure 26-2. Master Clock Controller
26.5
Processor Clock Controller
The PMC features a Processor Clock Controller (PCK) that implements the Processor Idle Mode. The Processor
Clock can be disabled by writing the System Clock Disable Register (PMC_SCDR). The status of this clock (at
least for debug purpose) can be read in the System Clock Status Register (PMC_SCSR).
SLCK
Master Clock
Prescaler
MCK
PRES
CSS
Master
Clock
Divider
MAINCK
PLLACK
MDIV
To the Processor
Clock Controller (PCK)
PMC_MCKR
Processor
Clock
Divider
UPLLCK