Atmel Evaluation Kit for AT32uC3A0512, 32-Bit AVR Microcontroller Atmel ATEVK1105 ATEVK1105 Data Sheet

Product codes
ATEVK1105
Page of 826
115
AT32UC3A
18. Flash Controller (FLASHC)
Rev: 2.0.0.2
18.1
Features
Controls flash block with dual read ports allowing staggered reads.
Supports 0 and 1 wait state bus access.
Allows interleaved burst reads for systems with one wait state, outputting one 32-bit word per
clock cycle.
32-bit HSB interface for reads from flash array and writes to page buffer.
32-bit PB interface for issuing commands to and configuration of the controller.
16 lock bits, each protecting a region consisting of (total number of pages in the flash block / 
16) pages.
Regions can be individually protected or unprotected.
Additional protection of the Boot Loader pages.
Supports reads and writes of general-purpose NVM bits.
Supports reads and writes of additional NVM pages.
Supports device protection through a security bit.
Dedicated command for chip-erase, first erasing all on-chip volatile memories before erasing
flash and clearing security bit.
Interface to Power Manager for power-down of flash-blocks in sleep mode.
18.2
Description
The flash controller (FLASHC) interfaces a flash block with the 32-bit internal HSB bus. Perfor-
mance for uncached systems with high clock-frequency and one wait state is increased by
placing words with sequential addresses in alternating flash subblocks. Having one read inter-
face per subblock allows them to be read in parallel. While data from one flash subblock is
being output on the bus, the sequential address is being read from the other flash subblock
and will be ready in the next clock cycle.
The controller also manages the programming, erasing, locking and unlocking sequences with
dedicated commands.
18.3
Product dependencies
18.3.1
Power management
The  HFLASHC   has  two  bus  clocks  connected:  One  High  speed  bus  clock
(CLK_FLASHC_HSB) and one Peripheral bus clock (CLK_FLASHC_PB). These clocks are
generated by the Power manager. Both clocks are turned on by default, but the user has to
ensure that CLK_FLASHC_HSB is not turned off before reading the flash or writing the page-
buffer and that CLK_FLASHC_PB is not turned of before accessing the FLASHC configuration
and control registers.
18.3.2
Interrupt
The FLASHC interrupt lines are connected to internal sources of the interrupt controller. Using
FLASHC interrutps requires the interrupt controller to be programmed first. 
32058K
AVR32-01/12