AT32UC3L064_1 ATMEL [ATMEL Corporation], AT32UC3L064_1 Datasheet - Page 252

no-image

AT32UC3L064_1

Manufacturer Part Number
AT32UC3L064_1
Description
AVR32 32-bit Microcontroller
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
15.4.3
15.4.4
15.4.5
15.5
15.5.1
15.5.1.1
32099A–AVR32–06/09
Functional Description
Interrupts
Peripheral Events
Debug Operation
Initialization
Enabling and disabling the AST clock
In Shutdown mode only the 32 KHz oscillator and the 1KHz clock are available, using certain
pins. Please refer to the Power Manager chapter for details.
The AST interrupt request lines are connected to the interrupt controller. Using the AST inter-
rupts requires the interrupt controller to be programmed first.
The AST peripheral events are connected via the Peripheral Event System. Refer to the Periph-
eral Event System chapter for details.
The AST prescaler and counter is frozen during debug operation, unless the Run In Debug bit in
the Development Control Register is set and the bit corresponding to the AST is set in the
Peripheral Debug Register. Please refer to the On-Chip Debug chapter in the AVR32UC Techni-
cal Reference Manual for details.
If the AST is configured in a way that requires it to be periodically serviced by the CPU through
interrupts or similar, improper operation or data loss may result during debugging.
Before enabling the AST, the internal AST clock CLK_AST_PRSC must be enabled, following
the procedure specified in
(CLOCK.CSSEL) selects the source for this clock. The Clock Enable bit in the Clock register
(CLOCK.CEN) enables the CLK_AST_PRSC.
When CLK_AST_PRSC is enabled, the AST can be enabled by writing a one to the Enable bit in
the Control Register (CR.EN).
The Clock Source Selection field (CLOCK.CSSEL) and the Clock Enable bit (CLOCK.CEN) can-
not be changed simultaneously. Special procedures must be followed for enabling and disabling
the CLK_AST_PRSC and for changing the source for this clock.
To enable CLK_AST_PRSC:
To disable the clock:
• Generic clock (GCLK). One of the generic clocks is connected to the AST. This clock must be
• 1KHz clock from the 32KHz oscillator (CLK_1K). This clock is only available in crystal mode,
• Write the selected value to CLOCK.CSSEL
• Wait until SR.CLKBUSY reads as zero
• Write a one to CLOCK.CEN, without changing CLOCK.CSSEL
• Wait until SR.CLKBUSY reads as zero
• Write a zero to CLOCK.CEN to disable the clock, without changing CLOCK.CSSEL
• Wait until SR.CLKBUSY reads as zero
enabled before use, and remains enabled in sleep modes when the PB clock is active.
and must be enabled before use. Please refer to the SCIF chapter for details.
Section
15.5.1.1. The Clock Source Select field in the Clock register
AT32UC3L
252

Related parts for AT32UC3L064_1