PIC32CZ1038CA70144 EFC registers

The 5 registers of EFC (Embedded Flash Controller), from 0x400E0C00, with their reset value and every field. The PIC32CZ1038CA70144 has 2990 registers in 68 peripherals, one page each.

EFC Embedded Flash Controller

EEFC_FMREEFC Flash Mode Register

Address
0x400E0C00
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
CLOE26Code Loop Optimization Enable
SCOD16Sequential Code Optimization Disable
FWS11:8Flash Wait State
FRDY0Flash Ready Interrupt Enable

EEFC_FCREEFC Flash Command Register

Address
0x400E0C04
Reset
0x00000000
Access
write only
Size
32-bit
3 fields
FieldBitsWhat it does
FARG23:8Flash Command Argument
FCMD7:0Flash Command
  • 0 Get Flash descriptor
  • 1 Write page
  • 2 Write page and lock
  • 3 Erase page and write page
  • 4 Erase page and write page then lock
  • 5 Erase all
  • 7 Erase pages
  • 8 Set lock bit
  • 9 Clear lock bit
  • 10 Get lock bit
  • 11 Set GPNVM bit
  • 12 Clear GPNVM bit
  • 13 Get GPNVM bit
  • 14 Start read unique identifier
  • 15 Stop read unique identifier
  • 16 Get CALIB bit
  • 17 Erase sector
  • 18 Write user signature
  • 19 Erase user signature
  • 20 Start read user signature
  • 21 Stop read user signature
FKEY31:24Flash Writing Protection Key
  • 90 The 0x5A value enables the command defined by the bits of the register. If the field is written with a different value, the write is not performed and no action is started.

EEFC_FSREEFC Flash Status Register

Address
0x400E0C08
Reset
0x00000000
Access
read only
Size
32-bit
8 fields
FieldBitsWhat it does
MECCEMSB19Multiple ECC Error on MSB Part of the Memory Flash Data Bus (cleared on read)
UECCEMSB18Unique ECC Error on MSB Part of the Memory Flash Data Bus (cleared on read)
MECCELSB17Multiple ECC Error on LSB Part of the Memory Flash Data Bus (cleared on read)
UECCELSB16Unique ECC Error on LSB Part of the Memory Flash Data Bus (cleared on read)
FLERR3Flash Error Status (cleared when a programming operation starts)
FLOCKE2Flash Lock Error Status (cleared on read)
FCMDE1Flash Command Error Status (cleared on read or by writing EEFC_FCR)
FRDY0Flash Ready Status (cleared when Flash is busy)

EEFC_FRREEFC Flash Result Register

Address
0x400E0C0C
Reset
0x00000000
Access
read only
Size
32-bit
1 field
FieldBitsWhat it does
FVALUE31:0Flash Result Value

EEFC_WPMRWrite Protection Mode Register

Address
0x400E0CE4
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
WPEN0Write Protection Enable
WPKEY31:8Write Protection Key
  • 4539971 Writing any other value in this field aborts the write operation.Always reads as 0.