PIC32CX2051MTG128 SEFC1 registers

The 7 registers of SEFC1 (Secure Embedded Flash Controller), from 0x460E0200, with their reset value and every field. The PIC32CX2051MTG128 has 2875 registers in 60 peripherals, one page each.

SEFC1 Secure Embedded Flash Controller

EEFC_FMRSEFC Flash Mode Register

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

EEFC_FCRSEFC Flash Command Register

Address
0x460E0204
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
  • 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
FKEY31:24Flash 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
0x460E0208
Reset
0x00000000
Access
read only
Size
32-bit
14 fields
FieldBitsWhat it does
MECCEMSBL23Multiple ECC Error on MSB Part of the Memory Lock Bits
SECCEMSBL22Single ECC Error on MSB Part of the Memory Lock Bits
MECCELSBL21Multiple ECC Error on LSB Part of the Memory Lock Bits
SECCELSBL20Single ECC Error on LSB Part of the Memory Lock Bits
MECCEMSBD19Multiple ECC Error on MSB Part of the Memory Flash Data Bus (cleared on read)
SECCEMSBD18Single ECC Error on MSB Part of the Memory Flash Data Bus (cleared on read)
MECCELSBD17Multiple ECC Error on LSB Part of the Memory Flash Data Bus (cleared on read)
SECCELSBD16Single ECC Error on LSB Part of the Memory Flash Data Bus (cleared on read)
FLSUSP5Flash Suspended Status (cleared when resuming the programming operation)
WPERR4Write Protection Error Status (cleared on read)
FLERR3Flash Error Status (cleared when a programming operation starts)
FLOCKE2Flash Lock Error Status (cleared on read or by writing EEFC_FCR)
FCMDE1Flash Command Error Status (cleared on read)
FRDY0Flash Ready Status (cleared when Flash is busy)

EEFC_FRRSEFC Flash Result Register

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

EEFC_USRSEFC User Signature Rights Register

Address
0x460E0210
Reset
0x00000000
Access
read/write
Size
32-bit
32 fields
FieldBitsWhat it does
LOCKUSRB630Lock User Signature Rights for User Signature Block 6
LOCKUSRB529Lock User Signature Rights for User Signature Block 5
LOCKUSRB428Lock User Signature Rights for User Signature Block 4
LOCKUSRB327Lock User Signature Rights for User Signature Block 3
LOCKUSRB226Lock User Signature Rights for User Signature Block 2
LOCKUSRB125Lock User Signature Rights for User Signature Block 1
LOCKUSRB024Lock User Signature Rights for User Signature Block 0
PRIVUSB723Privileged Access for User Signature Block 7
PRIVUSB622Privileged Access for User Signature Block 6
PRIVUSB521Privileged Access for User Signature Block 5
PRIVUSB420Privileged Access for User Signature Block 4
PRIVUSB319Privileged Access for User Signature Block 3
PRIVUSB218Privileged Access for User Signature Block 2
PRIVUSB117Privileged Access for User Signature Block 1
PRIVUSB016Privileged Access for User Signature Block 0
WRENUSB715Write Enable for User Signature Block 7
WRENUSB614Write Enable for User Signature Block 6
WRENUSB513Write Enable for User Signature Block 5
WRENUSB412Write Enable for User Signature Block 4
WRENUSB311Write Enable for User Signature Block 3
WRENUSB210Write Enable for User Signature Block 2
WRENUSB19Write Enable for User Signature Block 1
WRENUSB08Write Enable for User Signature Block 0
RDENUSB77Read Enable for User Signature Block 7
RDENUSB66Read Enable for User Signature Block 6
RDENUSB55Read Enable for User Signature Block 5
RDENUSB44Read Enable for User Signature Block 4
RDENUSB33Read Enable for User Signature Block 3
RDENUSB22Read Enable for User Signature Block 2
RDENUSB11Read Enable for User Signature Block 1
RDENUSB00Read Enable for User Signature Block 0
LOCKUSRB731Lock User Signature Rights for User Signature Block 7

EEFC_KBLRSEFC Key Bus Lock Register

Address
0x460E0214
Reset
0x00000000
Access
read/write
Size
32-bit
8 fields
FieldBitsWhat it does
KBTLUSB77Key Bus Transfer Lock from User Signature Block 7
KBTLUSB66Key Bus Transfer Lock from User Signature Block 6
KBTLUSB55Key Bus Transfer Lock from User Signature Block 5
KBTLUSB44Key Bus Transfer Lock from User Signature Block 4
KBTLUSB33Key Bus Transfer Lock from User Signature Block 3
KBTLUSB22Key Bus Transfer Lock from User Signature Block 2
KBTLUSB11Key Bus Transfer Lock from User Signature Block 1
KBTLUSB00Key Bus Transfer Lock from User Signature Block 0

EEFC_WPMRWrite Protection Mode Register

Address
0x460E02E4
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
ERASEWL7Erase and Write Lock
USRWP4User Signature Write Protection
ERASEWP3Erase and Write Protection
LOCKWP2Lock Bit Write Protection
GPNVMWP1GPNVM Bit Write Protection
WPEN0Write Protection Enable
WPKEY31:8Write Protection Key
  • 4539971 Writing any other value in this field aborts the write operation. Always reads as 0.