# SAM3XA EFC1

## Embedded Flash Controller (EFC1) User Interface

### Registers

Register Mapping
Address | Register | Name | Access | Reset
--- | --- | --- | --- | ---
0x400E0C00 | EEFC Flash Mode Register | EFC1_FMR | read-write | 0x00000000
0x400E0C04 | EEFC Flash Command Register | EFC1_FCR | write-only | -
0x400E0C08 | EEFC Flash Status Register | EFC1_FSR | read-only | 0x00000001
0x400E0C0C | EEFC Flash Result Register | EFC1_FRR | read-only | 0x00000000

### Register Fields

#### EFC1 EEFC Flash Mode Register

Name: EFC1_FMR

Access: read-write

Address: 0x400E0C00

31 | 30 | 29 | 28 | 27 | 26 | 25 | 24
- | - | - | - | - | - | - | FAM
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16
- | - | - | - | - | - | - | SCOD
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8
- | - | - | - | FWS
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0
- | - | - | - | - | - | - | FRDY

- FRDY: Ready Interrupt Enable

  Value | Name | Description
  --- | --- | ---
  0 | - | Flash Ready does not generate an interrupt.
  1 | - | Flash Ready (to accept a new command) generates an interrupt.

- FWS: Flash Wait State

-

- SCOD: Sequential Code Optimization Disable

  Value | Name | Description
  --- | --- | ---
  0 | - | The sequential code optimization is enabled.
  1 | - | The sequential code optimization is disabled.

- FAM: Flash Access Mode

  Value | Name | Description
  --- | --- | ---
  0 | - | 128-bit access in read Mode only, to enhance access speed.
  1 | - | 64-bit access in read Mode only, to enhance power consumption.

#### EFC1 EEFC Flash Command Register

Name: EFC1_FCR

Access: write-only

Address: 0x400E0C04

31 | 30 | 29 | 28 | 27 | 26 | 25 | 24
FKEY
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16
FARG
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8
FARG
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0
FCMD

- FCMD: Flash Command

-

- FARG: Flash Command Argument

-

- FKEY: Flash Writing Protection Key

-

#### EFC1 EEFC Flash Status Register

Name: EFC1_FSR

Access: read-only

Address: 0x400E0C08

31 | 30 | 29 | 28 | 27 | 26 | 25 | 24
- | - | - | - | - | - | - | -
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16
- | - | - | - | - | - | - | -
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8
- | - | - | - | - | - | - | -
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0
- | - | - | - | - | FLOCKE | FCMDE | FRDY

- FRDY: Flash Ready Status

  Value | Name | Description
  --- | --- | ---
  0 | - | The Enhanced Embedded Flash Controller (EEFC) is busy.
  1 | - | The Enhanced Embedded Flash Controller (EEFC) is ready to start a new command.

- FCMDE: Flash Command Error Status

  Value | Name | Description
  --- | --- | ---
  0 | - | No invalid commands and no bad keywords were written in the Flash Mode Register EEFC_FMR.
  1 | - | An invalid command and/or a bad keyword was/were written in the Flash Mode Register EEFC_FMR.

- FLOCKE: Flash Lock Error Status

  Value | Name | Description
  --- | --- | ---
  0 | - | No programming/erase of at least one locked region has happened since the last read of EEFC_FSR.
  1 | - | Programming/erase of at least one locked region has happened since the last read of EEFC_FSR.

#### EFC1 EEFC Flash Result Register

Name: EFC1_FRR

Access: read-only

Address: 0x400E0C0C

31 | 30 | 29 | 28 | 27 | 26 | 25 | 24
FVALUE
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16
FVALUE
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8
FVALUE
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0
FVALUE

- FVALUE: Flash Result Value

-