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
Field
Bits
What it does
CLOE
26
Code Loop Optimization Enable
SCOD
16
Sequential Code Optimization Disable
FWS
11:8
Flash Wait State
FRDY
0
Flash Ready Interrupt Enable
EEFC_FCREEFC Flash Command Register
Address
0x400E0C04
Reset
0x00000000
Access
write only
Size
32-bit
3 fields
Field
Bits
What it does
FARG
23:8
Flash Command Argument
FCMD
7:0
Flash 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
FKEY
31:24
Flash 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
Field
Bits
What it does
MECCEMSB
19
Multiple ECC Error on MSB Part of the Memory Flash Data Bus (cleared on read)
UECCEMSB
18
Unique ECC Error on MSB Part of the Memory Flash Data Bus (cleared on read)
MECCELSB
17
Multiple ECC Error on LSB Part of the Memory Flash Data Bus (cleared on read)
UECCELSB
16
Unique ECC Error on LSB Part of the Memory Flash Data Bus (cleared on read)
FLERR
3
Flash Error Status (cleared when a programming operation starts)
FLOCKE
2
Flash Lock Error Status (cleared on read)
FCMDE
1
Flash Command Error Status (cleared on read or by writing EEFC_FCR)
FRDY
0
Flash Ready Status (cleared when Flash is busy)
EEFC_FRREEFC Flash Result Register
Address
0x400E0C0C
Reset
0x00000000
Access
read only
Size
32-bit
1 field
Field
Bits
What it does
FVALUE
31:0
Flash Result Value
EEFC_WPMRWrite Protection Mode Register
Address
0x400E0CE4
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
Field
Bits
What it does
WPEN
0
Write Protection Enable
WPKEY
31:8
Write Protection Key
4539971 Writing any other value in this field aborts the write operation.Always reads as 0.