The 7 registers of SEFC0 (Secure Embedded Flash Controller), from 0x460E0000, with their reset value and every field. The PIC32CX5112MTC128 has 2891 registers in 62 peripherals, one page each.
SEFC0 Secure Embedded Flash Controller
EEFC_FMRSEFC Flash Mode Register
Address
0x460E0000
Reset
0x00000000
Access
read/write
Size
32-bit
5 fields
Field
Bits
What it does
ALWAYS1
27
Always Written to One
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_FCRSEFC Flash Command Register
Address
0x460E0004
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
7 Erase pages (8, 16, 32, 64)
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
23 Suspend
24 Resume
25 Send cryptographic key
FKEY
31:24
Flash Writing Protection Key
90 The 0x5A value enables the command defined by the bits in the register. If the field is written with a different value, the write is not performed and no action is started.
EEFC_FSRSEFC Flash Status Register
Address
0x460E0008
Reset
0x00000000
Access
read only
Size
32-bit
14 fields
Field
Bits
What it does
MECCEMSBL
23
Multiple ECC Error on MSB Part of the Memory Lock Bits
SECCEMSBL
22
Single ECC Error on MSB Part of the Memory Lock Bits
MECCELSBL
21
Multiple ECC Error on LSB Part of the Memory Lock Bits
SECCELSBL
20
Single ECC Error on LSB Part of the Memory Lock Bits
MECCEMSBD
19
Multiple ECC Error on MSB Part of the Memory Flash Data Bus (cleared on read)
SECCEMSBD
18
Single ECC Error on MSB Part of the Memory Flash Data Bus (cleared on read)
MECCELSBD
17
Multiple ECC Error on LSB Part of the Memory Flash Data Bus (cleared on read)
SECCELSBD
16
Single ECC Error on LSB Part of the Memory Flash Data Bus (cleared on read)
FLSUSP
5
Flash Suspended Status (cleared when resuming the programming operation)
WPERR
4
Write Protection Error Status (cleared on read)
FLERR
3
Flash Error Status (cleared when a programming operation starts)
FLOCKE
2
Flash Lock Error Status (cleared on read or by writing EEFC_FCR)
FCMDE
1
Flash Command Error Status (cleared on read)
FRDY
0
Flash Ready Status (cleared when Flash is busy)
EEFC_FRRSEFC Flash Result Register
Address
0x460E000C
Reset
0x00000000
Access
read only
Size
32-bit
1 field
Field
Bits
What it does
FVALUE
31:0
Flash Result Value
EEFC_USRSEFC User Signature Rights Register
Address
0x460E0010
Reset
0x00000000
Access
read/write
Size
32-bit
32 fields
Field
Bits
What it does
LOCKUSRB6
30
Lock User Signature Rights for User Signature Block 6
LOCKUSRB5
29
Lock User Signature Rights for User Signature Block 5
LOCKUSRB4
28
Lock User Signature Rights for User Signature Block 4
LOCKUSRB3
27
Lock User Signature Rights for User Signature Block 3
LOCKUSRB2
26
Lock User Signature Rights for User Signature Block 2
LOCKUSRB1
25
Lock User Signature Rights for User Signature Block 1
LOCKUSRB0
24
Lock User Signature Rights for User Signature Block 0
PRIVUSB7
23
Privileged Access for User Signature Block 7
PRIVUSB6
22
Privileged Access for User Signature Block 6
PRIVUSB5
21
Privileged Access for User Signature Block 5
PRIVUSB4
20
Privileged Access for User Signature Block 4
PRIVUSB3
19
Privileged Access for User Signature Block 3
PRIVUSB2
18
Privileged Access for User Signature Block 2
PRIVUSB1
17
Privileged Access for User Signature Block 1
PRIVUSB0
16
Privileged Access for User Signature Block 0
WRENUSB7
15
Write Enable for User Signature Block 7
WRENUSB6
14
Write Enable for User Signature Block 6
WRENUSB5
13
Write Enable for User Signature Block 5
WRENUSB4
12
Write Enable for User Signature Block 4
WRENUSB3
11
Write Enable for User Signature Block 3
WRENUSB2
10
Write Enable for User Signature Block 2
WRENUSB1
9
Write Enable for User Signature Block 1
WRENUSB0
8
Write Enable for User Signature Block 0
RDENUSB7
7
Read Enable for User Signature Block 7
RDENUSB6
6
Read Enable for User Signature Block 6
RDENUSB5
5
Read Enable for User Signature Block 5
RDENUSB4
4
Read Enable for User Signature Block 4
RDENUSB3
3
Read Enable for User Signature Block 3
RDENUSB2
2
Read Enable for User Signature Block 2
RDENUSB1
1
Read Enable for User Signature Block 1
RDENUSB0
0
Read Enable for User Signature Block 0
LOCKUSRB7
31
Lock User Signature Rights for User Signature Block 7
EEFC_KBLRSEFC Key Bus Lock Register
Address
0x460E0014
Reset
0x00000000
Access
read/write
Size
32-bit
8 fields
Field
Bits
What it does
KBTLUSB7
7
Key Bus Transfer Lock from User Signature Block 7
KBTLUSB6
6
Key Bus Transfer Lock from User Signature Block 6
KBTLUSB5
5
Key Bus Transfer Lock from User Signature Block 5
KBTLUSB4
4
Key Bus Transfer Lock from User Signature Block 4
KBTLUSB3
3
Key Bus Transfer Lock from User Signature Block 3
KBTLUSB2
2
Key Bus Transfer Lock from User Signature Block 2
KBTLUSB1
1
Key Bus Transfer Lock from User Signature Block 1
KBTLUSB0
0
Key Bus Transfer Lock from User Signature Block 0
EEFC_WPMRWrite Protection Mode Register
Address
0x460E00E4
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
Field
Bits
What it does
ERASEWL
7
Erase and Write Lock
USRWP
4
User Signature Write Protection
ERASEWP
3
Erase and Write Protection
LOCKWP
2
Lock Bit Write Protection
GPNVMWP
1
GPNVM Bit Write Protection
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.